aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2014-04-13 20:59:18 +0200
committerMoyster <oysterized@gmail.com>2019-05-02 17:35:52 +0200
commit4d7a674be92949ba70cd6136561c02172b9a0307 (patch)
treecd2afd27f7775fdcd7c9fb81fc36a3db0932f429 /include/linux
parent0e2dc99cd1083073b5360791044635ae6c680db8 (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. [fweisbec@gmail.com: s/do_each_thread/for_each_process_thread/] Link: http://lkml.kernel.org/p/20140413185918.GC20668@redhat.com Change-Id: I878868747db7d5873f85faae52132631604fb678 Signed-off-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions