linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* oops pauser.
@ 2006-01-05  4:52 Dave Jones
  2006-01-05  6:10 ` oops pauser. / boot_delayer Randy.Dunlap
                   ` (5 more replies)
  0 siblings, 6 replies; 72+ messages in thread
From: Dave Jones @ 2006-01-05  4:52 UTC (permalink / raw)
  To: linux-kernel

In my quest to get better debug data from users in Fedora bug reports,
I came up with this patch.  A majority of users don't have serial
consoles, so when an oops scrolls off the top of the screen,
and locks up, they usually end up reporting a 2nd (or later) oops
that isn't particularly helpful (or worse, some inconsequential
info like 'sleeping whilst atomic' warnings)

With this patch, if we oops, there's a pause for a two minutes..
which hopefully gives people enough time to grab a digital camera
to take a screenshot of the oops.

It has an on-screen timer so the user knows what's going on,
(and that it's going to come back to life [maybe] after the oops).

The one case this doesn't catch is the problem of oopses whilst
in X. Previously a non-fatal oops would stall X momentarily,
and then things continue. Now those cases will lock up completely
for two minutes. Future patches could add some additional feedback
during this 'stall' such as the blinky keyboard leds, or periodic speaker beeps.

Signed-off-by: Dave Jones <davej@redhat.com>

--- vanilla/arch/i386/kernel/traps.c	2006-01-02 22:21:10.000000000 -0500
+++ linux-2.6.15/arch/i386/kernel/traps.c	2006-01-04 23:42:46.000000000 -0500
@@ -256,6 +271,15 @@ void show_registers(struct pt_regs *regs
 		}
 	}
 	printk("\n");
+	{
+		int i;
+		for (i=120;i>0;i--) {
+			mdelay(1000);
+			touch_nmi_watchdog();
+			printk("Continuing in %d seconds. \r", i);
+		}
+		printk("\n");
+	}
 }	
 
 static void handle_BUG(struct pt_regs *regs)

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

end of thread, other threads:[~2006-01-11 18:34 UTC | newest]

Thread overview: 72+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-05  4:52 oops pauser Dave Jones
2006-01-05  6:10 ` oops pauser. / boot_delayer Randy.Dunlap
2006-01-05  7:30   ` Bernd Eckenfels
2006-01-05  8:07     ` Jan Engelhardt
2006-01-06  1:28       ` David Lang
2006-01-06  5:36         ` Dave Jones
2006-01-06  7:00           ` David Lang
2006-01-08 13:21           ` Pavel Machek
2006-01-08 19:30             ` Josef Sipek
2006-01-08 23:08               ` Pavel Machek
2006-01-08 23:39                 ` Josef Sipek
2006-01-06  7:36         ` Jan Engelhardt
2006-01-06  8:33           ` David Lang
2006-01-05  9:25     ` Grant Coady
2006-01-05 15:31       ` Mark Lord
2006-01-05 15:38         ` Avishay Traeger
2006-01-05 19:15           ` Mark Lord
2006-01-05 11:11     ` Dave Jones
2006-01-07 21:44       ` Kurtis D. Rader
2006-01-07 21:48         ` Arjan van de Ven
2006-01-07 22:00           ` Kurtis D. Rader
2006-01-08 23:29           ` David Lang
2006-01-07 22:27         ` Bernd Eckenfels
2006-01-05  8:15 ` oops pauser Jan Engelhardt
2006-01-05 10:33   ` Dave Jones
2006-01-05 11:05     ` Jan Engelhardt
2006-01-05 12:05       ` Keith Owens
2006-01-05 15:17       ` Jesper Juhl
2006-01-05 13:46     ` Kurt Wall
2006-01-06  1:24     ` David Lang
2006-01-06  1:41       ` Josef Sipek
2006-01-08 13:38     ` Ville Herva
2006-01-08 13:53       ` Randy.Dunlap
2006-01-08 19:35         ` Jan Engelhardt
2006-01-09  1:43           ` Randy.Dunlap
2006-01-08 19:40         ` Grant Coady
2006-01-09  1:45           ` Randy.Dunlap
2006-01-09 16:15             ` Jan Engelhardt
2006-01-09 16:25               ` Ville Herva
2006-01-09 16:39               ` Randy.Dunlap
2006-01-05 13:37 ` Alan Cox
2006-01-05 20:52   ` Dave Jones
2006-01-06 13:31     ` Alan Cox
2006-01-06 20:33       ` Dave Jones
2006-01-06 15:22     ` Pavel Machek
2006-01-06 19:06       ` Jan Engelhardt
2006-01-06 22:34         ` Pavel Machek
2006-01-06 22:48       ` Dave Jones
2006-01-05 13:58 ` Avishay Traeger
2006-01-05 20:54   ` Dave Jones
2006-01-06  0:19   ` Josef Sipek
2006-01-06  1:12     ` Bernd Eckenfels
2006-01-06  1:35       ` Josef Sipek
2006-01-06  2:21         ` Bernd Eckenfels
2006-01-05 14:39 ` Kyle McMartin
2006-01-09 18:43 ` Console debugging wishlist was: " Andi Kleen
2006-01-10 20:25   ` Jan Engelhardt
2006-01-10 20:29     ` Josef Sipek
2006-01-10 20:44       ` Jan Engelhardt
2006-01-10 22:54         ` Josef Sipek
2006-01-10 20:46       ` Andi Kleen
2006-01-10 20:45     ` Andi Kleen
2006-01-10 21:06       ` Jan Engelhardt
2006-01-10 21:18         ` Andi Kleen
2006-01-10 21:30           ` Jan Engelhardt
2006-01-11 12:24     ` Antonino A. Daplas
2006-01-11 12:31       ` Andi Kleen
2006-01-11 13:05         ` Antonino A. Daplas
2006-01-11 13:17           ` Andi Kleen
2006-01-11 13:43             ` Antonino A. Daplas
2006-01-11 13:51               ` Andi Kleen
2006-01-11 18:34           ` Jan Engelhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).