Skip to content

Commit

Permalink
trace: stop all recording to ring buffer on ftrace_dump
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Rostedt authored and Ingo Molnar committed Jan 21, 2009
1 parent faf6861 commit a442e5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -3770,6 +3770,7 @@ void ftrace_dump(void)
dump_ran = 1;

/* No turning back! */
tracing_off();
ftrace_kill();

for_each_tracing_cpu(cpu) {
Expand Down

0 comments on commit a442e5e

Please sign in to comment.