|
@@ -121,6 +121,8 @@ unsigned long __kprobes prepare_ftrace_return(unsigned long parent,
|
|
{
|
|
{
|
|
struct ftrace_graph_ent trace;
|
|
struct ftrace_graph_ent trace;
|
|
|
|
|
|
|
|
+ if (unlikely(ftrace_graph_is_dead()))
|
|
|
|
+ goto out;
|
|
if (unlikely(atomic_read(¤t->tracing_graph_pause)))
|
|
if (unlikely(atomic_read(¤t->tracing_graph_pause)))
|
|
goto out;
|
|
goto out;
|
|
ip = (ip & PSW_ADDR_INSN) - MCOUNT_INSN_SIZE;
|
|
ip = (ip & PSW_ADDR_INSN) - MCOUNT_INSN_SIZE;
|