|
@@ -130,17 +130,16 @@ unsigned long prepare_ftrace_return(unsigned long parent,
|
|
|
if (unlikely(atomic_read(¤t->tracing_graph_pause)))
|
|
|
return parent + 8UL;
|
|
|
|
|
|
- if (ftrace_push_return_trace(parent, self_addr, &trace.depth,
|
|
|
- frame_pointer, NULL) == -EBUSY)
|
|
|
- return parent + 8UL;
|
|
|
-
|
|
|
trace.func = self_addr;
|
|
|
+ trace.depth = current->curr_ret_stack + 1;
|
|
|
|
|
|
/* Only trace if the calling function expects to */
|
|
|
- if (!ftrace_graph_entry(&trace)) {
|
|
|
- current->curr_ret_stack--;
|
|
|
+ if (!ftrace_graph_entry(&trace))
|
|
|
+ return parent + 8UL;
|
|
|
+
|
|
|
+ if (ftrace_push_return_trace(parent, self_addr, &trace.depth,
|
|
|
+ frame_pointer, NULL) == -EBUSY)
|
|
|
return parent + 8UL;
|
|
|
- }
|
|
|
|
|
|
return return_hooker;
|
|
|
}
|