summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-07-24 15:30:45 -0400
committerSteven Rostedt <rostedt@goodmis.org>2009-07-24 15:30:45 -0400
commitbdff78707f3ce47e891f3201c9666122a70556ce (patch)
tree4991809b9c83889be8bb0652da802be290e40d78 /kernel
parentbd171d5ffc5cb2ba471e8205c679ee9d12b90116 (diff)
downloadlinux-bdff78707f3ce47e891f3201c9666122a70556ce.tar.bz2
trace: stop tracer in oops_enter()
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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/panic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/panic.c b/kernel/panic.c
index 984b3ecbd72c..512ab73b0ca3 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -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();