From 63c5c93b0f7ca209ceee7d4c1ab1e63b13640c23 Mon Sep 17 00:00:00 2001 From: edef Date: Tue, 8 Feb 2022 02:55:37 +0000 Subject: ripple/minitrace: log readlink paths Change-Id: Idd2b174e0805e1a255f6a9a5cb9868aa59aa332a --- 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 7f50f27..a8781f5 100644 --- a/ripple/minitrace/src/main.rs +++ b/ripple/minitrace/src/main.rs @@ -254,7 +254,11 @@ fn check_syscall(process: &Process, entry: SyscallEntry) -> bool { 79 => {} // readlink - 89 => {} + 89 => { + let [pathname, _buf, _bufsiz, ..] = entry.args; + let pathname = process.read_mem_cstr(pathname).unwrap(); + println!("readlink({:?}, ..)", pathname); + } // sysinfo 99 => {} -- cgit 1.4.1