From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753664Ab3FJNxc (ORCPT ); Mon, 10 Jun 2013 09:53:32 -0400 Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:42491 "EHLO e06smtp13.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753552Ab3FJNxb (ORCPT ); Mon, 10 Jun 2013 09:53:31 -0400 Date: Mon, 10 Jun 2013 15:53:25 +0200 From: Michael Holzheu To: HATAYAMA Daisuke Cc: Vivek Goyal , Jan Willeke , Martin Schwidefsky , Heiko Carstens , linux-kernel@vger.kernel.org, kexec@lists.infradead.org Subject: Re: [PATCH v5 1/5] vmcore: Introduce ELF header in new memory feature Message-ID: <20130610155325.5e75f243@holzheu> In-Reply-To: References: <1370624161-2298-1-git-send-email-holzheu@linux.vnet.ibm.com> <1370624161-2298-2-git-send-email-holzheu@linux.vnet.ibm.com> Organization: IBM X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13061013-2966-0000-0000-000007D6A0D3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 10 Jun 2013 22:35:30 +0900 HATAYAMA Daisuke wrote: > 2013/6/8 Michael Holzheu : > > > @@ -935,10 +967,17 @@ static int __init vmcore_init(void) > > { > > int rc = 0; > > > > - /* If elfcorehdr= has been passed in cmdline, then capture the dump.*/ > > - if (!(is_vmcore_usable())) > > - return rc; > > + /* > > + * If elfcorehdr= has not been passed in cmdline, try to get the > > + * header from 2nd kernel, then capture the dump. > > + */ > > + if (!(is_vmcore_usable())) { > > + rc = elfcorehdr_alloc(); > > + if (rc) > > + return rc; > > + } > > Here you removed comment in the 1st path. Please keep it. Perhaps something like the following: /* * If elfcorehdr= has been passed in cmdline, then capture the dump. * Otherwise, try to get the header from the 2nd kernel. */ Michael From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from e06smtp18.uk.ibm.com ([195.75.94.114]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Um2Xh-00039C-NU for kexec@lists.infradead.org; Mon, 10 Jun 2013 13:53:54 +0000 Received: from /spool/local by e06smtp18.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 10 Jun 2013 14:48:30 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 4886017D8059 for ; Mon, 10 Jun 2013 14:54:48 +0100 (BST) Received: from d06av08.portsmouth.uk.ibm.com (d06av08.portsmouth.uk.ibm.com [9.149.37.249]) by b06cxnps3075.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r5ADrH2k53477492 for ; Mon, 10 Jun 2013 13:53:17 GMT Received: from d06av08.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av08.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id r5ADrRRb006219 for ; Mon, 10 Jun 2013 07:53:27 -0600 Date: Mon, 10 Jun 2013 15:53:25 +0200 From: Michael Holzheu Subject: Re: [PATCH v5 1/5] vmcore: Introduce ELF header in new memory feature Message-ID: <20130610155325.5e75f243@holzheu> In-Reply-To: References: <1370624161-2298-1-git-send-email-holzheu@linux.vnet.ibm.com> <1370624161-2298-2-git-send-email-holzheu@linux.vnet.ibm.com> Mime-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=twosheds.infradead.org@lists.infradead.org To: HATAYAMA Daisuke Cc: Heiko Carstens , kexec@lists.infradead.org, Jan Willeke , linux-kernel@vger.kernel.org, Martin Schwidefsky , Vivek Goyal On Mon, 10 Jun 2013 22:35:30 +0900 HATAYAMA Daisuke wrote: > 2013/6/8 Michael Holzheu : > > > @@ -935,10 +967,17 @@ static int __init vmcore_init(void) > > { > > int rc = 0; > > > > - /* If elfcorehdr= has been passed in cmdline, then capture the dump.*/ > > - if (!(is_vmcore_usable())) > > - return rc; > > + /* > > + * If elfcorehdr= has not been passed in cmdline, try to get the > > + * header from 2nd kernel, then capture the dump. > > + */ > > + if (!(is_vmcore_usable())) { > > + rc = elfcorehdr_alloc(); > > + if (rc) > > + return rc; > > + } > > Here you removed comment in the 1st path. Please keep it. Perhaps something like the following: /* * If elfcorehdr= has been passed in cmdline, then capture the dump. * Otherwise, try to get the header from the 2nd kernel. */ Michael _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec