public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <ak@suse.de>
To: Jan Engelhardt <jengelh@linux01.gwdg.de>
Cc: Dave Jones <davej@redhat.com>, linux-kernel@vger.kernel.org
Subject: Re: Console debugging wishlist was: Re: oops pauser.
Date: Tue, 10 Jan 2006 22:18:30 +0100	[thread overview]
Message-ID: <200601102218.30998.ak@suse.de> (raw)
In-Reply-To: <Pine.LNX.4.61.0601102200410.1000@yvahk01.tjqt.qr>

On Tuesday 10 January 2006 22:06, Jan Engelhardt wrote:

> If you now had a kernel-level pager that would jump in everytime an oops
> happened, control would normally not be given back to userspace unless we quit
> the pager. kdb has a similar behavior: it "stops" userspace until someone
> chooses to "c"ontinue.
> Therefore this pager would not be too good. In a panic, yes, it would be 
> perfect.

First for an recoverable oops there is no reason you couldn't use
schedule_timeout(). And for those you don't need it anyways
because you can as well use dmesg. For others you can use poll loops.

But it wasn't actually my point. If you get 
an problem during bootup - not necessarily an oops, but could
be also a no root panic or your SCSI controller not working or 
something else - and you can reproduce it it's a PITA to examine
the kernel output before because there is no way to get
enough scrollback.  For the oops itself it's not needed - it typically
fits on the screen. But if it happens every boot it would be nice
if you could just boot with "more" and then page through
the kernel output and check what's going on.

The feature would be mainly useful for problems during kernel bootup,
although it might be sometimes useful too e.g. when user space
hangs, but you want to page through the hotkey process dump
which might be longer than console scrollback.

Just more scrollback does not necessarily replace this because
sometimes youe end up with so much output so quickly (e.g. some errors
are very verbose) that any scrollback buffer would be overflown.

Now the only issue would be to work out when to use schedule_timeout
and when to use a delay, but that can be all distingushed with some code.

Anyways mind you - i suspect actually implementing this would be somewhat
ugly, so the chances of it actually getting in would be likely slim.
Still it would be often useful.

-Andi


  reply	other threads:[~2006-01-10 21:18 UTC|newest]

Thread overview: 75+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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
     [not found] <5rvok-5Sr-1@gated-at.bofh.it>
     [not found] ` <5tagc-6AZ-25@gated-at.bofh.it>
2006-01-15 16:48   ` Bodo Eggert
2006-01-15 17:13     ` Andi Kleen
2006-01-15 20:51       ` Jan Engelhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200601102218.30998.ak@suse.de \
    --to=ak@suse.de \
    --cc=davej@redhat.com \
    --cc=jengelh@linux01.gwdg.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox