trace: stop tracer in oops_enter()
authorThomas Gleixner <tglx@linutronix.de>
Fri, 24 Jul 2009 19:30:45 +0000 (15:30 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 24 Jul 2009 19:30:45 +0000 (15:30 -0400)
If trace_printk_on_oops is set we lose interesting trace information
when the tracer is enabled across oops handling and printing. We want
the trace which might give us information _WHY_ we oopsed.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/panic.c

index 984b3ecbd72c5ca791e501e18d09c47862b677ad..512ab73b0ca3afed1553b5e01218c92d17630a4c 100644 (file)
@@ -301,6 +301,7 @@ int oops_may_print(void)
  */
 void oops_enter(void)
 {
+       tracing_off();
        /* can't trust the integrity of the kernel anymore: */
        debug_locks_off();
        do_oops_enter_exit();