linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
  • [parent not found: <5tagc-6AZ-25@gated-at.bofh.it>]
  • * oops pauser.
    @ 2006-01-05  4:52 Dave Jones
      2006-01-05  8:15 ` Jan Engelhardt
                       ` (3 more replies)
      0 siblings, 4 replies; 40+ 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] 40+ messages in thread

    end of thread, other threads:[~2006-01-15 20:51 UTC | newest]
    
    Thread overview: 40+ messages (download: mbox.gz / follow: Atom feed)
    -- links below jump to the message on this page --
         [not found] <5rvok-5Sr-1@gated-at.bofh.it>
         [not found] ` <5ryvR-2aN-5@gated-at.bofh.it>
         [not found]   ` <5rAHn-5kc-9@gated-at.bofh.it>
    2006-01-06  5:52     ` oops pauser Robert Hancock
    2006-01-06  7:06       ` Jan Engelhardt
    2006-01-06  7:47         ` Randy.Dunlap
    2006-01-06  8:58         ` Dave Jones
         [not found] ` <5tagc-6AZ-25@gated-at.bofh.it>
    2006-01-15 16:48   ` Console debugging wishlist was: " Bodo Eggert
    2006-01-15 17:13     ` Andi Kleen
    2006-01-15 20:51       ` Jan Engelhardt
    2006-01-05  4:52 Dave Jones
    2006-01-05  8:15 ` 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
    

    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).