All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] panic: Don't print redundant backtraces on oops
@ 2011-12-08  0:36 Andi Kleen
  2011-12-17  0:52 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: Andi Kleen @ 2011-12-08  0:36 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andi Kleen

From: Andi Kleen <ak@linux.intel.com>

When an oops causes a panic and panic prints another backtrace it's
pretty common to have the original oops data be scrolled away on a 80x50
screen.

The second backtrace is quite redundant and not needed anyways.

So don't print the panic backtrace when oops_in_progress is true.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
 kernel/panic.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/kernel/panic.c b/kernel/panic.c
index b2659360..398412b 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -78,7 +78,8 @@ NORET_TYPE void panic(const char * fmt, ...)
 	va_end(args);
 	printk(KERN_EMERG "Kernel panic - not syncing: %s\n",buf);
 #ifdef CONFIG_DEBUG_BUGVERBOSE
-	dump_stack();
+	if (!oops_in_progress)
+		dump_stack();
 #endif
 
 	/*
-- 
1.7.4.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-12-19 18:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-08  0:36 [PATCH] panic: Don't print redundant backtraces on oops Andi Kleen
2011-12-17  0:52 ` Andrew Morton
2011-12-19 14:09   ` Michael Holzheu
2011-12-19 18:34     ` Andi Kleen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.