Received: by 10.223.148.5 with SMTP id 5csp5965424wrq; Wed, 17 Jan 2018 07:51:00 -0800 (PST) X-Google-Smtp-Source: ACJfBovMMkw1Y4vc7uJtdOW9H5bXeSxBq2meGCSYlMiofjJxQp3L22o7v4sEmro/s058DjH0YUiW X-Received: by 10.84.252.16 with SMTP id x16mr2666193pll.429.1516204260476; Wed, 17 Jan 2018 07:51:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516204260; cv=none; d=google.com; s=arc-20160816; b=yxXX42sQ/lI4pKarIBIUJLCUsUpYyZ5sBy4X/PfoLMhCu3vGWGZDd+9yJul1oXMoUJ X322+qiBg2M+sKlPNBYZ/undYFM6UWGPbmASXrGS6HwJlyON1ED/aRIoRm1XSJynTGnI kAoGrAxzvRHzwuSxvUJfhp2ObVEkprL+DBznOTB/VjNVOsx748Q5zGlGeojunV/03oSw RmZgNDzB+V5pOupvTSGiq+5cz3lHg+UUy74+XJOmntsa6V4fo+q1ra7Bky4Cqdse7A+e kVZ8Fk8H/fZAi17wE60+QQp4/kfie4W5Xu/cG5NcXpL0cyH97Qw0X3c9shkJyIM4C2RE Q2Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dmarc-filter:arc-authentication-results; bh=a/HKoKx3MunVkVeoi1yg3+03ZCuuoVcF7CfJ33k9y5Y=; b=UsW66BonP+CswFvVksHFz5kHrs8vEykh985B9oDeGip9kfcRJKWLtHVTvb48nfFiVc F69wkf9CuAYowOiDkfbDfA/zcDrfAZ5bARQoe1j+2SGNFukLBEf9Iy5YoK4kk5nOC5zN SZuUOHwYdiyhdTeoa7MvVN4a9Ns7ybTaEGmR281OAKmSRwHugBW4qMHpwS0itkr+ikBA Kv9fawC2PDGQqDbAI9GvmmJfqL13pQ1YNpEoRPfp5tY4Yj3nygVaAEhsnLPWsl3M7Naj 6fFiN9XMKhqMc8L+qSL8+G21zG6ZpqaGG3aozfgi+UJUEcIP+9brYXE9lhbuWUT5nAEy xAzg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si4560443pll.596.2018.01.17.07.50.45; Wed, 17 Jan 2018 07:51:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753658AbeAQPss (ORCPT + 99 others); Wed, 17 Jan 2018 10:48:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:50698 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753497AbeAQPsr (ORCPT ); Wed, 17 Jan 2018 10:48:47 -0500 Received: from gandalf.local.home (cpe-172-100-180-131.stny.res.rr.com [172.100.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8D80D20C0F; Wed, 17 Jan 2018 15:48:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8D80D20C0F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=rostedt@goodmis.org Date: Wed, 17 Jan 2018 10:48:44 -0500 From: Steven Rostedt To: Petr Mladek Cc: Dave Young , sergey.senozhatsky@gmail.com, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, kexec@lists.infradead.org, Tejun Heo Subject: Re: [PATCH] print kdump kernel loaded status in stack dump Message-ID: <20180117104844.7ae779d2@gandalf.local.home> In-Reply-To: <20180117134217.6gjr5ep3g2ns2v3w@pathway.suse.cz> References: <20180117045057.GA4994@dhcp-128-65.nay.redhat.com> <20180117085734.jx77p3brjykk3ude@pathway.suse.cz> <20180117123244.GA1503@dhcp-128-65.nay.redhat.com> <20180117134217.6gjr5ep3g2ns2v3w@pathway.suse.cz> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 17 Jan 2018 14:42:17 +0100 Petr Mladek wrote: > > kexec_crash_loaded is enough, we only care if kdump kernel being > > loaded or not, nothing else, no matter how long it has been loaded. > > In Fedora/RHEL a kdump service takes care of loading the kernel but > > it runs after networking is ready. If people want to save > > the vmcore to nfs/ssh then we need detect network and build the > > initramfs. In the nfs/ssh case if some networking code panicked it > > is possible that kdump service has not started, but sometimes bug > > can not be easily reproduced thus nobody can know if kdump is active > > or not. > > I see. > > > Since kexec_crash_loaded() is already in kexec souce code, and it > > is the only thing need to know, do you think it is really necessary > > to add a printk_kexec_info()? I can do it if you strongly suggest > > to do so. > > No, the original approach is fine if it is really that simple ;-) I have to ask. Why is dump_stack_print_info() in printk to begin with. It seems to be an odd place to put it, and not something I would think should be in the printk() subsystem anyway. Why is it not in lib/dump_stack.c? > > > > > > > Finally, the style of the other lines is: > > > > > > Name: details > > > > > > I would suggest to print something like: > > > > > > Kexec: details > > > > > > , where the details might be whether the image is loaded, > > > whether the loaded kernel is being executed, and > > > other kexec-related flags. > > > > Will do, it can be something like: > > Kexec: kdump kernel loaded > > Looks good to me. With this message, I could give this > patch even > > Reviewed-by: Petr Mladek > > I could update the string when pushing into printk.git. > I am just going to wait a bit for more feedback if any. The patch looks fine to me. Reviewed-by: Steven Rostedt (VMware) -- Steve