syscalls/fanotify11: new test for report thread id
PATCH v5 1/1 syscalls/fanotify11: new test for report thread id
syscalls/fanotify11
test fanotify_init with FAN_EVENT_INFO_TID
data->pid is ID(pid) of the thread that caused the event test fanotify_init without FAN_EVENT_INFO_TID data->pid is ID(tgid) of the process that caused the event
Signed-off-by nixiaoming <[email protected]>
---
this is not testing an upstream feature, only RFC.
runtest/syscalls | 1 + testcases/kernel/syscalls/fanotify/.gitignore | 1 + testcases/kernel/syscalls/fanotify/Makefile | 2 +- testcases/kernel/syscalls/fanotify/fanotify11.c | 131 ++++++++++++++++++++++++ 4 files changed, 134 insertions(+), 1 deletion(-) create mode 100644 testcases/kernel/syscalls/fanotify/fanotify11.c
runtest/syscalls +1 -0
@@ -497,6 +497,7 @@ fanotify06 fanotify06 fanotify07 fanotify07 fanotify08 fanotify08 fanotify09 fanotify09 +fanotify11 fanotify11 ioperm01 ioperm01 ioperm02 ioperm02
testcases/kernel/syscalls/fanotify/.gitignore +1 -0
@@ -7,3 +7,4 @@ /fanotify07 /fanotify08 /fanotify09 +/fanotify11
testcases/kernel/syscalls/fanotify/Makefile +1 -1
@@ -17,7 +17,7 @@ # top_srcdir ?= ../../../.. - +fanotify11: CFLAGS+=-pthread include $(top_srcdir)/include/mk/testcases.mk include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/kernel/syscalls/fanotify/fanotify11.c new file +131 -0
131 lines not on this page · raw message
Signature · 1 line
2.10.1