path: root/sys/sys/ptrace.h
diff options
authorJohn Baldwin <jhb@FreeBSD.org>2015-09-01 22:24:54 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2015-09-01 22:24:54 +0000
commit183b68f74f05cf7d66ab344857cd25e4c00513b2 (patch)
tree7d48ab783270ef6dbf8fe7948572ad12b96d274c /sys/sys/ptrace.h
parent45d4c036ec4a6dc57b6666d49cd6a2f48976c7a5 (diff)
Export current system call code and argument count for system call entry
and exit events. procfs stop events for system call tracing report these values (argument count for system call entry and code for system call exit), but ptrace() does not provide this information. (Note that while the system call code can be determined in an ABI-specific manner during system call entry, it is not generally available during system call exit.) The values are exported via new fields at the end of struct ptrace_lwpinfo available via PT_LWPINFO. Reviewed by: kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D3536
Notes: svn path=/head/; revision=287386
Diffstat (limited to 'sys/sys/ptrace.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/ptrace.h b/sys/sys/ptrace.h
index e770a0612eac..de4e7a7c1d4d 100644
--- a/sys/sys/ptrace.h
+++ b/sys/sys/ptrace.h
@@ -113,6 +113,8 @@ struct ptrace_lwpinfo {
struct __siginfo pl_siginfo; /* siginfo for signal */
char pl_tdname[MAXCOMLEN + 1]; /* LWP name */
int pl_child_pid; /* New child pid */
+ u_int pl_syscall_code;
+ u_int pl_syscall_narg;
/* Argument structure for PT_VM_ENTRY. */