diff options
| author | Ingo Molnar <mingo@kernel.org> | 2025-05-15 15:46:32 +0300 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2025-06-13 11:25:29 +0300 |
| commit | 687fac9d1b00fb10421fdd455d60543cc46e42d0 (patch) | |
| tree | 38a378575c23c5dc45faa497907e375fc742e4f8 /include | |
| parent | 3bc3c9c3ab6df45a3a3389f74000f8bec1bc96e3 (diff) | |
| download | linux-687fac9d1b00fb10421fdd455d60543cc46e42d0.tar.xz | |
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
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-generic/bug.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h index c8e7126bc26e..2d9f61346dab 100644 --- a/include/asm-generic/bug.h +++ b/include/asm-generic/bug.h @@ -17,6 +17,12 @@ #define BUG_GET_TAINT(bug) ((bug)->flags >> 8) #endif +#ifdef CONFIG_DEBUG_BUGVERBOSE_DETAILED +# define WARN_CONDITION_STR(cond_str) cond_str +#else +# define WARN_CONDITION_STR(cond_str) +#endif + #ifndef __ASSEMBLY__ #include <linux/panic.h> #include <linux/printk.h> |
