linux-embedded.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Robin Getz <rgetz@blackfin.uclinux.org>
To: Mike Frysinger <vapier@gentoo.org>,
	Greg Ungerer <gerg@snapgear.com>,
	Russell King <rmk@arm.linux.org.uk>,
	Paul Mundt <lethal@linux-sh.org>, Tim Bird <tim.bird@am.sony.com>,
	Wolfgan
Cc: linux-embedded <linux-embedded@vger.kernel.org>
Subject: Kernel crashing and log buffers...
Date: Wed, 10 Jun 2009 21:26:40 -0400	[thread overview]
Message-ID: <200906102126.40410.rgetz@blackfin.uclinux.org> (raw)

On 17 Oct 2007, after much discussion and debate, Mike added add two new 
functions for reading the kernel log buffer (from kernel space).

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0b15d04af3dd996035d8fa81fc849d049171f9c3

The intention was for them to be used by recovery/dump/debug code so the 
kernel log can be easily retrieved/parsed by the bootloader (or another 
kernel) in a crash scenario.

I was going to push the arch specific recovery/dump/debug code that uses them 
upstream (yeah, it has been a little while - but anyway...) it was removed 
since then by Roel Kluin ...

21 Oct 2008:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=acff181d3574244e651913df77332e897b88bff4

Before I ask Andrew to add it back, I thought I would make sure it was still a 
useful function, and did everything everyone wanted - and wasn't deemed 
unnecessary by a feature/function that I wasn't aware of - like the next 
thing...

I saw the patch Grant sent recently - Add Alternative Log Buffer Support for 
printk Messages (in Nov2008 to the embedded list, and Jan 2009 to lkml) - but 
I couldn't find any followups - and it doesn't seem to be in Linus's tree.

http://thread.gmane.org/gmane.linux.kernel.embedded/1358/focus=1373

http://lkml.org/lkml/2009/1/21/250

I can see the desire on Wolfgang & Grant's part - for not needing the copy 
from/to - (you never have to worry about crashing "nicely" - the kernel 
panics, but you still need to copy memory around - potentially causing all 
kinds of secondary issues - and masking the real reason the crash occurred).

But for the majority of the case - the copy from/to would work much better 
than what we have in mainstream today...


I would be interested in Paul and Russell - how have you solved this issue? 
(Or do your kernel's never crash? :)

Thanks
-Robin

             reply	other threads:[~2009-06-11  1:26 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-11  1:26 Robin Getz [this message]
2009-06-11 17:53 ` Kernel crashing and log buffers David VomLehn
2009-06-11 18:22   ` Tim Bird
2009-06-11 22:46     ` David VomLehn
2009-06-11 18:52   ` Robin Getz
2009-06-11 19:35     ` David VomLehn
2009-06-11 22:57     ` Grant Erickson
2009-06-12  0:33       ` David VomLehn
2009-06-12  5:33         ` Wolfgang Denk
2009-06-11 23:27   ` Mike Frysinger
2009-06-12  1:07     ` David VomLehn
2009-06-12  4:54       ` Robin Getz
2009-06-13 16:49         ` Jamie Lokier
2009-06-26 14:39   ` Robin Getz
2009-06-26 17:42     ` David VomLehn
2009-06-26 17:50       ` Mike Frysinger
2009-06-26 17:59       ` Robin Getz
2009-06-13 10:26 ` Russell King
2009-06-13 18:59   ` Wolfgang Denk
2009-06-14 18:33     ` Robin Getz

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=200906102126.40410.rgetz@blackfin.uclinux.org \
    --to=rgetz@blackfin.uclinux.org \
    --cc=gerg@snapgear.com \
    --cc=lethal@linux-sh.org \
    --cc=linux-embedded@vger.kernel.org \
    --cc=rmk@arm.linux.org.uk \
    --cc=tim.bird@am.sony.com \
    --cc=vapier@gentoo.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;
as well as URLs for NNTP newsgroup(s).