ptrace.2: Add details about usage of PTRACE_GET_SYSCALL_INFO
PATCH 1/1 ptrace.2: Add details about usage of PTRACE_GET_SYSCALL_INFO
Fixed incomplete doc. PTRACE_GET_SYSCALL_INFO wouldn't inform the user that they need to enable PTRACE_O_TRACESYSGOOD to get detailed information from said operation.
--- man2/ptrace.2 | 9 +++++++++ 1 file changed, 9 insertions(+)
man2/ptrace.2 +9 -0
@@ -1111,6 +1111,15 @@ stop. .B PTRACE_SYSCALL_INFO_NONE No component of the union contains relevant information. .RE +.IP +Note that in case of +syscall entry or exit stops, the data returned by +.B PTRACE_GET_SYSCALL_INFO +is limited to type +.B PTRACE_SYSCALL_INFO_NONE +unless +.B PTRACE_O_TRACESYSGOOD +option is set before the corresponding ptrace stop has occurred. .\" .SS Death under ptrace When a (possibly multithreaded) process receives a killing signal
Signature · 1 line
2.39.2
Quoted 1 line · Fotios Valasiadis
Fixed incomplete doc.
PTRACE_GET_SYSCALL_INFOwouldn't inform the user that they need to enablePTRACE_O_TRACESYSGOODto get detailed information from said operation.
I'm not sure about the word "fix" in this context as we are not correcting some wrong information but simply extending the documentation.
How about the following wording:
Document the role of PTRACE_O_TRACESYSGOOD option in connection with PTRACE_GET_SYSCALL_INFO.
Quoted 2 lines
Signed-off-by Fotios Valasiadis <[email protected]>Cowritten-by Dmitry V. Levin <[email protected]>
Feel free to add
Complements: fc91449cb "ptrace.2: Document PTRACE_GET_SYSCALL_INFO"
Quoted 26 lines
--- man2/ptrace.2 | 9 +++++++++ 1 file changed, 9 insertions(+)man2/ptrace.2 +9
-0@@ -1111,6 +1111,15 @@ stop. .B PTRACE_SYSCALL_INFO_NONE No component of the union contains relevant information. .RE +.IP +Note that in case of +syscall entry or exit stops, the data returned by +.B PTRACE_GET_SYSCALL_INFO +is limited to type +.B PTRACE_SYSCALL_INFO_NONE +unless +.B PTRACE_O_TRACESYSGOOD +option is set before the corresponding ptrace stop has occurred. .\" .SS Death under ptrace When a (possibly multithreaded) process receives a killing signalSignature · 1 line
2.39.2
Signature · 1 line
ldv
Quoted 7 lines · Dmitry V . Levin
I'm not sure about the word "fix" in this context as we are not correcting some wrong information but simply extending the documentation.
How about the following wording:
Document the role of
PTRACE_O_TRACESYSGOODoption in connection withPTRACE_GET_SYSCALL_INFO.
Sure! Do I use Cowritten-by, Acked-by or Reviewed-by?
Quoted 10 lines · Φώτης Βαλασιάδης
Quoted 7 lines · Dmitry V . Levin
I'm not sure about the word "fix" in this context as we are not correcting some wrong information but simply extending the documentation.
How about the following wording:
Document the role of
PTRACE_O_TRACESYSGOODoption in connection withPTRACE_GET_SYSCALL_INFO.Sure! Do I use Cowritten-by, Acked-by or Reviewed-by?
Cowritten-by seems to suit better in this case.
Signature · 1 line
ldv