diff options
author | Frédéric Weisbecker <fweisbec@gmail.com> | 2008-09-21 14:10:14 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-14 04:38:04 -0400 |
commit | 35cb5ed01261f5669657d2f1720aca902299887d (patch) | |
tree | b4c91f58d56f0744d076cfb69967efa747f1385d /kernel/trace | |
parent | 8925b394eca0bb0a444a6487d702d0f650e94a10 (diff) |
tracing/ftrace: make nop tracer reset previous entries
If nop tracer is selected, some old entries from the previous tracer
could still be enqueued. Tracing have to be reset.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Steven Noonan <steven@uplinklabs.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/trace_nop.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/trace/trace_nop.c b/kernel/trace/trace_nop.c index dafaefb84038..9fb02c17ad0c 100644 --- a/kernel/trace/trace_nop.c +++ b/kernel/trace/trace_nop.c | |||
@@ -26,8 +26,12 @@ static void stop_nop_trace(struct trace_array *tr) | |||
26 | 26 | ||
27 | static void nop_trace_init(struct trace_array *tr) | 27 | static void nop_trace_init(struct trace_array *tr) |
28 | { | 28 | { |
29 | int cpu; | ||
29 | ctx_trace = tr; | 30 | ctx_trace = tr; |
30 | 31 | ||
32 | for_each_online_cpu(cpu) | ||
33 | tracing_reset(tr->data[cpu]); | ||
34 | |||
31 | if (tr->ctrl) | 35 | if (tr->ctrl) |
32 | start_nop_trace(tr); | 36 | start_nop_trace(tr); |
33 | } | 37 | } |