aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_functions_graph.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace_functions_graph.c')
-rw-r--r--kernel/trace/trace_functions_graph.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/kernel/trace/trace_functions_graph.c b/kernel/trace/trace_functions_graph.c
index 66fc7b806a38..c97594d826bc 100644
--- a/kernel/trace/trace_functions_graph.c
+++ b/kernel/trace/trace_functions_graph.c
@@ -52,15 +52,11 @@ static struct tracer_flags tracer_flags = {
52 52
53static int graph_trace_init(struct trace_array *tr) 53static int graph_trace_init(struct trace_array *tr)
54{ 54{
55 int cpu, ret; 55 int ret = register_ftrace_graph(&trace_graph_return,
56
57 for_each_online_cpu(cpu)
58 tracing_reset(tr, cpu);
59
60 ret = register_ftrace_graph(&trace_graph_return,
61 &trace_graph_entry); 56 &trace_graph_entry);
62 if (ret) 57 if (ret)
63 return ret; 58 return ret;
59 tracing_reset_online_cpus(tr);
64 tracing_start_cmdline_record(); 60 tracing_start_cmdline_record();
65 61
66 return 0; 62 return 0;