From: David VomLehn <dvomlehn@cisco.com>
To: Grant Likely <grant.likely@secretlab.ca>
Cc: Daniel Walker <dwalker@mvista.com>, linux-embedded@vger.kernel.org
Subject: Re: [PATCH] [RFC] emit-crash-char: Allow diversion of printk output for crash logging
Date: Wed, 13 Aug 2008 10:56:56 -0700 [thread overview]
Message-ID: <48A32068.3010000@cisco.com> (raw)
In-Reply-To: <20080813021212.GA17587@secretlab.ca>
Grant Likely wrote:
> On Tue, Aug 12, 2008 at 06:30:54PM -0700, David VomLehn wrote:
>>
>> Regardless of implementation, it seems to me that it could be of use for
>> some other embedded platforms. Any suggestions as to where it should go
>> in the tree? drivers/char? drivers/misc?
>
> Depends on what you're storing to. Can you send more details about the
> specific use case that you will use this interface for?
The system I'm working on is a settop box. It is in an environment where it is
connected to a central server. The settop box doesn't have enough space to hold
core dumps and the upstream connection to the server has too little bandwidth to
upload them if we did store them. We have found that we can usually diagnose and
fix problems with much less information than a core dump however, so we want to
be able to capture that information and send it upstream.
Our use case is:
1. We register a panic handler
2. The kernel panics and calls our panic handler
3. We register a function to log printk output
4. We print registers, stack, memory, and various other pieces of
information using standard kernel functions, which all use printk
5. As printk output is generated, we store it in memory
6. We unregister the printk logging function
7. The panic handler exits
8. The kernel does the rest of its usual panic handling
I'm not proposing storing the data in a specific place; that will be up to the
platform. We will be storing in a piece of memory set aside for this purpose, but
storing it in NOR flash makes a lot of sense, too, or using NAND flash or
possibly even disk. All I'm proposing is a small framework that will allow
plugging in a logging function when needed and removing it when done. I'll do the
common piece that looks like a fake console and we, and other people, can use the
simpler interface it provides.
> g.
--
David VomLehn
next prev parent reply other threads:[~2008-08-13 17:56 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-08 2:20 [PATCH] [RFC] emit-crash-char: Allow diversion of printk output for crash logging David VomLehn
2008-08-08 15:55 ` Daniel Walker
2008-08-08 16:05 ` Mike Frysinger
2008-08-08 16:17 ` Daniel Walker
2008-08-08 18:09 ` Mike Frysinger
2008-08-08 20:10 ` Daniel Walker
2008-08-08 20:13 ` Mike Frysinger
2008-08-08 20:47 ` Daniel Walker
2008-08-08 21:24 ` [PATCH] [RFC] emit-crash-char: Allow diversion of printkoutput " Haller, John H (John)
2008-08-08 22:01 ` Daniel Walker
2008-08-11 23:34 ` [PATCH] [RFC] emit-crash-char: Allow diversion of printk output " David VomLehn
2008-08-12 22:39 ` Grant Likely
2008-08-13 1:30 ` David VomLehn
2008-08-13 2:12 ` Grant Likely
2008-08-13 17:56 ` David VomLehn [this message]
2008-08-13 19:02 ` Tim Bird
2008-08-13 20:27 ` David VomLehn
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=48A32068.3010000@cisco.com \
--to=dvomlehn@cisco.com \
--cc=dwalker@mvista.com \
--cc=grant.likely@secretlab.ca \
--cc=linux-embedded@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;
as well as URLs for NNTP newsgroup(s).