diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-02-05 15:02:00 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-05 19:01:41 -0500 |
commit | b6f11df26fdc28324cf9c9e3b77f2dc985c1bb13 (patch) | |
tree | e03b4b8b9dad8a2d3f81574c10aab8fb7a779cbb /kernel/trace/trace_sched_switch.c | |
parent | 51a763dd84253bab1d0a1e68e11a7753d1b702ca (diff) |
trace: Call tracing_reset_online_cpus before tracer->init()
Impact: cleanup
To make it easy for ftrace plugin writers, as this was open coded in
the existing plugins
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Acked-by: Frédéric 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 | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/kernel/trace/trace_sched_switch.c b/kernel/trace/trace_sched_switch.c index c4f9add5ec90..30e14fe85896 100644 --- a/kernel/trace/trace_sched_switch.c +++ b/kernel/trace/trace_sched_switch.c | |||
@@ -185,12 +185,6 @@ void tracing_sched_switch_assign_trace(struct trace_array *tr) | |||
185 | ctx_trace = tr; | 185 | ctx_trace = tr; |
186 | } | 186 | } |
187 | 187 | ||
188 | static void start_sched_trace(struct trace_array *tr) | ||
189 | { | ||
190 | tracing_reset_online_cpus(tr); | ||
191 | tracing_start_sched_switch_record(); | ||
192 | } | ||
193 | |||
194 | static void stop_sched_trace(struct trace_array *tr) | 188 | static void stop_sched_trace(struct trace_array *tr) |
195 | { | 189 | { |
196 | tracing_stop_sched_switch_record(); | 190 | tracing_stop_sched_switch_record(); |
@@ -199,7 +193,7 @@ static void stop_sched_trace(struct trace_array *tr) | |||
199 | static int sched_switch_trace_init(struct trace_array *tr) | 193 | static int sched_switch_trace_init(struct trace_array *tr) |
200 | { | 194 | { |
201 | ctx_trace = tr; | 195 | ctx_trace = tr; |
202 | start_sched_trace(tr); | 196 | tracing_start_sched_switch_record(); |
203 | return 0; | 197 | return 0; |
204 | } | 198 | } |
205 | 199 | ||