ftrace: disable all tracers on corrupted buffer
If the trace buffer is detected to be corrupted, then we disable all tracers. Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
4e3c3333f3
commit
08bafa0efc
@ -67,6 +67,8 @@ trace_test_buffer_cpu(struct trace_array *tr, struct trace_array_cpu *data)
|
||||
return 0;
|
||||
|
||||
failed:
|
||||
/* disable tracing */
|
||||
tracing_disabled = 1;
|
||||
printk(KERN_CONT ".. corrupted trace buffer .. ");
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user