diff options
author | Steven Rostedt <srostedt@redhat.com> | 2008-05-12 15:20:45 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 14:41:22 -0400 |
commit | 08bafa0efcf29fe18ec39c2147077b597368b018 (patch) | |
tree | 5b06957e9efd8357eca7d6d8dc57c573cf134d52 /kernel/trace/trace_selftest.c | |
parent | 4e3c3333f3bd7eedfd21b1155b3c7cd24fc7f754 (diff) |
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>
Diffstat (limited to 'kernel/trace/trace_selftest.c')
-rw-r--r-- | kernel/trace/trace_selftest.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/trace/trace_selftest.c b/kernel/trace/trace_selftest.c index 4c8a1b2d8231..a6f1ed75f836 100644 --- a/kernel/trace/trace_selftest.c +++ b/kernel/trace/trace_selftest.c | |||
@@ -67,6 +67,8 @@ trace_test_buffer_cpu(struct trace_array *tr, struct trace_array_cpu *data) | |||
67 | return 0; | 67 | return 0; |
68 | 68 | ||
69 | failed: | 69 | failed: |
70 | /* disable tracing */ | ||
71 | tracing_disabled = 1; | ||
70 | printk(KERN_CONT ".. corrupted trace buffer .. "); | 72 | printk(KERN_CONT ".. corrupted trace buffer .. "); |
71 | return -1; | 73 | return -1; |
72 | } | 74 | } |