summaryrefslogtreecommitdiffstats
path: root/kernel/panic.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-07-24 21:30:45 +0200
committerSteven Rostedt <rostedt@goodmis.org>2009-07-24 21:30:45 +0200
commitbdff78707f3ce47e891f3201c9666122a70556ce (patch)
tree4991809b9c83889be8bb0652da802be290e40d78 /kernel/panic.c
parentftrace: Only update $offset when we update $ref_func (diff)
downloadlinux-bdff78707f3ce47e891f3201c9666122a70556ce.tar.xz
linux-bdff78707f3ce47e891f3201c9666122a70556ce.zip
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/panic.c')
-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();