summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2014-07-22 20:41:42 -0400
committerSteven Rostedt <rostedt@goodmis.org>2014-09-09 19:26:06 -0400
commit87354059881ce9315181604dc17076c535f4d744 (patch)
treeaaec89b1b94d9ca028a91da44b68a578aa62148a /include
parentf1ff6348b30b3658d138f05643149706f99078ae (diff)
downloadlinux-87354059881ce9315181604dc17076c535f4d744.tar.gz
linux-87354059881ce9315181604dc17076c535f4d744.tar.bz2
linux-87354059881ce9315181604dc17076c535f4d744.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ftrace.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index f0b0edbf55a9..ef37286547fc 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -56,6 +56,8 @@ struct ftrace_ops;
typedef void (*ftrace_func_t)(unsigned long ip, unsigned long parent_ip,
struct ftrace_ops *op, struct pt_regs *regs);
+ftrace_func_t ftrace_ops_get_func(struct ftrace_ops *ops);
+
/*
* FTRACE_OPS_FL_* bits denote the state of ftrace_ops struct and are
* set in the flags member.