]> granicus.if.org Git - strace/commit
trace_syscall_exiting: do not call get_regs for filtered syscalls
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 11 Apr 2017 04:04:37 +0000 (04:04 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 11 Apr 2017 04:04:37 +0000 (04:04 +0000)
commit7df7bc1889ca2d75341ff4e4f7ee5e5903bf7b88
tree186722c2d5b792917add18dfba51496ab151d293
parentcb46fea4d5dbf3b4cf92cb8f6ce1e691cf28b171
trace_syscall_exiting: do not call get_regs for filtered syscalls

This saves up to 25% of ptrace syscalls in case of trace filtering.

* syscall.c (trace_syscall_exiting): Do not call gettimeofday
and get_regs for filtered syscalls.
* NEWS: Mention this change.
* tests/get_regs.test: New test.
* tests/Makefile.am (MISC_TESTS): Add it.
NEWS
syscall.c
tests/Makefile.am
tests/get_regs.test [new file with mode: 0755]