From 3a20ef6840e457352d959baefb6635afe5d7759c Mon Sep 17 00:00:00 2001 From: V Date: Tue, 8 Feb 2022 02:53:30 +0000 Subject: ripple/minitrace: clean up ioctl handling TIOCGWINSZ was mistakenly listed as TCGETS, and parameter destructuring got cleaned up. Change-Id: I8dce783c50d34ab619cf7b05c9b705b5e11bc459 --- ripple/minitrace/src/main.rs | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/ripple/minitrace/src/main.rs b/ripple/minitrace/src/main.rs index be8ba6a..7f50f27 100644 --- a/ripple/minitrace/src/main.rs +++ b/ripple/minitrace/src/main.rs @@ -229,11 +229,16 @@ fn check_syscall(process: &Process, entry: SyscallEntry) -> bool { 13 => {} // ioctl - 16 => match entry.args[1] { - // TCGETS - 0x5401 | 0x5413 => {} - _ => return false, - }, + 16 => { + let [_fd, command, ..] = entry.args; + match command { + // TCGETS + 0x5401 => {} + // TIOCGWINSZ + 0x5413 => {} + _ => return false, + } + } // pread64 17 => {} -- cgit 1.4.1