From: Frédéric Weisbecker Date: Sun, 21 Sep 2008 18:10:14 +0000 (+0200) Subject: tracing/ftrace: make nop tracer reset previous entries X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=35cb5ed01261f5669657d2f1720aca902299887d;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Cc: Steven Rostedt Cc: Steven Noonan Signed-off-by: Ingo Molnar --- 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) static void nop_trace_init(struct trace_array *tr) { + int cpu; ctx_trace = tr; + for_each_online_cpu(cpu) + tracing_reset(tr->data[cpu]); + if (tr->ctrl) start_nop_trace(tr); }