Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5305663ybe; Tue, 10 Sep 2019 01:26:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgWorIgH8OOIn75tjUPljTzbIB4rdUrcJhKO5aBA7vtMPHth7trdn7Whv4MH0Zg+QJ8/x7 X-Received: by 2002:a05:6402:125a:: with SMTP id l26mr7071402edw.95.1568104002809; Tue, 10 Sep 2019 01:26:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568104002; cv=none; d=google.com; s=arc-20160816; b=fCsfWrFhuyMJQmU/gRstyd3hf+PX4AwcA9gF9fl5vF1eemvpoasqu7i3LD9PUqNrb6 b/oWaMPmPk316WM/9u0Pp3X6m3I4li+WckDUn8EsuP9fn4Dg2eZw3Sw7QOZSlx8SRuAO vJKAgqXwSELxWXUh/mfQMUN55RAB7grThWHFxvqTE0p4tc/JOsoIsz5MhvCLA56iAlec xvj3DcTtk7uYiqs04ub+6rFXdF0bwfY8rLqHWeHGCg4kEj1KXrJSbdAMnaNINpnrY4Ma kF82Y5C3p3+q0zME7mYnLYOzutVXb5A0ihSxwbtvfAKRpCDO4OFyoRy8ncMd19ZgKbRv kixg== 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:date:subject:cc:to:from :dkim-signature; bh=d/AHpfqgPLf1YWnb3Rp5h86h74k5SWCtkf5nB4QsU3Q=; b=wJOY2Rr0JlmAZV1i/hn0KByqGRLfGrrjl76bZ96GhYbFzPZUUEbUrm1qh/b9m6Ydhv plz7RJTikcmZ5HFaJRkHm0kcLrgSdWuHtIzqpBXIyErudf3o3QxYAQZBg1j8LmdXnrMV rsbSN0vwuTO3wtiuQte22Th0VCJ30DXh3uHD+jugJClalY8arOBwl+nEUqmwpAwNzsVD ydJFEfotptWVHnOG35c/6jrDVL3ZAnAWVM6NrqJl2YG8vl6Zv/eWcwgcOVJ4PPjz1ydg eqnEjt5vnPYlH+s8RSJ4j4GrZ6kuuN4AXQgvqbTsdbdTN8L3plfbTJXmFdcyKi0Evg6g KCnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iufWKR22; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d11si8549051edh.407.2019.09.10.01.26.18; Tue, 10 Sep 2019 01:26:42 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iufWKR22; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387858AbfIIOpe (ORCPT + 99 others); Mon, 9 Sep 2019 10:45:34 -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-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