aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index b00711ce7c13..5e1391b5ade0 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -76,6 +76,9 @@
76 76
77#include <trace/events/sched.h> 77#include <trace/events/sched.h>
78 78
79#define CREATE_TRACE_POINTS
80#include <trace/events/task.h>
81
79/* 82/*
80 * Protected counters by write_lock_irq(&tasklist_lock) 83 * Protected counters by write_lock_irq(&tasklist_lock)
81 */ 84 */
@@ -1370,6 +1373,9 @@ static struct task_struct *copy_process(unsigned long clone_flags,
1370 if (clone_flags & CLONE_THREAD) 1373 if (clone_flags & CLONE_THREAD)
1371 threadgroup_change_end(current); 1374 threadgroup_change_end(current);
1372 perf_event_fork(p); 1375 perf_event_fork(p);
1376
1377 trace_task_newtask(p, clone_flags);
1378
1373 return p; 1379 return p;
1374 1380
1375bad_fork_free_pid: 1381bad_fork_free_pid: