Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp3917484ybe; Mon, 9 Sep 2019 00:55:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQeFIq/7bdY26oLpBQqFTpdlWMkebs6RzEctfHh+Gs8P15KobMhCBfKtQSj+VcJHDvCCoe X-Received: by 2002:aa7:d6d8:: with SMTP id x24mr3954110edr.178.1568015752612; Mon, 09 Sep 2019 00:55:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568015752; cv=none; d=google.com; s=arc-20160816; b=CeH8x3HYo755a7mddQZqU3A7qy/TmRMLFsFjW6W7ZWnFEZ0UJmbd9puxbFS+n1m1RC sjASABcoQRw2JgN2GwDTXxx0BoyveTX27cUcTdMMmHhvpbNx3StUEXUoEpJZylVfS++j e0NHtJy8wt6T3nvdCjzZ2YM5Rc+xPE7xXYN49fjPyETdCb/0QzeGNFe8XNPzGT3vzz85 GpLBkkeMnpcNKjJaq6HdkePQVB8ZJ+PeZrE88cb5bxC1RKfY6cvQ96mH/rb4TrZO8er2 dW5eqay+C3qpIQ/g7i5cjosBFjyUnKnK12t82R5Un0FHpocI9bg9qtNtwUNW8/PiBD1y 1hCA== 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=O2nzQoHy+l7jUofL0Y45RwKho+YZHgAAMDyAyNEBkMI=; b=IIXgROtzkkSsGJ8RYaTUJWdtm9VbvEzj2B6DLEuhojbyz8GB4Xcv8LaYCeIvNpn/cO vZbEGwW8Qyp1BV8f1UpLwR7e1v3SWoWTTv2fWVaK347ntut8lg7c0Uc6J7kPqj44zAMI nXCoEAeIw8T6/9OsiiOghIeQR3L0hxG31GmFU65rZjYw+T9ysdfRLEBDiX8NQOMvi7ci r/f4Tj9xKhcGy07GIdFgCt4/RaL/NABvSOLgZoZ/wVazXWu3ObIDSSKrNOTUFoAoYWvJ EVYYnUFOPzbqizaxQLgf5W/wP/ohb3OhAa1/ovcdpJ1kxAESJ7bdEi7PWhWMDh0CU/7r nhTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UJs3m3qd; 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 o16si7056228ejr.190.2019.09.09.00.55.29; Mon, 09 Sep 2019 00:55:52 -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=UJs3m3qd; 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 S2394495AbfIHB3B (ORCPT + 99 others); Sat, 7 Sep 2019 21:29:01 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:36041 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394266AbfIHB2x (ORCPT ); Sat, 7 Sep 2019 21:28:53 -0400 Received: by mail-pf1-f196.google.com with SMTP id y22so6935086pfr.3 for ; Sat, 07 Sep 2019 18:28:53 -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=O2nzQoHy+l7jUofL0Y45RwKho+YZHgAAMDyAyNEBkMI=; b=UJs3m3qdIq4hj2qvX7b+Aw+JhGOE0CDpArDgCy+kmR8BZh5x6AekQaZMvl/8A3+xVZ pzU2Vx1RUzzDRAXQ0fQ6A25JFjkqomEIYCwxtJHSkLhglRSLyYAf8REwuH4DXBbOM6wH EFt6ZUnoflN0zVSaJ+vNmNBeDwCchsNzzATah+vJjHYMurTWbVbqD9wUGHp1b0pP2heK yxrTD6a+Bxa1+l1ArWkFNuIRZNJzYt72jsjP2LZnJ0Iquw34+aQLLq1Xn5UZfmOuWWtM ptVQJIQCAZplfFGiLSRX0xQEzAuY910+6QVu9Lhh2LdKKYZWyCQJ2S/y+Ko4ablVAhqG 4QOA== 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=O2nzQoHy+l7jUofL0Y45RwKho+YZHgAAMDyAyNEBkMI=; b=LILNMIjZMwnRFSbTBs03Ibd5g3r2Qr6dbw/NVGRfSxozPY8JIJZeqvlF/5puilyKLG 6ea3CfqVu7PM6Q+bRyVAG1GM8uFdjOEz5TisRdE4GPtWBQO8wkJkzAn6IhhTTrABPYSH vaKFYh/7HQanW+wFuKa7eq7vQkV5MLF9gFSM6Z/5sudUvcRV52dT5z0+tX5VHDjCXC4l OGF5xtm4pnQqJBQbm+hZ+oFOpC9qLCKdN2jAU7dLfgAyXmUTmkwPHMyjGXxpu9BtqKY8 MzwcUZ/a1/rnnyQxgMvzlWAayC2xoiJG6Pu74Fk3LxYTTN3uJ4R+FD+igsuWC/ABSYEu rcyA== X-Gm-Message-State: APjAAAUcwpcGWG508pC9wPAvgK1/Hx9NqgomdpSmXv7IyZAcg3uw8aug ET/n+cOOwG9v/eYhe01/2qtVx8IlyVE= X-Received: by 2002:a65:5188:: with SMTP id h8mr14877536pgq.294.1567906133217; Sat, 07 Sep 2019 18:28:53 -0700 (PDT) Received: from localhost.localdomain ([149.28.153.17]) by smtp.gmail.com with ESMTPSA id s1sm18367884pjs.31.2019.09.07.18.28.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Sep 2019 18:28:52 -0700 (PDT) From: Changbin Du To: Andrew Morton Cc: Thomas Gleixner , linux-kernel@vger.kernel.org, Changbin Du Subject: [PATCH 8/8] kconfig/hacking: Move DEBUG_BUGVERBOSE to 'printk and dmesg options' Date: Sun, 8 Sep 2019 09:28:00 +0800 Message-Id: <20190908012800.12979-9-changbin.du@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190908012800.12979-1-changbin.du@gmail.com> References: <20190908012800.12979-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 I think DEBUG_BUGVERBOSE is a dmesg option which gives more debug info to dmesg. Signed-off-by: Changbin Du --- lib/Kconfig.debug | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 740ada6744f6..bb82a02f6172 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -164,6 +164,15 @@ config DYNAMIC_DEBUG See Documentation/admin-guide/dynamic-debug-howto.rst for additional information. +config DEBUG_BUGVERBOSE + bool "Verbose BUG() reporting (adds 70K)" if DEBUG_KERNEL && EXPERT + depends on BUG && (GENERIC_BUG || HAVE_DEBUG_BUGVERBOSE) + default y + help + Say Y here to make BUG() panics output the file name and line number + of the BUG call as well as the EIP and oops trace. This aids + debugging but costs about 70-100K of memory. + endmenu # "printk and dmesg options" menu "Compile-time checks and compiler options" @@ -1322,15 +1331,6 @@ config DEBUG_KOBJECT_RELEASE config HAVE_DEBUG_BUGVERBOSE bool -config DEBUG_BUGVERBOSE - bool "Verbose BUG() reporting (adds 70K)" if DEBUG_KERNEL && EXPERT - depends on BUG && (GENERIC_BUG || HAVE_DEBUG_BUGVERBOSE) - default y - help - Say Y here to make BUG() panics output the file name and line number - of the BUG call as well as the EIP and oops trace. This aids - debugging but costs about 70-100K of memory. - menu "Debug kernel data structures" config DEBUG_LIST -- 2.20.1