public inbox for linux-kernel@vger.kernel.org
 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-09 18:43 ` Console debugging wishlist was: " Andi Kleen
      0 siblings, 1 reply; 24+ 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] 24+ messages in thread

    end of thread, other threads:[~2006-01-15 20:51 UTC | newest]
    
    Thread overview: 24+ 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-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