aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_selftest.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace_selftest.c')
-rw-r--r--kernel/trace/trace_selftest.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/kernel/trace/trace_selftest.c b/kernel/trace/trace_selftest.c
index 746934340474..ea4e5d3b15df 100644
--- a/kernel/trace/trace_selftest.c
+++ b/kernel/trace/trace_selftest.c
@@ -110,7 +110,6 @@ int trace_selftest_startup_dynamic_tracing(struct tracer *trace,
110 ftrace_set_filter(func_name, strlen(func_name), 1); 110 ftrace_set_filter(func_name, strlen(func_name), 1);
111 111
112 /* enable tracing */ 112 /* enable tracing */
113 tr->ctrl = 1;
114 trace->init(tr); 113 trace->init(tr);
115 114
116 /* Sleep for a 1/10 of a second */ 115 /* Sleep for a 1/10 of a second */
@@ -181,7 +180,6 @@ trace_selftest_startup_function(struct tracer *trace, struct trace_array *tr)
181 ftrace_enabled = 1; 180 ftrace_enabled = 1;
182 tracer_enabled = 1; 181 tracer_enabled = 1;
183 182
184 tr->ctrl = 1;
185 trace->init(tr); 183 trace->init(tr);
186 /* Sleep for a 1/10 of a second */ 184 /* Sleep for a 1/10 of a second */
187 msleep(100); 185 msleep(100);
@@ -224,7 +222,6 @@ trace_selftest_startup_irqsoff(struct tracer *trace, struct trace_array *tr)
224 int ret; 222 int ret;
225 223
226 /* start the tracing */ 224 /* start the tracing */
227 tr->ctrl = 1;
228 trace->init(tr); 225 trace->init(tr);
229 /* reset the max latency */ 226 /* reset the max latency */
230 tracing_max_latency = 0; 227 tracing_max_latency = 0;
@@ -261,7 +258,6 @@ trace_selftest_startup_preemptoff(struct tracer *trace, struct trace_array *tr)
261 int ret; 258 int ret;
262 259
263 /* start the tracing */ 260 /* start the tracing */
264 tr->ctrl = 1;
265 trace->init(tr); 261 trace->init(tr);
266 /* reset the max latency */ 262 /* reset the max latency */
267 tracing_max_latency = 0; 263 tracing_max_latency = 0;
@@ -298,7 +294,6 @@ trace_selftest_startup_preemptirqsoff(struct tracer *trace, struct trace_array *
298 int ret; 294 int ret;
299 295
300 /* start the tracing */ 296 /* start the tracing */
301 tr->ctrl = 1;
302 trace->init(tr); 297 trace->init(tr);
303 298
304 /* reset the max latency */ 299 /* reset the max latency */
@@ -427,7 +422,6 @@ trace_selftest_startup_wakeup(struct tracer *trace, struct trace_array *tr)
427 wait_for_completion(&isrt); 422 wait_for_completion(&isrt);
428 423
429 /* start the tracing */ 424 /* start the tracing */
430 tr->ctrl = 1;
431 trace->init(tr); 425 trace->init(tr);
432 /* reset the max latency */ 426 /* reset the max latency */
433 tracing_max_latency = 0; 427 tracing_max_latency = 0;
@@ -484,7 +478,6 @@ trace_selftest_startup_sched_switch(struct tracer *trace, struct trace_array *tr
484 int ret; 478 int ret;
485 479
486 /* start the tracing */ 480 /* start the tracing */
487 tr->ctrl = 1;
488 trace->init(tr); 481 trace->init(tr);
489 /* Sleep for a 1/10 of a second */ 482 /* Sleep for a 1/10 of a second */
490 msleep(100); 483 msleep(100);
@@ -512,7 +505,6 @@ trace_selftest_startup_sysprof(struct tracer *trace, struct trace_array *tr)
512 int ret; 505 int ret;
513 506
514 /* start the tracing */ 507 /* start the tracing */
515 tr->ctrl = 1;
516 trace->init(tr); 508 trace->init(tr);
517 /* Sleep for a 1/10 of a second */ 509 /* Sleep for a 1/10 of a second */
518 msleep(100); 510 msleep(100);