public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: "tina.yang" <tina.yang@oracle.com>
Cc: jkosina@suse.cz, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] sysrq: add debug message to reboot event
Date: Thu, 20 Aug 2009 15:10:24 -0700	[thread overview]
Message-ID: <20090820151024.a60567c7.akpm@linux-foundation.org> (raw)
In-Reply-To: <4A8CB358.4090001@oracle.com>

On Wed, 19 Aug 2009 19:22:16 -0700
"tina.yang" <tina.yang@oracle.com> wrote:

> Add debug message to detect keyboard vs non-keyboard triggered sysrq-b events.
> This is to assist postmortem debugging on complicated computing setup with
> large number of applications involved where reboot event had occurred, but 
> unclear of its origin.

I'm still struggling to understand the motivation for the change. 
There are a large number of ways in which a machine can be rebooted,
all the way down to a triple-fault.  So it seems fairly arbitrary to
add additional information to discriminate between just two of those
ways.

I assume that somewhere in your setup you have a script which does
`echo b /proc/sysrq-trigger' and it took ages to work out that this was
happening and you felt that having this code in place would have
helped you debug that problem, yes?

If so, I wonder what is the likelihood that someone else will have the
same problem and will find this change useful.

Perhaps we should do this for all sysrq events rather than just sysrq-b?


> --- linux-2.6.18.i686/drivers/char/sysrq.c.orig	2009-08-13 10:55:57.526459000 -0700
> +++ linux-2.6.18.i686/drivers/char/sysrq.c	2009-08-13 10:58:10.798739000 -0700

2.6.18 is truly ancient and this patch doesn't apply at all to
current development kernels.


  reply	other threads:[~2009-08-20 22:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-17 19:16 [PATCH] sysrq: add debug message to reboot event tina.yang
2009-08-18 11:40 ` Jiri Kosina
2009-08-19 20:58   ` Andrew Morton
2009-08-20  2:22     ` tina.yang
2009-08-20 22:10       ` Andrew Morton [this message]
2009-08-21  5:14         ` tina.yang

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=20090820151024.a60567c7.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=jkosina@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tina.yang@oracle.com \
    /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