ptrace.2: Minor tweaks to Dmitry Levin's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2019-09-10 12:44:14 +02:00
parent fc91449cb5
commit c3543fab53
1 changed files with 7 additions and 6 deletions

View File

@ -1008,24 +1008,25 @@ this ptrace operation can't be used to allocate a free TLS entry.)
.TP .TP
.BR PTRACE_GET_SYSCALL_INFO " (since Linux 5.3)" .BR PTRACE_GET_SYSCALL_INFO " (since Linux 5.3)"
.\" commit 201766a20e30f982ccfe36bebfad9602c3ff574a .\" commit 201766a20e30f982ccfe36bebfad9602c3ff574a
Retrieve information about the syscall that caused the stop. Retrieve information about the system call that caused the stop.
The information is placed into the buffer pointed by The information is placed into the buffer pointed by the
.I data .I data
argument, which should be a pointer to a buffer of type argument, which should be a pointer to a buffer of type
.IR "struct ptrace_syscall_info" . .IR "struct ptrace_syscall_info" .
The The
.I addr .I addr
argument contains the size of the buffer pointed to argument contains the size of the buffer pointed to
by by the
.I data .I data
argument (i.e., argument (i.e.,
.IR "sizeof(struct ptrace_syscall_info)" ). .IR "sizeof(struct ptrace_syscall_info)" ).
The return value contains the number of bytes available The return value contains the number of bytes available
to be written by the kernel. to be written by the kernel.
If the size of data to be written by the kernel exceeds the size If the size of the data to be written by the kernel exceeds the size
specified by specified by the
.I addr .I addr
argument, the output is truncated. argument, the output data is truncated.
.\" FIXME Document 'struct ptrace_syscall_info'
.\" .\"
.SS Death under ptrace .SS Death under ptrace
When a (possibly multithreaded) process receives a killing signal When a (possibly multithreaded) process receives a killing signal