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 /block/blktrace.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 'block/blktrace.c')
-rw-r--r-- | block/blktrace.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/block/blktrace.c b/block/blktrace.c index 834cd84037b2..ca6d32061e4f 100644 --- a/block/blktrace.c +++ b/block/blktrace.c | |||
@@ -1086,8 +1086,6 @@ static void blk_tracer_print_header(struct seq_file *m) | |||
1086 | 1086 | ||
1087 | static void blk_tracer_start(struct trace_array *tr) | 1087 | static void blk_tracer_start(struct trace_array *tr) |
1088 | { | 1088 | { |
1089 | tracing_reset_online_cpus(tr); | ||
1090 | |||
1091 | mutex_lock(&blk_probe_mutex); | 1089 | mutex_lock(&blk_probe_mutex); |
1092 | if (atomic_add_return(1, &blk_probes_ref) == 1) | 1090 | if (atomic_add_return(1, &blk_probes_ref) == 1) |
1093 | if (blk_register_tracepoints()) | 1091 | if (blk_register_tracepoints()) |