Files
kernel_xiaomi_sm8250/include/linux
Steven Rostedt (VMware) 67d7bec3fc function_graph: Create function_graph_enter() to consolidate architecture code
commit 8114865ff82e200b383e46821c25cb0625b842b5 upstream.

Currently all the architectures do basically the same thing in preparing the
function graph tracer on entry to a function. This code can be pulled into a
generic location and then this will allow the function graph tracer to be
fixed, as well as extended.

Create a new function graph helper function_graph_enter() that will call the
hook function (ftrace_graph_entry) and the shadow stack operation
(ftrace_push_return_trace), and remove the need of the architecture code to
manage the shadow stack.

This is needed to prepare for a fix of a design bug on how the curr_ret_stack
is used.

Cc: stable@kernel.org
Fixes: 03274a3ffb ("tracing/fgraph: Adjust fgraph depth before calling trace return callback")
Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-12-05 19:32:09 +01:00
..
2018-11-21 09:19:16 +01:00
2018-08-22 10:52:48 -07:00
2018-11-13 11:08:50 -08:00
2018-09-04 21:31:43 +02:00
2018-08-22 10:52:45 -07:00
2018-08-22 10:52:46 -07:00
2018-08-16 12:14:42 -07:00
2018-11-13 11:08:51 -08:00