]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: Add ftrace_find_direct_func()
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 8 Nov 2019 18:11:27 +0000 (13:11 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 13 Nov 2019 14:36:48 +0000 (09:36 -0500)
commit48fc48ed75714bde06526f72664cad4ef81c189b
tree807760ebd25ee9295237364be6c9fe090f239f98
parentb7d9fc212080dcaf780120409895850e8c76f252
ftrace: Add ftrace_find_direct_func()

As function_graph tracer modifies the return address to insert a trampoline
to trace the return of a function, it must be aware of a direct caller, as
when it gets called, the function's return address may not be at on the
stack where it expects. It may have to see if that return address points to
the a direct caller and adjust if it is.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
include/linux/ftrace.h
kernel/trace/ftrace.c