aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ftrace.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2008-05-12 15:20:45 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 14:41:06 -0400
commit77a2b37d227483fe52aead242652aee406c25bf0 (patch)
treececb6a3a02a567530e2ce3502de18f371c9db7c1 /include/linux/ftrace.h
parent7bd2f24c2f769e3f8f1d4fc8b9fddf689825f6a7 (diff)
ftrace: startup tester on dynamic tracing.
This patch adds a startup self test on dynamic code modification and filters. The test filters on a specific function, makes sure that no other function is traced, exectutes the function, then makes sure that the function is traced. This patch also fixes a slight bug with the ftrace selftest, where tracer_enabled was not being set. Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/ftrace.h')
-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 953a36d6a199..a842d96c6343 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -55,6 +55,7 @@ struct dyn_ftrace {
55}; 55};
56 56
57int ftrace_force_update(void); 57int ftrace_force_update(void);
58void ftrace_set_filter(unsigned char *buf, int len, int reset);
58 59
59/* defined in arch */ 60/* defined in arch */
60extern int ftrace_ip_converted(unsigned long ip); 61extern int ftrace_ip_converted(unsigned long ip);
@@ -70,6 +71,7 @@ extern void ftrace_call(void);
70extern void mcount_call(void); 71extern void mcount_call(void);
71#else 72#else
72# define ftrace_force_update() ({ 0; }) 73# define ftrace_force_update() ({ 0; })
74# define ftrace_set_filter(buf, len, reset) do { } while (0)
73#endif 75#endif
74 76
75static inline void tracer_disable(void) 77static inline void tracer_disable(void)