aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/trace/trace_sched_switch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace_sched_switch.c b/kernel/trace/trace_sched_switch.c
index 93a662009151..cb817a209aa0 100644
--- a/kernel/trace/trace_sched_switch.c
+++ b/kernel/trace/trace_sched_switch.c
@@ -227,14 +227,14 @@ void tracing_stop_cmdline_record(void)
227static void start_sched_trace(struct trace_array *tr) 227static void start_sched_trace(struct trace_array *tr)
228{ 228{
229 sched_switch_reset(tr); 229 sched_switch_reset(tr);
230 tracer_enabled = 1;
231 tracing_start_cmdline_record(); 230 tracing_start_cmdline_record();
231 tracer_enabled = 1;
232} 232}
233 233
234static void stop_sched_trace(struct trace_array *tr) 234static void stop_sched_trace(struct trace_array *tr)
235{ 235{
236 tracing_stop_cmdline_record();
237 tracer_enabled = 0; 236 tracer_enabled = 0;
237 tracing_stop_cmdline_record();
238} 238}
239 239
240static void sched_switch_trace_init(struct trace_array *tr) 240static void sched_switch_trace_init(struct trace_array *tr)