From 9fd5604718816bca09068e1505df919b5e54d8a6 Mon Sep 17 00:00:00 2001 From: V Date: Tue, 8 Feb 2022 04:34:23 +0000 Subject: ripple/minitrace: clean up arch_prctl arg destructuring Change-Id: I403062ce3570eac201612dcf083a8c670380f6a8 --- ripple/minitrace/src/main.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'ripple') diff --git a/ripple/minitrace/src/main.rs b/ripple/minitrace/src/main.rs index e5bb1f0..ae1de7c 100644 --- a/ripple/minitrace/src/main.rs +++ b/ripple/minitrace/src/main.rs @@ -269,11 +269,14 @@ fn check_syscall(process: &Process, entry: SyscallEntry) -> bool { 100 => {} // arch_prctl - 158 => match entry.args[0] { - // ARCH_SET_FS - 0x1002 => {} - _ => return false, - }, + 158 => { + let [command, _addr, ..] = entry.args; + match command { + // ARCH_SET_FS + 0x1002 => {} + _ => return false, + } + } // exit_group 231 => {} -- cgit 1.4.1