diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2008-10-31 08:34:45 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-04 11:14:08 -0500 |
commit | 79a9d461fd521f133f0e66485aa9ed09c21f5191 (patch) | |
tree | ad90b0c05dabfa639855ee046c04bba77de85804 /kernel/trace/trace_sched_switch.c | |
parent | efade6e7821c4219818e9da08f9315dfa617048b (diff) |
tracing/ftrace: fix a bug when switch current tracer to sched tracer
Impact: fix boot tracer + sched tracer coupling bug
Fix a bug that made the sched_switch tracer unable to run
if set as the current_tracer after the boot tracer.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace_sched_switch.c')
-rw-r--r-- | kernel/trace/trace_sched_switch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_sched_switch.c b/kernel/trace/trace_sched_switch.c index 969953bf678f..888944d3409d 100644 --- a/kernel/trace/trace_sched_switch.c +++ b/kernel/trace/trace_sched_switch.c | |||
@@ -173,7 +173,7 @@ static void sched_switch_trace_init(struct trace_array *tr) | |||
173 | 173 | ||
174 | static void sched_switch_trace_reset(struct trace_array *tr) | 174 | static void sched_switch_trace_reset(struct trace_array *tr) |
175 | { | 175 | { |
176 | if (tr->ctrl) | 176 | if (tr->ctrl && sched_ref) |
177 | stop_sched_trace(tr); | 177 | stop_sched_trace(tr); |
178 | } | 178 | } |
179 | 179 | ||