]> 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)
commit0a5f257f8b3b0c9f9ca49960d5c8c1f9070812fb
tree807760ebd25ee9295237364be6c9fe090f239f98
parent3126204c2b2388e069e1041a49caaa4c2530cce5
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