ftrace: Add helper function ftrace_ops_get_func()
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Wed, 23 Jul 2014 00:41:42 +0000 (20:41 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 9 Sep 2014 23:26:06 +0000 (19:26 -0400)
commit87354059881ce9315181604dc17076c535f4d744
treeaaec89b1b94d9ca028a91da44b68a578aa62148a
parentf1ff6348b30b3658d138f05643149706f99078ae
ftrace: Add helper function ftrace_ops_get_func()

Add the helper function to what the mcount trampoline is to call
for a ftrace_ops function. This helper will be used by arch code
in the future to set up dynamic trampolines. But as this does the
same tests that are performed in choosing what function to call for
the default mcount trampoline, might as well use it to clean up
the existing code.

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