summaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-01-14 14:50:19 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-21 15:21:30 +0100
commita442e5e0a2011af5b2d1f118fee0a8f9079f1d88 (patch)
tree060bada7945ebeeec57c1b8c201552767da590aa /kernel/trace
parentfaf6861ebd776871e77b761c43ec045cd20b5716 (diff)
downloadop-kernel-dev-a442e5e0a2011af5b2d1f118fee0a8f9079f1d88.zip
op-kernel-dev-a442e5e0a2011af5b2d1f118fee0a8f9079f1d88.tar.gz
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')
-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 1a1c5a6..4d89e84 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -3770,6 +3770,7 @@ void ftrace_dump(void)
dump_ran = 1;
/* No turning back! */
+ tracing_off();
ftrace_kill();
for_each_tracing_cpu(cpu) {
OpenPOWER on IntegriCloud