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

Commit 07868b08 authored by Frederic Weisbecker's avatar Frederic Weisbecker
Browse files

tracing/function-graph-tracer: Drop the useless nmi protection



The function graph tracer used to have a protection against NMI
while entering a function entry tracing. But this is useless now,
this tracer is reentrant and the ring buffer supports the NMI tracing.
We can then drop this protection.

Signed-off-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
parent 0c9e6f63
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -417,10 +417,6 @@ void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr,
	unsigned long return_hooker = (unsigned long)
	unsigned long return_hooker = (unsigned long)
				&return_to_handler;
				&return_to_handler;


	/* Nmi's are currently unsupported */
	if (unlikely(in_nmi()))
		return;

	if (unlikely(atomic_read(&current->tracing_graph_pause)))
	if (unlikely(atomic_read(&current->tracing_graph_pause)))
		return;
		return;