]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bugs/core: Introduce the CONFIG_DEBUG_BUGVERBOSE_DETAILED Kconfig switch
authorIngo Molnar <mingo@kernel.org>
Thu, 15 May 2025 12:46:32 +0000 (14:46 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 13 Jun 2025 08:25:29 +0000 (10:25 +0200)
commit687fac9d1b00fb10421fdd455d60543cc46e42d0
tree38a378575c23c5dc45faa497907e375fc742e4f8
parent3bc3c9c3ab6df45a3a3389f74000f8bec1bc96e3
bugs/core: Introduce the CONFIG_DEBUG_BUGVERBOSE_DETAILED Kconfig switch

Allow configurability of the inclusion of more detailed
WARN_ON() strings, to be implemented in subsequent
commits.

Since the full cost will be around 100K more memory on
an x86 defconfig, disable it by default.

Provide the WARN_CONDITION_STR() macro to allow the conditional
passing of extra strings to lower level BUG/WARN handlers.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-arch@vger.kernel.org
Link: https://lore.kernel.org/r/20250515124644.2958810-4-mingo@kernel.org
include/asm-generic/bug.h
lib/Kconfig.debug