Skip to content

Commit

Permalink
tracing/function-graph-tracer: Drop the useless nmi protection
Browse files Browse the repository at this point in the history
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: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
  • Loading branch information
Frederic Weisbecker committed Aug 6, 2009
1 parent 0c9e6f6 commit 07868b0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/x86/kernel/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,10 +417,6 @@ void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr,
unsigned long return_hooker = (unsigned long)
&return_to_handler;

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

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

Expand Down

0 comments on commit 07868b0

Please sign in to comment.