aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r--kernel/trace/trace.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 9110329ecf77..54517a889791 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -550,7 +550,6 @@ __acquires(kernel_lock)
550 if (type->selftest && !tracing_selftest_disabled) { 550 if (type->selftest && !tracing_selftest_disabled) {
551 struct tracer *saved_tracer = current_trace; 551 struct tracer *saved_tracer = current_trace;
552 struct trace_array *tr = &global_trace; 552 struct trace_array *tr = &global_trace;
553 int i;
554 553
555 /* 554 /*
556 * Run a selftest on this tracer. 555 * Run a selftest on this tracer.
@@ -559,8 +558,7 @@ __acquires(kernel_lock)
559 * internal tracing to verify that everything is in order. 558 * internal tracing to verify that everything is in order.
560 * If we fail, we do not register this tracer. 559 * If we fail, we do not register this tracer.
561 */ 560 */
562 for_each_tracing_cpu(i) 561 tracing_reset_online_cpus(tr);
563 tracing_reset(tr, i);
564 562
565 current_trace = type; 563 current_trace = type;
566 /* the test is responsible for initializing and enabling */ 564 /* the test is responsible for initializing and enabling */
@@ -573,8 +571,7 @@ __acquires(kernel_lock)
573 goto out; 571 goto out;
574 } 572 }
575 /* Only reset on passing, to avoid touching corrupted buffers */ 573 /* Only reset on passing, to avoid touching corrupted buffers */
576 for_each_tracing_cpu(i) 574 tracing_reset_online_cpus(tr);
577 tracing_reset(tr, i);
578 575
579 printk(KERN_CONT "PASSED\n"); 576 printk(KERN_CONT "PASSED\n");
580 } 577 }