diff options
author | jhb <jhb@FreeBSD.org> | 2015-10-07 17:52:18 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2015-10-07 17:52:18 +0000 |
commit | 9b1033cdad0d2f3ced950ee53780ba9c3b3c2819 (patch) | |
tree | 1a4b0414f5f065449be9cfc845db5eef66f11fe5 /lib/libc/sys | |
parent | 1b20850b547f3ed196050414e15541ea1946af41 (diff) | |
download | FreeBSD-src-9b1033cdad0d2f3ced950ee53780ba9c3b3c2819.zip FreeBSD-src-9b1033cdad0d2f3ced950ee53780ba9c3b3c2819.tar.gz |
Document the recently added pl_syscall_* fields in struct ptrace_lwpinfo.
Reviewed by: emaste, kib
Differential Revision: https://reviews.freebsd.org/D3833
Diffstat (limited to 'lib/libc/sys')
-rw-r--r-- | lib/libc/sys/ptrace.2 | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/lib/libc/sys/ptrace.2 b/lib/libc/sys/ptrace.2 index 71b432f..5c93438 100644 --- a/lib/libc/sys/ptrace.2 +++ b/lib/libc/sys/ptrace.2 @@ -2,7 +2,7 @@ .\" $NetBSD: ptrace.2,v 1.2 1995/02/27 12:35:37 cgd Exp $ .\" .\" This file is in the public domain. -.Dd July 3, 2015 +.Dd October 6, 2015 .Dt PTRACE 2 .Os .Sh NAME @@ -307,6 +307,8 @@ struct ptrace_lwpinfo { siginfo_t pl_siginfo; char pl_tdname[MAXCOMLEN + 1]; int pl_child_pid; + u_int pl_syscall_code; + u_int pl_syscall_narg; }; .Ed .Pp @@ -395,6 +397,27 @@ stop when .Dv PL_FLAG_FORKED is set in .Va pl_flags . +.It pl_syscall_code +The ABI-specific identifier of the current system call. +Note that for indirect system calls this field reports the indirected +system call. +Only valid when +.Dv PL_FLAG_SCE +or +.Dv PL_FLAG_SCX +is set in +.Va pl_flags. +.It pl_syscall_narg +The number of arguments passed to the current system call not counting +the system call identifier. +Note that for indirect system calls this field reports the arguments +passed to the indirected system call. +Only valid when +.Dv PL_FLAG_SCE +or +.Dv PL_FLAG_SCX +is set in +.Va pl_flags. .El .It PT_GETNUMLWPS This request returns the number of kernel threads associated with the |