diff options
author | edef <edef@unfathomable.blue> | 2022-07-30 19:58:47 +0000 |
---|---|---|
committer | edef <edef@unfathomable.blue> | 2022-07-30 20:00:29 +0000 |
commit | 71d008beb8557eb30d09d4d4ce19f457957d578d (patch) | |
tree | 6f793ef17a96424c11b3ebac3a709d76740f2cf0 | |
parent | 0682ee981a40ee3c549e5a8d62ffd8c6c542ed69 (diff) | |
download | unf-legacy-71d008beb8557eb30d09d4d4ce19f457957d578d.tar.zst |
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
-rw-r--r-- | ripple/minitrace/src/main.rs | 20 |
1 files changed, 0 insertions, 20 deletions
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:?}"), } |