diff options
author | Steven Rostedt <srostedt@redhat.com> | 2011-12-19 21:57:44 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2011-12-21 07:26:35 -0500 |
commit | 2a85a37f168d2b4d74d493b578af4dc9032be92e (patch) | |
tree | 26ed7136e9092e61ae693e117a540045ec5d54a0 /include/linux/ftrace.h | |
parent | d2d45c7a03a2b1a14159cbb665e9dd60991a7d4f (diff) |
ftrace: Allow access to the boot time function enabling
Change set_ftrace_early_filter() to ftrace_set_early_filter()
and make it a global function. This will allow other subsystems
in the kernel to be able to enable function tracing at start
up and reuse the ftrace function parsing code.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r-- | include/linux/ftrace.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index d1ff0de18970..41df6f501656 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -235,6 +235,9 @@ ssize_t ftrace_notrace_write(struct file *file, const char __user *ubuf, | |||
235 | loff_t ftrace_regex_lseek(struct file *file, loff_t offset, int origin); | 235 | loff_t ftrace_regex_lseek(struct file *file, loff_t offset, int origin); |
236 | int ftrace_regex_release(struct inode *inode, struct file *file); | 236 | int ftrace_regex_release(struct inode *inode, struct file *file); |
237 | 237 | ||
238 | void __init | ||
239 | ftrace_set_early_filter(struct ftrace_ops *ops, char *buf, int enable); | ||
240 | |||
238 | /* defined in arch */ | 241 | /* defined in arch */ |
239 | extern int ftrace_ip_converted(unsigned long ip); | 242 | extern int ftrace_ip_converted(unsigned long ip); |
240 | extern int ftrace_dyn_arch_init(void *data); | 243 | extern int ftrace_dyn_arch_init(void *data); |