From 852e87d8435e7e233ead323490ae4aa76935fd83 Mon Sep 17 00:00:00 2001 From: edef Date: Tue, 8 Feb 2022 02:40:53 +0000 Subject: ripple/minitrace: log access(2) paths Co-authored-by: V Change-Id: I26603ca7de3ac4a21b64390e4fc3d9f44a6c172a --- ripple/minitrace/src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ripple/minitrace') diff --git a/ripple/minitrace/src/main.rs b/ripple/minitrace/src/main.rs index fd91dfc..be8ba6a 100644 --- a/ripple/minitrace/src/main.rs +++ b/ripple/minitrace/src/main.rs @@ -239,7 +239,11 @@ fn check_syscall(process: &Process, entry: SyscallEntry) -> bool { 17 => {} // access - 21 => {} + 21 => { + let [pathname, _mode, ..] = entry.args; + let pathname = process.read_mem_cstr(pathname).unwrap(); + println!("access({:?}, ..)", pathname); + } // getcwd 79 => {} -- cgit 1.4.1