[Top] [All Lists]

Re: [PATCH] stack2core: show stack message and convert it to core

To: Tejun Heo <>
Subject: Re: [PATCH] stack2core: show stack message and convert it to core file when kernel die
From: Hui Zhu <>
Date: Tue, 5 Jan 2010 17:04:07 +0800
Cc: Arjan van de Ven <>, Russell King <>, saeed bishara <>, Catalin Marinas <>, Nicolas Pitre <>, Ralf Baechle <>, David Daney <>, Tomaso Paoletti <>, Chris Dearman <>, Paul Gortmaker <>, Thomas Gleixner <>, Ingo Molnar <>, "H. Peter Anvin" <>,, Frederic Weisbecker <>, Alexey Dobriyan <>, Brian Gerst <>, Rusty Russell <>, Andrew Morton <>, Steven Rostedt <>, Greg Kroah-Hartman <>, "Paul E. McKenney" <>,,,, Coly Li <>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=tccDM0Qe8mSQVdIqClWAw/kADLps4idUuTg9kIjhSZk=; b=E4FESs50oIyxVhRLVJ+XKFj6Xb81nBHHLdedL1K5nv/6IKTzDlKxb1rsEgN0lAbRgC 9GDFw57g+kYl/xUYaiXmbDuLC09kKUkLxhcKOtfdxxnKNwMbFhMX0btN6Qr9bFMy/YAH PJ8RxolD+bmoHEcOoAE2o63AHJU1qfMgGxR/Q=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=nws820z5bCvmcMS/BKOusJn404uNnkqjruDBiOMv7bNGtDuSxrJBxgIzHdz9OHIBN9 3R3nqYATKWtHf/ebOWRbv8hEU8ClRtFtDwy3sxuojqFxsjy2WV3QkDvfytOSSc7UReXq CYsh5veyQUbT9r1Fh1AxdprNbvxewoPwJIewA=
In-reply-to: <>
References: <> <> <> <> <> <> <>

I agree with read the current stack message is better.

About the extending, I have some question with it:
1. have itself idea, it try use dmesg|
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.

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:
struct mips64_elf_prstatus
        struct s2c_elf_siginfo  pr_info;
        uint16_t                pr_cursig;
        uint64_t                pr_sigpend;
        uint64_t                pr_sighold;
        uint32_t                pr_pid;
        uint32_t                pr_ppid;
        uint32_t                pr_pgrp;
        uint32_t                pr_sid;
        struct s2c_timeval_64   pr_utime;
        struct s2c_timeval_64   pr_stime;
        struct s2c_timeval_64   pr_cutime;
        struct s2c_timeval_64   pr_cstime;

        uint64_t                pr_reg[45];

        uint32_t                pr_fpvalid;
} __attribute__ ((aligned(8)));
Even if what happen, I will keep a c s2c with myself.  :)

Best regards,

On Tue, Jan 5, 2010 at 07:03, Tejun Heo <> wrote:
> Hello,
> On 01/05/2010 01:22 AM, Hui Zhu wrote:
>> For the s2c, user just "s2c < message >core" It did everything with itself.
>> After that, gdb vmlinux core.
> It is true that by making the kernel oops message more verbose, s2c
> can be made way simpler.  However, dependence on standard object tools
> or perl is already assumed and avoiding it doesn't really buy
> anything.  I really like the idea but unfortunately I'm doubtful that
> it will be able to go upstream in the current form.  The suggested
> solution (extending won't be too much work, most of
> functionality will remain the same and will have much higher chance of
> getting included.
> Thanks.
> --
> tejun

<Prev in Thread] Current Thread [Next in Thread>