aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/tracepoint.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/tracepoint.c')
-rw-r--r--kernel/tracepoint.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/tracepoint.c b/kernel/tracepoint.c
index 1a6a453b7efb..9489a0a9b1be 100644
--- a/kernel/tracepoint.c
+++ b/kernel/tracepoint.c
@@ -597,7 +597,9 @@ void syscall_regfunc(void)
597 if (!sys_tracepoint_refcount) { 597 if (!sys_tracepoint_refcount) {
598 read_lock_irqsave(&tasklist_lock, flags); 598 read_lock_irqsave(&tasklist_lock, flags);
599 do_each_thread(g, t) { 599 do_each_thread(g, t) {
600 set_tsk_thread_flag(t, TIF_SYSCALL_TRACEPOINT); 600 /* Skip kernel threads. */
601 if (t->mm)
602 set_tsk_thread_flag(t, TIF_SYSCALL_TRACEPOINT);
601 } while_each_thread(g, t); 603 } while_each_thread(g, t);
602 read_unlock_irqrestore(&tasklist_lock, flags); 604 read_unlock_irqrestore(&tasklist_lock, flags);
603 } 605 }