aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-01-14 14:50:19 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-15 03:47:13 -0500
commit0ee6b6cf5bdb793b4c68507dd65adf16341aa4ca (patch)
tree31f269948f100dffa68ff2683345c6a770dbd5df /kernel/trace/trace.c
parent6f3b34402e7282cde49dff395d7ea462bf33bf50 (diff)
trace: stop all recording to ring buffer on ftrace_dump
Impact: limit ftrace dump output Currently ftrace_dump only calls ftrace_kill that is a fast way to prevent the function tracer functions from being called (just sets a flag and clears the function to call, nothing else). It is better to also turn off any recording to the ring buffers as well. Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r--kernel/trace/trace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 408c03f2b8a9..dcb757f70d21 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -3110,6 +3110,7 @@ void ftrace_dump(void)
3110 dump_ran = 1; 3110 dump_ran = 1;
3111 3111
3112 /* No turning back! */ 3112 /* No turning back! */
3113 tracing_off();
3113 ftrace_kill(); 3114 ftrace_kill();
3114 3115
3115 for_each_tracing_cpu(cpu) { 3116 for_each_tracing_cpu(cpu) {