aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_sched_switch.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace_sched_switch.c')
-rw-r--r--kernel/trace/trace_sched_switch.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/kernel/trace/trace_sched_switch.c b/kernel/trace/trace_sched_switch.c
index 79410db64d6f..7b73fd11e4aa 100644
--- a/kernel/trace/trace_sched_switch.c
+++ b/kernel/trace/trace_sched_switch.c
@@ -220,15 +220,6 @@ static void sched_switch_trace_reset(struct trace_array *tr)
220 stop_sched_trace(tr); 220 stop_sched_trace(tr);
221} 221}
222 222
223static void sched_switch_trace_ctrl_update(struct trace_array *tr)
224{
225 /* When starting a new trace, reset the buffers */
226 if (tr->ctrl)
227 start_sched_trace(tr);
228 else
229 stop_sched_trace(tr);
230}
231
232static void sched_switch_trace_start(struct trace_array *tr) 223static void sched_switch_trace_start(struct trace_array *tr)
233{ 224{
234 sched_switch_reset(tr); 225 sched_switch_reset(tr);
@@ -247,7 +238,6 @@ static struct tracer sched_switch_trace __read_mostly =
247 .reset = sched_switch_trace_reset, 238 .reset = sched_switch_trace_reset,
248 .start = sched_switch_trace_start, 239 .start = sched_switch_trace_start,
249 .stop = sched_switch_trace_stop, 240 .stop = sched_switch_trace_stop,
250 .ctrl_update = sched_switch_trace_ctrl_update,
251#ifdef CONFIG_FTRACE_SELFTEST 241#ifdef CONFIG_FTRACE_SELFTEST
252 .selftest = trace_selftest_startup_sched_switch, 242 .selftest = trace_selftest_startup_sched_switch,
253#endif 243#endif