Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751859AbeAQEvF (ORCPT + 1 other); Tue, 16 Jan 2018 23:51:05 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50020 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750885AbeAQEvE (ORCPT ); Tue, 16 Jan 2018 23:51:04 -0500 Date: Wed, 17 Jan 2018 12:50:57 +0800 From: Dave Young To: pmladek@suse.com, sergey.senozhatsky@gmail.com, rostedt@goodmis.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, kexec@lists.infradead.org Subject: [PATCH] print kdump kernel loaded status in stack dump Message-ID: <20180117045057.GA4994@dhcp-128-65.nay.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.1 (2017-09-22) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Wed, 17 Jan 2018 04:51:04 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: It is useful to print kdump kernel loaded status in dump_stack() especially when panic happens so that we can differenciate kdump kernel early hang and a normal panic in a bug report. Signed-off-by: Dave Young --- kernel/printk/printk.c | 3 +++ 1 file changed, 3 insertions(+) --- linux-x86.orig/kernel/printk/printk.c +++ linux-x86/kernel/printk/printk.c @@ -48,6 +48,7 @@ #include #include #include +#include #include #include @@ -3127,6 +3128,8 @@ void dump_stack_print_info(const char *l if (dump_stack_arch_desc_str[0] != '\0') printk("%sHardware name: %s\n", log_lvl, dump_stack_arch_desc_str); + if (kexec_crash_loaded()) + printk("%skdump kernel loaded\n", log_lvl); print_worker_info(log_lvl, current); }