[PATCH v5 0/3] [GSoC] Stop condition based on number of syscalls
Sahil Siddiq
icegambit91 at gmail.com
Mon Mar 20 05:40:55 UTC 2023
Hi,
This patch adds the feature to detach strace after capturing a specified
number of syscalls.
Regards,
Sahil
Changes v4 -> v5:
- src/defs.h: Declare "syscall_limit" as long long
- src/strace.c:
Declare "syscall_limit" as long long
(init.c) Use string_to_ulonglong()
- src/syscall.c: Compare with -1 instead of -1ULL
- doc/strace.1.in: Improve description and formatting
- tests/strace--syscall-limit-status.c: Test with "getcwd" instead of "openat"
- tests/options-syntax.test: Check invalid -l arguments
Sahil Siddiq (3):
Introduce -l/--syscall-limit option
Make relevant changes in NEWS and man page
Add tests for the -l/--syscall-limit option
NEWS | 2 +
doc/strace.1.in | 15 ++++++
src/defs.h | 1 +
src/strace.c | 19 +++++++-
src/syscall.c | 3 ++
tests/.gitignore | 3 ++
tests/Makefile.am | 4 ++
tests/gen_tests.in | 2 +
tests/options-syntax.test | 4 ++
tests/strace--syscall-limit-path.c | 69 ++++++++++++++++++++++++++
tests/strace--syscall-limit-status.c | 73 ++++++++++++++++++++++++++++
tests/strace--syscall-limit.c | 60 +++++++++++++++++++++++
tests/strace--syscall-limit.test | 34 +++++++++++++
13 files changed, 287 insertions(+), 2 deletions(-)
create mode 100644 tests/strace--syscall-limit-path.c
create mode 100644 tests/strace--syscall-limit-status.c
create mode 100644 tests/strace--syscall-limit.c
create mode 100755 tests/strace--syscall-limit.test
--
2.39.2
More information about the Strace-devel
mailing list