ptrace: do not print arguments of PTRACE_TRACEME request
As kernel ignores arguments of PTRACE_TRACEME request,
we do not print them either.
* process.c (SYS_FUNC(ptrace)): If request is PTRACE_TRACEME,
return early with RVAL_DECODED.
diff --git a/process.c b/process.c
index b2dfac1..f53c12e 100644
--- a/process.c
+++ b/process.c
@@ -91,6 +91,11 @@
/* request */
printxval64(ptrace_cmds, request, "PTRACE_???");
+ if (request == PTRACE_TRACEME) {
+ /* pid, addr, and data are ignored. */
+ return RVAL_DECODED;
+ }
+
/* pid */
tprintf(", %d, ", pid);