lkml.org 
[lkml]   [2010]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] stack2core: show stack message and convert it to core file when kernel die
Hello,

On 01/05/2010 06:04 PM, Hui Zhu wrote:
> I agree with read the current stack message is better.
>
> About the extending, I have some question with it:
> 1. markup_oops.pl have itself idea, it try use dmesg| markup_oops.pl
> show what happen to usr. This is different with s2c.
> I am not sure people like it have other function with it. Too much
> part of this file need to be change. It need rewrite, just the oops
> message parse part can be keep.

Yeah, I think you'll need to refactor it and share only the parsing
frontend. Just adding a switch (-m or whatever) which puts it into
machine-friendly translator mode should do the trick.

> 2. I use perl to work in a long time before, I know it good at parse
> the text, but I am not sure it good at handle struct like:

You don't need to handle the data structure at all. Just make it
parse the dmesg and output machine-friendly formatted output which can
be processed by s2c. ie. just make it do the reformatting.

> Even if what happen, I will keep a c s2c with myself. :)

That will be sad. I really want it too. :-)

Thanks.

--
tejun


\
 
 \ /
  Last update: 2010-01-05 10:19    [W:0.044 / U:0.608 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site