diff options
author | Changbin Du <changbin.du@gmail.com> | 2019-10-23 11:25:09 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2019-10-23 15:05:13 +1100 |
commit | c1416403f057aa03162f4b272d51ef84f3e51319 (patch) | |
tree | 30e50e42a130d1b929783b56b3048050f213c3a6 | |
parent | 31e98355ea7a816062a4f27b0484d334b3a3b5d7 (diff) | |
download | linux-c1416403f057aa03162f4b272d51ef84f3e51319.tar.gz linux-c1416403f057aa03162f4b272d51ef84f3e51319.tar.xz |
kernel-hacking: group kernel data structures debugging together
Group these similar runtime data structures verification options together.
Link: http://lkml.kernel.org/r/20190909144453.3520-4-changbin.du@gmail.com
Signed-off-by: Changbin Du <changbin.du@gmail.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r-- | lib/Kconfig.debug | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index b9e64acde6c4..919775466c9f 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -1366,6 +1366,8 @@ config DEBUG_BUGVERBOSE 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 bool "Debug linked list manipulation" depends on DEBUG_KERNEL || BUG_ON_DATA_CORRUPTION @@ -1405,6 +1407,18 @@ config DEBUG_NOTIFIERS This is a relatively cheap check but if you care about maximum performance, say N. +config BUG_ON_DATA_CORRUPTION + bool "Trigger a BUG when data corruption is detected" + select DEBUG_LIST + help + Select this option if the kernel should BUG when it encounters + data corruption in kernel memory structures when they get checked + for validity. + + If unsure, say N. + +endmenu + config DEBUG_CREDENTIALS bool "Debug credential management" depends on DEBUG_KERNEL @@ -2112,16 +2126,6 @@ config MEMTEST memtest=17, mean do 17 test patterns. If you are unsure how to answer this question, answer N. -config BUG_ON_DATA_CORRUPTION - bool "Trigger a BUG when data corruption is detected" - select DEBUG_LIST - help - Select this option if the kernel should BUG when it encounters - data corruption in kernel memory structures when they get checked - for validity. - - If unsure, say N. - source "samples/Kconfig" config ARCH_HAS_DEVMEM_IS_ALLOWED |