]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Export current system call code and argument count for system call entry
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 1 Sep 2015 22:24:54 +0000 (22:24 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 1 Sep 2015 22:24:54 +0000 (22:24 +0000)
commit183b68f74f05cf7d66ab344857cd25e4c00513b2
tree7d48ab783270ef6dbf8fe7948572ad12b96d274c
parent45d4c036ec4a6dc57b6666d49cd6a2f48976c7a5
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
sys/kern/subr_syscall.c
sys/kern/sys_process.c
sys/sys/proc.h
sys/sys/ptrace.h