Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755661AbZLCDDQ (ORCPT ); Wed, 2 Dec 2009 22:03:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754688AbZLCDDP (ORCPT ); Wed, 2 Dec 2009 22:03:15 -0500 Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]:46795 "EHLO fgwmail6.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753291AbZLCDDO (ORCPT ); Wed, 2 Dec 2009 22:03:14 -0500 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.4.0 Message-ID: <4B172ACE.7080806@np.css.fujitsu.com> Date: Thu, 03 Dec 2009 12:04:46 +0900 From: Jin Dongming User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Simon Kagstrom CC: LKLM Subject: Question about kmsg_dump for OOPS Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1709 Lines: 55 Hello, Simon I am Jin Dongming. I have a question about kmsg_dump which needs your help. The question is as following: Why not put the kmsg_dump() for OOPS into oops_end() and before the branch of crash_kexec()? The reason for the question is as following: Now the kmsg_dump() for OOPS is added in oops_exit(). When OOPS happened, kernel will call oops_end(). If the crash_kexec() is executed first in oops_end(), the oops_exit() could not be called. And also the kmsg_dump() for PANIC could not be executed. So I think that the kmsg_dump() for OOPS will lose its real meaning. The function tree for OOPS is as following: oops_end() | |-- if (crash_kexec is valid) | | | |-- crash_kexec() ==> reboot (and the following function will | not be executed) | |-- oops_exit | | | |-- kmsg_dump(OOPS) | |-- if (panic is valid) | | | |-- kmsg_dump(PANIC) | The function tree for PANIC is as following: panic() | |-- kmsg_dump(PANIC) | |-- crash_kexec() | |-- notifier() When kernel paniced, kmsg_dump() for PANIC is executed before crash_kexec(). So I think before crash_kexec() is executed, kmsg_dump() for OOPS should be called too. How do you think? Best regards, Jin Dongming -- 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/