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
1 changed files with 2 additions and 0 deletions
|
@ -67,6 +67,8 @@ trace_test_buffer_cpu(struct trace_array *tr, struct trace_array_cpu *data)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
failed:
|
failed:
|
||||||
|
/* disable tracing */
|
||||||
|
tracing_disabled = 1;
|
||||||
printk(KERN_CONT ".. corrupted trace buffer .. ");
|
printk(KERN_CONT ".. corrupted trace buffer .. ");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue