diff options
author | Steven Rostedt <srostedt@redhat.com> | 2008-11-05 16:05:44 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-06 01:50:57 -0500 |
commit | 0f04870148ecb825133bc2733f473b1c5773ac0b (patch) | |
tree | 81399b7b9535d11ac6120366fc01fd051118226a /include/linux/ftrace.h | |
parent | 60a7ecf42661f2b22168751298592da6ee210c9e (diff) |
ftrace: soft tracing stop and start
Impact: add way to quickly start stop tracing from the kernel
This patch adds a soft stop and start to the trace. This simply
disables function tracing via the ftrace_disabled flag, and
disables the trace buffers to prevent recording. The tracing
code may still be executed, but the trace will not be recorded.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r-- | include/linux/ftrace.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 794ab907dbfe..7a75fc6d41f4 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -216,6 +216,9 @@ static inline void __ftrace_enabled_restore(int enabled) | |||
216 | #ifdef CONFIG_TRACING | 216 | #ifdef CONFIG_TRACING |
217 | extern int ftrace_dump_on_oops; | 217 | extern int ftrace_dump_on_oops; |
218 | 218 | ||
219 | extern void tracing_start(void); | ||
220 | extern void tracing_stop(void); | ||
221 | |||
219 | extern void | 222 | extern void |
220 | ftrace_special(unsigned long arg1, unsigned long arg2, unsigned long arg3); | 223 | ftrace_special(unsigned long arg1, unsigned long arg2, unsigned long arg3); |
221 | 224 | ||
@@ -246,6 +249,8 @@ ftrace_special(unsigned long arg1, unsigned long arg2, unsigned long arg3) { } | |||
246 | static inline int | 249 | static inline int |
247 | ftrace_printk(const char *fmt, ...) __attribute__ ((format (printf, 1, 0))); | 250 | ftrace_printk(const char *fmt, ...) __attribute__ ((format (printf, 1, 0))); |
248 | 251 | ||
252 | static inline void tracing_start(void) { } | ||
253 | static inline void tracing_stop(void) { } | ||
249 | static inline int | 254 | static inline int |
250 | ftrace_printk(const char *fmt, ...) | 255 | ftrace_printk(const char *fmt, ...) |
251 | { | 256 | { |