Received: by 2002:a17:90a:37e8:0:0:0:0 with SMTP id v95csp381365pjb; Fri, 4 Oct 2019 00:48:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqyz5In4elWxb9S9FIM3Yqlcs2i1zFn7RUNGqgO0BW7OZq7xy0xn0K5BPE/1TV8TL+06du83 X-Received: by 2002:a50:e613:: with SMTP id y19mr13866475edm.290.1570175321349; Fri, 04 Oct 2019 00:48:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570175321; cv=none; d=google.com; s=arc-20160816; b=TuFkQyHgEWEPuQBtpFMslpVQHdtFVAwbqTCgJvR/CiYzQL/o1TMgKDNKCFLlPDknuS fdqFFvPbp+JpWFeSNcU0cF3X7kQ1FDY3fdrOom7IAUwpYNd2YitbQqEWziDMaI8sE6Uz RnpDIg3PInS966HbFs2/qE59fUxfVPOxSDPir2z+uFRmb2j/fvucIYSxrsbrmyBJIrg3 DGf6n9IGFl7H/x7dYhCmnmOVeszfqDti5vHRcUccAwxUvasQtGTYbR9VgYq/OiYmdM0U y43P9XwXNJ/vLFH9iWSYlwyPoLxSaIu+K3G4EuR3K58yRCKbIc8r0MdvZLlRc8FMkyJE XcWQ== 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=YXyavoKgvf6Zgzf9UFUGtAunNoGgQxULYxae2YpF/kw=; b=B2hIXuoE849baejsIxdA9Xei48Z1VXDz1Jx2ty9tXownfK7EWZMik7Ge7BPtR8SVH6 Nw1IMcO3f8J6o3AoOTK7nr0HvqNqUipGQJKoV5HWaI/tRy2vnOnOLKl9aZr6AEVnykJw CFovZ7nZlDYkXGh5Tp1iO79yt7KPRBHh5k6OXoESZ6sgWuUw0Sne7quDXTuTcnFoLTS1 w9RLIyOjzJNt6NKxMrLwbpXRKWxg3N02kJGg79Fi7aIpfkDdXbmy+sBAoJZBsKQtDLVU bJtunQJjNPqLBN2JSgoN9pps5h0cysKauez2KSScIey950UmsIhoYSNdVIpjdPzUFGM4 7hIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HICZc7Xc; 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 p36si3077305edc.373.2019.10.04.00.48.17; Fri, 04 Oct 2019 00:48:41 -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=HICZc7Xc; 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 S1732004AbfJDBUc (ORCPT + 99 others); Thu, 3 Oct 2019 21:20:32 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:50704 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731802AbfJDBUb (ORCPT ); Thu, 3 Oct 2019 21:20:31 -0400 Received: by mail-wm1-f65.google.com with SMTP id 5so3959041wmg.0 for ; Thu, 03 Oct 2019 18:20:30 -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=YXyavoKgvf6Zgzf9UFUGtAunNoGgQxULYxae2YpF/kw=; b=HICZc7XctazMnAUd4paJzmShGCce7ggWUswDBudC8lUhsm/L4Nod57XaP9s23Ad4G+ mnbJGG3nkWF/0y4nMzEpWN6RxEPN8BEZrt+ylI/gEv+HYfjorE05IfA8n40rGCTa8A7T md4JVYdEt4LqrrxkdO2U5s16ZZQVEg1Zy0SixPSiqTdkF3GmnX7rTf7rXe4859gVAY24 damPYwcic9cGNQz4+tRuovMKbrkJZjNQ529QX1W87tlSMjCP8btP6EfCNcHFDaC6psmP A1zgHlaOgeG1MzM0mo2DR431raoUSL7X3ewDiahgpJnrBJI71czI0cupZAV2lAC6Hag/ mXBA== 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=YXyavoKgvf6Zgzf9UFUGtAunNoGgQxULYxae2YpF/kw=; b=WZ4t9QXRTimGSIN6LjqeMHvKQUbRMpk9dUnuqeNJkX99ckiHntWpH185foUVvq9yst 2yelivbUsbCfW2HSmDUnmvkSrpP6b93X54djaGQGXhYsoQBw+C1IKHi1+zQSZ9tnN+fh Ylj5kpwNXqxJCJP7lsOdVpW9D38suQsfiuN/rOaeRJeowPTu+LIwjutpKKs/9rt/+kAs xIw3pUDYOiKQdRHPUmfL8KjitUlOKUyUZS3VmFZ/r0vMXaI+JjzUKrJwAJRmOLhifaXq hY5ffIjly+mjw4ZNBnK+5vI+4OIu3j3mh3ECZfcGLyaR69Q7OrT1WrTFzAp6ycoN9diV RSqA== X-Gm-Message-State: APjAAAUcA92pjL9sEopQl8dGE3fwDtB4/+GxSxO13Y5PPjY8FqaAsN+a 89j/V/kHCUvkkJmBn8wval4= X-Received: by 2002:a1c:3281:: with SMTP id y123mr8494127wmy.118.1570152029383; Thu, 03 Oct 2019 18:20:29 -0700 (PDT) Received: from localhost.localdomain ([104.238.174.53]) by smtp.gmail.com with ESMTPSA id a4sm4097404wmm.10.2019.10.03.18.20.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2019 18:20:28 -0700 (PDT) From: Changbin Du To: Andrew Morton Cc: Randy Dunlap , Thomas Gleixner , Masahiro Yamada , linux-kernel@vger.kernel.org, Changbin Du Subject: [RESEND PATCH v3 1/9] hacking: Group sysrq/kgdb/ubsan into 'Generic Kernel Debugging Instruments' Date: Fri, 4 Oct 2019 09:20:02 +0800 Message-Id: <20191004012010.11287-2-changbin.du@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191004012010.11287-1-changbin.du@gmail.com> References: <20191004012010.11287-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 Group generic kernel debugging instruments sysrq/kgdb/ubsan together into a new submenu. Signed-off-by: Changbin Du Acked-by: Randy Dunlap Tested-by: Randy Dunlap --- lib/Kconfig.debug | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index a0250e53954a..157db30e626d 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -401,6 +401,8 @@ config DEBUG_FORCE_WEAK_PER_CPU endmenu # "Compiler options" +menu "Generic Kernel Debugging Instruments" + config MAGIC_SYSRQ bool "Magic SysRq key" depends on !UML @@ -434,6 +436,12 @@ config MAGIC_SYSRQ_SERIAL This option allows you to decide whether you want to enable the magic SysRq key. +source "lib/Kconfig.kgdb" + +source "lib/Kconfig.ubsan" + +endmenu + config DEBUG_KERNEL bool "Kernel debugging" help @@ -2095,10 +2103,6 @@ config BUG_ON_DATA_CORRUPTION source "samples/Kconfig" -source "lib/Kconfig.kgdb" - -source "lib/Kconfig.ubsan" - config ARCH_HAS_DEVMEM_IS_ALLOWED bool -- 2.20.1