]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: Do not process STUB functions in ftrace_ops_list_func()
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 11 Apr 2019 15:46:13 +0000 (11:46 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 11 Apr 2019 15:46:13 +0000 (11:46 -0400)
commit1728a5c33e3434ccdcf141e7dc37e84f400515a4
treebef09523f405dbb1063a1407bf63fcca89edf2ad
parent5ece89c91448f44ed5a62859979c6232643c3e28
ftrace: Do not process STUB functions in ftrace_ops_list_func()

The function_graph tracer has a stub function and its ops flag has the
FTRACE_OPS_FL_STUB set. As the function graph does not use the
ftrace_ops->func pointer but instead is called by a separate part of the
ftrace trampoline. The function_graph tracer still requires to pass in a
ftrace_ops that may also hold the hash of the functions to call. But there's
no reason to test that hash in the function tracing portion. Instead of
testing to see if we should call the stub function, just test if the ops has
FTRACE_OPS_FL_STUB set, and just skip it.

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