diff options
author | Oleg Nesterov <[email protected]> | 2014-04-13 20:59:18 +0200 |
---|---|---|
committer | Steven Rostedt <[email protected]> | 2014-06-21 00:15:25 -0400 |
commit | 8063e41d2ffc0b0ce974ea802158be35902072f3 (patch) | |
tree | 27787dcbf46b42a1737c4668673eb249b9304038 /net/unix/af_unix.c | |
parent | 4af4206be2bd1933cae20c2b6fb2058dbc887f7c (diff) |
tracing: Change syscall_*regfunc() to check PF_KTHREAD and use for_each_process_thread()
1. Remove _irqsafe from syscall_regfunc/syscall_unregfunc,
read_lock(tasklist) doesn't need to disable irqs.
2. Change this code to avoid the deprecated do_each_thread()
and use for_each_process_thread() (stolen from the patch
from Frederic).
3. Change syscall_regfunc() to check PF_KTHREAD to skip
the kernel threads, ->mm != NULL is the common mistake.
Note: probably this check should be simply removed, needs
another patch.
[[email protected]: s/do_each_thread/for_each_process_thread/]
Link: http://lkml.kernel.org/p/[email protected]
Signed-off-by: Oleg Nesterov <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions