]> granicus.if.org Git - strace/commit
Fix filtering of <unavailable> syscalls
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 29 Jun 2015 11:57:44 +0000 (11:57 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 30 Jun 2015 17:28:02 +0000 (17:28 +0000)
commit4b80f34c93b54f2ae79be65e0c727a9d0d094837
treed0dbd11b744ed9ac70c1296cefcace588df4b6f2
parentde4a680206b0a811c3b5b3c17b74a6a3cc3f273f
Fix filtering of <unavailable> syscalls

* syscall.c (trace_syscall_exiting): Skip filtered syscalls also in case
of get_regs or get_syscall_result failure.
* tests/filter-unavailable.c: New file.
* tests/filter-unavailable.expected: Likewise.
* tests/filter-unavailable.test: New test.
* tests/Makefile.am (check_PROGRAMS): Add filter-unavailable.
(filter_unavailable_LDFLAGS): Add -pthread.
(TESTS): Add filter-unavailable.test.
(EXTRA_DIST): Add filter-unavailable.expected.
* tests/.gitignore: Add filter-unavailable.

Reported-by: Bryan Matsuo <bryan.matsuo@gmail.com>
syscall.c
tests/.gitignore
tests/Makefile.am
tests/filter-unavailable.c [new file with mode: 0644]
tests/filter-unavailable.expected [new file with mode: 0644]
tests/filter-unavailable.test [new file with mode: 0755]