[PATCH/RFC v1 0/2] [GSoC] Stop condition based on number of syscalls
Sahil Siddiq
icegambit91 at gmail.com
Tue Feb 14 21:23:59 UTC 2023
Hi,
This patch adds the option to detach strace after capturing a specified
number of syscalls.
I went through the relevant parts of the codebase while working on this
patch and there are a few things that I am not clear on.
1. I have assumed that a syscall is considered to be traced only if
"syscall_exiting_decode()" returns a non-zero value (does not "bail
out"). I am not sure if that is correct.
2. I tried to understand the workings of the "trace_syscall()" function.
When can there a situation where "syscall_entering_decode()" does
not bail out, but "syscall_exiting_decode" bails out?
Sahil Siddiq (2):
Stop condition based on number of syscalls
Make relevant changes in NEWS and man page
NEWS | 2 ++
doc/strace.1.in | 8 ++++++++
src/strace.c | 17 ++++++++++++++++-
3 files changed, 26 insertions(+), 1 deletion(-)
--
2.39.1
More information about the Strace-devel
mailing list