aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/trace/trace_nop.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/trace/trace_nop.c b/kernel/trace/trace_nop.c
index dafaefb84038..9fb02c17ad0c 100644
--- a/kernel/trace/trace_nop.c
+++ b/kernel/trace/trace_nop.c
@@ -26,8 +26,12 @@ static void stop_nop_trace(struct trace_array *tr)
26 26
27static void nop_trace_init(struct trace_array *tr) 27static void nop_trace_init(struct trace_array *tr)
28{ 28{
29 int cpu;
29 ctx_trace = tr; 30 ctx_trace = tr;
30 31
32 for_each_online_cpu(cpu)
33 tracing_reset(tr->data[cpu]);
34
31 if (tr->ctrl) 35 if (tr->ctrl)
32 start_nop_trace(tr); 36 start_nop_trace(tr);
33} 37}