fanotify: support reporting thread id instead of process id
authorAmir Goldstein <amir73il@gmail.com>
Wed, 3 Oct 2018 21:25:38 +0000 (00:25 +0300)
committerJan Kara <jack@suse.cz>
Mon, 8 Oct 2018 11:48:45 +0000 (13:48 +0200)
commitd0a6a87e40da49cfc7954c491d3065a25a641b29
tree49e34224bcda4f0a436beb3b4a4e0214606dfaa1
parentbdd5a46fe30653cb4d26c7c787a22159bf79eed9
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>
fs/notify/fanotify/fanotify.c
fs/notify/fanotify/fanotify.h
fs/notify/fanotify/fanotify_user.c
include/linux/fanotify.h
include/uapi/linux/fanotify.h