ftrace: Add separate function for non recursive callbacks
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Wed, 23 Jul 2014 00:16:57 +0000 (20:16 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 9 Sep 2014 14:26:48 +0000 (10:26 -0400)
commitf1ff6348b30b3658d138f05643149706f99078ae
treee35e085be010b5174f85b94939876d13a19eac4f
parent2ce7598c9a453e0acd0e07be7be3f5eb39608ebd
ftrace: Add separate function for non recursive callbacks

Instead of using the generic list function for callbacks that
are not recursive, call a new helper function from the mcount
trampoline called ftrace_ops_recur_func() that will do the recursion
checking for the callback.

This eliminates an indirection as well as will help in future code
that will use dynamically allocated trampolines.

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