Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752973Ab0ACQzb (ORCPT ); Sun, 3 Jan 2010 11:55:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752980Ab0ACQz3 (ORCPT ); Sun, 3 Jan 2010 11:55:29 -0500 Received: from mail-px0-f174.google.com ([209.85.216.174]:37162 "EHLO mail-px0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752833Ab0ACQz0 convert rfc822-to-8bit (ORCPT ); Sun, 3 Jan 2010 11:55:26 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=FGbIcsm5SNJg7QCD5uMt9mI22gWxdrgvX1jH34RlT54AQwEDEMl6dEegA9QMq4sVB1 mnY4ZQEoPPen1p3eqian+YcozkFSrvHGZ1jhDV9E2PA0FZ/LmLhSyAC1WgyvqzvSfvys hqSg557dlMDXiUAbfzNbAXoCEmTQzafbDinFs= MIME-Version: 1.0 In-Reply-To: <20100103164414.GB21156@n2100.arm.linux.org.uk> References: <20100103160313.GA21156@n2100.arm.linux.org.uk> <20100103164414.GB21156@n2100.arm.linux.org.uk> From: Hui Zhu Date: Mon, 4 Jan 2010 00:55:04 +0800 Message-ID: Subject: Re: [PATCH] stack2core: show stack message and convert it to core file when kernel die To: Russell King - ARM Linux Cc: saeed bishara , Catalin Marinas , Nicolas Pitre , Ralf Baechle , David Daney , Tomaso Paoletti , Chris Dearman , Paul Gortmaker , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Frederic Weisbecker , Alexey Dobriyan , Brian Gerst , Tejun Heo , Rusty Russell , Andrew Morton , Steven Rostedt , Greg Kroah-Hartman , "Paul E. McKenney" , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, Coly Li Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2380 Lines: 55 I didn't give the user raw oopses. I give him core file. When the kernel die, do we can get a core file now? (gdb) bt #0 0xc0008470 in kernel_init (unused=) at /home/teawater/kernel/arm_versatile_926ejs.glibc_std.standard/build/linux/init/main.c:916 #1 0xc0042660 in sys_waitid (which=, upid=, infop=0x0, options=0, ru=0x14) at /home/teawater/kernel/arm_versatile_926ejs.glibc_std.standard/build/linux/kernel/exit.c:1798 Backtrace stopped: previous frame inner to this frame (corrupt stack?) It show which line make kernel die. Hui On Mon, Jan 4, 2010 at 00:44, Russell King - ARM Linux wrote: > On Mon, Jan 04, 2010 at 12:30:20AM +0800, Hui Zhu wrote: >> This S2C: message just for program s2c. >> s2c can convert it to a core file. ?Then gdb can do a clear analyse >> with this file. >> Then you can get more message than current we can get. > > I understand that. ?What I'm saying is that all the additional noise > you're causing the kernel to create is just a pure duplication of > what we already dump. > > Oops dumps are already noisy enough - especially if they cause a panic > at the end (where you end up with two backtraces.) ?We do not need even > more noise caused by needless duplication. > > You can get everything you need already from the kernel. ?On ARM, we > already dump out all the registers and the _full_ stack. ?There is no > need for you to implement your own register dumping code and full stack > dump on top of that again. > > So, I'm not going to accept your patch for the ARM kernel. ?Please use > what's already provided - it's more than adequate. ?By doing so, you > don't penalise those of us who want to read the raw oopses. > > Talking about noisy oopses, I'm getting one with 2.6.33-rc2 on 'poweroff' > shutdown. ?No idea what it is because most of it's scrolled off the top of > the screen and I can't scroll back. ?Not bothered about it at the moment. > What it does illustrate though is why making things too noisy when problems > occur makes it _more_ difficult to find out what went wrong. > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/