aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/trace_functions.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/trace/trace_functions.c b/kernel/trace/trace_functions.c
index 7ee7dcd76b7d..312144897970 100644
--- a/kernel/trace/trace_functions.c
+++ b/kernel/trace/trace_functions.c
@@ -28,7 +28,10 @@ static void function_reset(struct trace_array *tr)
28 28
29static void start_function_trace(struct trace_array *tr) 29static void start_function_trace(struct trace_array *tr)
30{ 30{
31 tr->cpu = get_cpu();
31 function_reset(tr); 32 function_reset(tr);
33 put_cpu();
34
32 tracing_start_cmdline_record(); 35 tracing_start_cmdline_record();
33 tracing_start_function_trace(); 36 tracing_start_function_trace();
34} 37}