Received: by 2002:a17:90a:37e8:0:0:0:0 with SMTP id v95csp382954pjb; Fri, 4 Oct 2019 00:50:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqybcVTkGkfst9ssduQ7ZhpUiw6uc+Svbt+5htkO3JBYDkMj+I7GpQFIIGdqy8QdYzSjMwOD X-Received: by 2002:a50:c2c2:: with SMTP id u2mr13656986edf.220.1570175423062; Fri, 04 Oct 2019 00:50:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570175423; cv=none; d=google.com; s=arc-20160816; b=bF1aqUzhBNnt4sVlRyk3bR/cgxWcYyptjoST9rCmQiy2XDL7VyiZCf66f2TKTCpFqR /lTXOsxxJ6C+dE3hl8rFbyafAB1P3T/yXNlAXvKLaGZZAxehhwqQjxCPeLzjzuUY3bwX IBkufHa8X53vu2Rd2ZNrj7qvLH29hy9k0dLXH9eG/Jpn13hcs/ygWM/DATf571AhSmpU iNxUa2K96gnfzKUQNdK2vPs1UuCyiUBqLlokVFcp+6BcLQyRTbvsO0Hc4VVxGFbVVy6m PoSYQyssBCVp/fJG50YB/eSmwzZv70skEEFrU4s5SVj/14GG2Ty0BzDyEkcH2r4wdh4n XcnQ== 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=YqU65iM2qH8gUboTur4UrIo5rTm6nMUgwC8eweSFzNQ=; b=p0OpP1q/dveQZXVaV6C62m+JP4eroDk2d+2zDHkLD2ngo/D3JCq7vwc71vBucG/xg0 LT/krkUcHACsV/CNN/ZXcQzOpXmEH2MBbBIQhuQfZ6+dl4oLJ+qSOHPNj6uUyHINugw2 hs5YBJDaXdSDZqIGBrlLXnhR4RB4Rw30rMiTrVfHaIZypqrREQg+xGnqQQbjGnn9TPwQ No8SCiJg3b3/5/XrVR7bHJahwjHBvwCATKJYoRfCS98r/dg0bi5pnR97qbir1PCnNFJK TNsVf3bFVZSkyettnIHLURy3WAuSGoRLWSiNlvbsYA9S6/bLJhDx0dVCNHk9hB8v3jJA BoGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sjNRnSU3; 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 h58si3172179eda.191.2019.10.04.00.49.58; Fri, 04 Oct 2019 00:50:23 -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=sjNRnSU3; 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 S1732796AbfJDBU7 (ORCPT + 99 others); Thu, 3 Oct 2019 21:20:59 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:51490 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732783AbfJDBU6 (ORCPT ); Thu, 3 Oct 2019 21:20:58 -0400 Received: by mail-wm1-f67.google.com with SMTP id 7so3953984wme.1 for ; Thu, 03 Oct 2019 18:20:56 -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=YqU65iM2qH8gUboTur4UrIo5rTm6nMUgwC8eweSFzNQ=; b=sjNRnSU3nbh+Qq/gSkfxHgphEf9rDxrJ/KFolrGvbwswGjZ1mFkw0p6TE6U7X0K0xB 8K7qKw/eHsLHLdVKdVp6PKF+b6p/8dLWF2uyM2jr3MQmSQJHCcphCWrcFDkoKQ/sJv0G uPFQTo/TTTJTe7Kxi40/HEMKYSKKQiA3JdYQP64aN9sL2ghQn8fNGQIVD++lQ0e7b4O2 +qY6UrT3iMcUnngcV1882UYvkB/r+ZY0rFpOmYC6RszD1/Kb9KoyLs/7j9dXzvseKn6c w1JJm2aD0UiWEY57u9b2SHexHdb6HGoJDDf1l2/hodvtqGJ6VRXfZv+XLtsPcxFF8IC9 xB/g== 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=YqU65iM2qH8gUboTur4UrIo5rTm6nMUgwC8eweSFzNQ=; b=UwFckWjWeGLT/8UDeDoZGxvstONC7KBLv53CWKiecOSKHq2z5XZkniSXOMN7dkLFUt 44Gb0rGzpZfHgF8W1LhyIAbHTZom2cNptNZcFEQLqWWiOn4GPxR94B5yUpnbOlK7p64v mKoAz77b2OREhXvLhtHHZNyBXrrJLkRh+Ei/zVa/yIilZ/PwTLxne78FpPrR7UUKhWhP ZysY0Y7tTJOFF+tdgUKi3U0xhoo20sKNFkzeBkum8yRkL2DdS/pYJZX9FDish0awaAHw zbmKzD63wJSQ8lBJly85AybE/RMzwcjiQJ7UWluvWLWtukMyWlABTCgV8hx2CG0XErSH yjDw== X-Gm-Message-State: APjAAAXgm+jKx8jkXmeSqQqxpd6MbFvMq+aHVx0MADov/QibF3+uAuUp Gvu9vfrJC8qE72tcSy1RKbw= X-Received: by 2002:a7b:c4c7:: with SMTP id g7mr8580315wmk.11.1570152056172; Thu, 03 Oct 2019 18:20:56 -0700 (PDT) Received: from localhost.localdomain ([104.238.174.53]) by smtp.gmail.com with ESMTPSA id a4sm4097404wmm.10.2019.10.03.18.20.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2019 18:20:55 -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 8/9] hacking: Move DEBUG_BUGVERBOSE to 'printk and dmesg options' Date: Fri, 4 Oct 2019 09:20:09 +0800 Message-Id: <20191004012010.11287-9-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 I think DEBUG_BUGVERBOSE is a dmesg option which gives more debug info to dmesg. Signed-off-by: Changbin Du Acked-by: Randy Dunlap Tested-by: Randy Dunlap --- lib/Kconfig.debug | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 6db178071743..12727e12a28b 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" @@ -1305,15 +1314,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