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)
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

Simple merge
Simple merge