aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ftrace.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2008-12-16 23:06:40 -0500
committerIngo Molnar <mingo@elte.hu>2008-12-18 06:56:24 -0500
commitf38f1d2aa5a3520cf05da7cd6bd12fe2b0c509b7 (patch)
tree5eef795a1a081c41686971eaaa5ba2d1098ceb9d /include/linux/ftrace.h
parent40874491f9e9a4cb08eaf663dbe018bf5671975a (diff)
trace: add a way to enable or disable the stack tracer
Impact: enhancement to stack tracer The stack tracer currently is either on when configured in or off when it is not. It can not be disabled when it is configured on. (besides disabling the function tracer that it uses) This patch adds a way to enable or disable the stack tracer at run time. It defaults off on bootup, but a kernel parameter 'stacktrace' has been added to enable it on bootup. A new sysctl has been added "kernel.stack_tracer_enabled" to let the user enable or disable the stack tracer at run time. 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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index 44020f31bd81..6b0db53caa7d 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -86,6 +86,14 @@ static inline void ftrace_stop(void) { }
86static inline void ftrace_start(void) { } 86static inline void ftrace_start(void) { }
87#endif /* CONFIG_FUNCTION_TRACER */ 87#endif /* CONFIG_FUNCTION_TRACER */
88 88
89#ifdef CONFIG_STACK_TRACER
90extern int stack_tracer_enabled;
91int
92stack_trace_sysctl(struct ctl_table *table, int write,
93 struct file *file, void __user *buffer, size_t *lenp,
94 loff_t *ppos);
95#endif
96
89#ifdef CONFIG_DYNAMIC_FTRACE 97#ifdef CONFIG_DYNAMIC_FTRACE
90/* asm/ftrace.h must be defined for archs supporting dynamic ftrace */ 98/* asm/ftrace.h must be defined for archs supporting dynamic ftrace */
91#include <asm/ftrace.h> 99#include <asm/ftrace.h>