diff options
author | Amir Goldstein <amir73il@gmail.com> | 2018-10-04 00:25:38 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2018-10-08 14:48:45 +0300 |
commit | d0a6a87e40da49cfc7954c491d3065a25a641b29 (patch) | |
tree | 49e34224bcda4f0a436beb3b4a4e0214606dfaa1 /include/linux/fanotify.h | |
parent | bdd5a46fe30653cb4d26c7c787a22159bf79eed9 (diff) | |
download | linux-d0a6a87e40da49cfc7954c491d3065a25a641b29.tar.xz |
fanotify: support reporting thread id instead of process id
In order to identify which thread triggered the event in a
multi-threaded program, add the FAN_REPORT_TID flag in fanotify_init to
opt-in for reporting the event creator's thread id information.
Signed-off-by: nixiaoming <nixiaoming@huawei.com>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'include/linux/fanotify.h')
-rw-r--r-- | include/linux/fanotify.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fanotify.h b/include/linux/fanotify.h index caf55c67fc6c..a5a60691e48b 100644 --- a/include/linux/fanotify.h +++ b/include/linux/fanotify.h @@ -19,6 +19,7 @@ FAN_CLASS_PRE_CONTENT) #define FANOTIFY_INIT_FLAGS (FANOTIFY_CLASS_BITS | \ + FAN_REPORT_TID | \ FAN_CLOEXEC | FAN_NONBLOCK | \ FAN_UNLIMITED_QUEUE | FAN_UNLIMITED_MARKS) |