summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2020-09-06 08:00:00 +0000
committerDmitry V. Levin <ldv@altlinux.org>2020-09-06 08:00:00 +0000
commit9910a23ee296e469a4f722fd43e3926d2e60c663 (patch)
tree746bc92d2537d6f5afa6b0e878fcb95c06da5b3d /linux
parent4b53d440a1a5d41bea4f37f75c2319dddab20c33 (diff)
downloadstrace-9910a23ee296e469a4f722fd43e3926d2e60c663.tar.gz
Implement decoding of close_range syscall
Introduced by Linux kernel commit v5.9-rc1~160. * close_range.c: New file. * Makefile.am (libstrace_a_SOURCES): Add it. * configure.ac (AC_CHECK_HEADERS): Add linux/close_range.h. * xlat/close_range_flags.in: New file. * pathtrace.c (pathtrace_match_set): Handle SEN_close_range. * linux/syscallent-common.h [BASE_NR + 436]: Wire up close_range. * NEWS: Mention this change. * tests/close_range.c: New file. * tests/close_range-P.c: Likewise. * tests/close_range-y.c: Likewise. * tests/close_range-yy.c: Likewise. * tests/gen_tests.in (close_range. close_range-P, close_range-y, close_range-yy): New entries. * tests/pure_executables.list: Add close_range, close_range-P, close_range-y, and close_range-yy. * tests/.gitignore: Likewise.
Diffstat (limited to 'linux')
-rw-r--r--linux/syscallent-common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/syscallent-common.h b/linux/syscallent-common.h
index 12ec2f264..6ca296ac1 100644
--- a/linux/syscallent-common.h
+++ b/linux/syscallent-common.h
@@ -20,7 +20,7 @@
[BASE_NR + 433] = { 3, TD|TF, SEN(fspick), "fspick" },
[BASE_NR + 434] = { 2, TD, SEN(pidfd_open), "pidfd_open" },
[BASE_NR + 435] = { 2, TP, SEN(clone3), "clone3" },
-/* 436 is reserved for watch_devices */
+[BASE_NR + 436] = { 3, TD, SEN(close_range), "close_range" },
[BASE_NR + 437] = { 4, TD|TF, SEN(openat2), "openat2" },
[BASE_NR + 438] = { 3, TD, SEN(pidfd_getfd), "pidfd_getfd" },
[BASE_NR + 439] = { 4, TD|TF, SEN(faccessat2), "faccessat2" },