From 71d008beb8557eb30d09d4d4ce19f457957d578d Mon Sep 17 00:00:00 2001 From: edef Date: Sat, 30 Jul 2022 19:58:47 +0000 Subject: ripple/minitrace: drop check_syscall match arms that don't do any validation A lot of validation has moved into argument parsing, but ~no-op match arms haven't really been dropped. Change-Id: If4fb36073d5d8e8efc771beaa4a2b98cfb0a5726 --- ripple/minitrace/src/main.rs | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'ripple/minitrace/src') diff --git a/ripple/minitrace/src/main.rs b/ripple/minitrace/src/main.rs index 8b82b72..9d577de 100644 --- a/ripple/minitrace/src/main.rs +++ b/ripple/minitrace/src/main.rs @@ -297,19 +297,6 @@ fn check_syscall(entry: &SyscallEntry) -> bool { SyscallEntry::mprotect { addr, len, prot: _ } => { return addr % 4096 == 0 && len % 4096 == 0; } - SyscallEntry::access { ref filename, mode } => { - println!("access({filename:?}, {mode:?})"); - } - SyscallEntry::readlink { - ref path, - buf: _, - bufsiz: _, - } => { - println!("readlink({path:?}, ..)"); - } - SyscallEntry::set_tid_address { tidptr: _ } => { - println!("set_tid_address(..)"); - } SyscallEntry::openat { dfd, ref filename, @@ -341,13 +328,6 @@ fn check_syscall(entry: &SyscallEntry) -> bool { } } } - SyscallEntry::getrandom { - ubuf: _, - len, - flags, - } => { - println!("getrandom(.., {len}, {flags:?})"); - } SyscallEntry::times { .. } => {} _ => println!("{entry:?}"), } -- cgit 1.4.1