diff options
Diffstat (limited to 'kernel/trace/ftrace.c')
-rw-r--r-- | kernel/trace/ftrace.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 2971fe48f55e..a12f80efceaa 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -1998,6 +1998,7 @@ static int alloc_retstack_tasklist(struct ftrace_ret_stack **ret_stack_list) | |||
1998 | /* Make sure IRQs see the -1 first: */ | 1998 | /* Make sure IRQs see the -1 first: */ |
1999 | barrier(); | 1999 | barrier(); |
2000 | t->ret_stack = ret_stack_list[start++]; | 2000 | t->ret_stack = ret_stack_list[start++]; |
2001 | atomic_set(&t->tracing_graph_pause, 0); | ||
2001 | atomic_set(&t->trace_overrun, 0); | 2002 | atomic_set(&t->trace_overrun, 0); |
2002 | } | 2003 | } |
2003 | } while_each_thread(g, t); | 2004 | } while_each_thread(g, t); |
@@ -2077,6 +2078,7 @@ void ftrace_graph_init_task(struct task_struct *t) | |||
2077 | if (!t->ret_stack) | 2078 | if (!t->ret_stack) |
2078 | return; | 2079 | return; |
2079 | t->curr_ret_stack = -1; | 2080 | t->curr_ret_stack = -1; |
2081 | atomic_set(&t->tracing_graph_pause, 0); | ||
2080 | atomic_set(&t->trace_overrun, 0); | 2082 | atomic_set(&t->trace_overrun, 0); |
2081 | } else | 2083 | } else |
2082 | t->ret_stack = NULL; | 2084 | t->ret_stack = NULL; |