From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E4C21C4740C for ; Mon, 9 Sep 2019 14:45:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BB83E218DE for ; Mon, 9 Sep 2019 14:45:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iufWKR22" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387895AbfIIOpf (ORCPT ); Mon, 9 Sep 2019 10:45:35 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:40724 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731616AbfIIOpd (ORCPT ); Mon, 9 Sep 2019 10:45:33 -0400 Received: by mail-pf1-f195.google.com with SMTP id x127so9294597pfb.7 for ; Mon, 09 Sep 2019 07:45:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=d/AHpfqgPLf1YWnb3Rp5h86h74k5SWCtkf5nB4QsU3Q=; b=iufWKR229Hzm88JpESrYX4RsFK0r37TnhSG5ohwaKihhdLT8PybGVunpwwy4n7p3c2 Xbejxh0NQQmIieY9g1AmQ4WwB7igBDTy2LnmYxdZJfrLMYBqWTY+WfFmNODnc/pNXOg+ NZJoOJ1RWn2Jtxns139ZQHMjJ+X57p0OQ5jvXjDEoaKW/x4mnQHiX9r1XG5H+5s/gxG4 x3yJHWkzaNxKxXqaGPiYHMSVom9jdksfgqpjj6gNcvPo0A0VohTz4UaFRWXCc8dUCryj hgCmoc1nryh+L+Eb15Y8bEIvN4A7Gnh4FxG9RNBWFE0nSxk1E983xoP4g6t7IoROtMYQ zRSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=d/AHpfqgPLf1YWnb3Rp5h86h74k5SWCtkf5nB4QsU3Q=; b=DksICtdStiR/WgiW+3cTwWBxd4U9xmeJxMx4kJuukojzzwjGMIlGmor/IbzbcXH5Za FWh/Pg3sdfNEtce4utms1DwpfSCLYvMHVNtCwFlXVQtyjV7lpoSjK5GUXJ6318FpWYXb Xdms68J25lpJ+CBNX79mH5MtQfEow+AJmORTVUzeqTVFZedF/OXUQ8QNWZJUAPsZzM3P gVO2KgqHwBCUy6HIu8oEiSsgSh1RIblha2zACmq6Tt7SgHjSx9Bzq8iphmTIwQC1iaKq 3Kea8N9ARnCaoZ4DGzArv49jdutdd3VDvZ71PJ/F6m4EKsA5emUECpDPPutmnxO/vtDI mQrQ== X-Gm-Message-State: APjAAAXQ1iMF3NlZUOwJ95uvcaFgf+Qm9jvVAhMu3MKBgBKiU8TlyQur 1S/TT7fBC26KIlIvOHuJirc= X-Google-Smtp-Source: APXvYqzwTtJtpASHZzLOIuwyeUyJnXRaPQIw4eQZqkGsL9EG/4/O5b0Mi/hHE01EbM0wA9NZQAX7vA== X-Received: by 2002:a62:ed04:: with SMTP id u4mr27745290pfh.220.1568040333159; Mon, 09 Sep 2019 07:45:33 -0700 (PDT) Received: from localhost.localdomain ([149.28.153.17]) by smtp.gmail.com with ESMTPSA id t9sm15334693pgj.89.2019.09.09.07.45.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2019 07:45:32 -0700 (PDT) From: Changbin Du To: Andrew Morton , Randy Dunlap Cc: Thomas Gleixner , linux-kernel@vger.kernel.org, Changbin Du Subject: [PATCH v3 5/9] hacking: Move Oops into 'Lockups and Hangs' Date: Mon, 9 Sep 2019 22:44:49 +0800 Message-Id: <20190909144453.3520-6-changbin.du@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190909144453.3520-1-changbin.du@gmail.com> References: <20190909144453.3520-1-changbin.du@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org They are similar options so place them together. Signed-off-by: Changbin Du --- lib/Kconfig.debug | 58 +++++++++++++++++++++++------------------------ 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 7b3552531d02..1385e17122a1 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -793,7 +793,35 @@ config DEBUG_SHIRQ Drivers ought to be able to handle interrupts coming in at those points; some don't and need to be caught. -menu "Debug Lockups and Hangs" +menu "Debug Oops, Lockups and Hangs" + +config PANIC_ON_OOPS + bool "Panic on Oops" + help + Say Y here to enable the kernel to panic when it oopses. This + has the same effect as setting oops=panic on the kernel command + line. + + This feature is useful to ensure that the kernel does not do + anything erroneous after an oops which could result in data + corruption or other issues. + + Say N if unsure. + +config PANIC_ON_OOPS_VALUE + int + range 0 1 + default 0 if !PANIC_ON_OOPS + default 1 if PANIC_ON_OOPS + +config PANIC_TIMEOUT + int "panic timeout" + default 0 + help + Set the timeout value (in seconds) until a reboot occurs when the + the kernel panics. If n = 0, then we wait forever. A timeout + value n > 0 will wait n seconds before rebooting, while a timeout + value n < 0 will reboot immediately. config LOCKUP_DETECTOR bool @@ -951,34 +979,6 @@ config WQ_WATCHDOG endmenu # "Debug lockups and hangs" -config PANIC_ON_OOPS - bool "Panic on Oops" - help - Say Y here to enable the kernel to panic when it oopses. This - has the same effect as setting oops=panic on the kernel command - line. - - This feature is useful to ensure that the kernel does not do - anything erroneous after an oops which could result in data - corruption or other issues. - - Say N if unsure. - -config PANIC_ON_OOPS_VALUE - int - range 0 1 - default 0 if !PANIC_ON_OOPS - default 1 if PANIC_ON_OOPS - -config PANIC_TIMEOUT - int "panic timeout" - default 0 - help - Set the timeout value (in seconds) until a reboot occurs when the - the kernel panics. If n = 0, then we wait forever. A timeout - value n > 0 will wait n seconds before rebooting, while a timeout - value n < 0 will reboot immediately. - config SCHED_DEBUG bool "Collect scheduler debugging info" depends on DEBUG_KERNEL && PROC_FS -- 2.20.1