mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 06:10:56 +00:00
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>
This commit is contained in:
parent
faf6861ebd
commit
a442e5e0a2
1 changed files with 1 additions and 0 deletions
|
@ -3770,6 +3770,7 @@ void ftrace_dump(void)
|
||||||
dump_ran = 1;
|
dump_ran = 1;
|
||||||
|
|
||||||
/* No turning back! */
|
/* No turning back! */
|
||||||
|
tracing_off();
|
||||||
ftrace_kill();
|
ftrace_kill();
|
||||||
|
|
||||||
for_each_tracing_cpu(cpu) {
|
for_each_tracing_cpu(cpu) {
|
||||||
|
|
Loading…
Reference in a new issue