Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 35cb5ed0 authored by Frédéric Weisbecker's avatar Frédéric Weisbecker Committed by Ingo Molnar
Browse files

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: default avatarFrederic Weisbecker <fweisbec@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Steven Noonan <steven@uplinklabs.net>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 8925b394
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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);
}