summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2023-11-07 23:25:52 +0100
committerRafał Miłecki <rafal@milecki.pl>2023-11-09 21:23:01 +0100
commit4fb8e68bc40d7f6f898477c5570b317f50b7b069 (patch)
tree1abde0222c9f9493ac80a2717c2765e4ecb96687 /config
parent3b6320844306786b23176257408f983b1386cc7b (diff)
downloadopenwrt-4fb8e68bc40d7f6f898477c5570b317f50b7b069.tar.gz
openwrt-4fb8e68bc40d7f6f898477c5570b317f50b7b069.tar.bz2
openwrt-4fb8e68bc40d7f6f898477c5570b317f50b7b069.zip
kernel: provide better control & help for SLUB configuration
Allow selecting KERNEL_SLUB_DEBUG and KERNEL_SLUB_DEBUG_ON manually and provide detailed help for both. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'config')
-rw-r--r--config/Config-kernel.in17
1 files changed, 15 insertions, 2 deletions
diff --git a/config/Config-kernel.in b/config/Config-kernel.in
index a1209d82f3..4c43190e40 100644
--- a/config/Config-kernel.in
+++ b/config/Config-kernel.in
@@ -682,10 +682,23 @@ config KERNEL_PRINTK_TIME
default y
config KERNEL_SLUB_DEBUG
- bool
+ bool "Enable SLUB debugging support"
+ help
+ This enables various debugging features:
+ - Accepts "slub_debug" kernel parameter
+ - Provides caches debugging options (e.g. tracing, validating)
+ - Adds /sys/kernel/slab/ attrs for reading amounts of *objects*
+ - Enables /proc/slabinfo support
+ - Prints info when running out of memory
+
+ Enabling this can result in a significant increase of code size.
config KERNEL_SLUB_DEBUG_ON
- bool
+ depends on KERNEL_SLUB_DEBUG
+ bool "Boot kernel with basic caches debugging enabled"
+ help
+ This enables by default sanity_checks, red_zone, poison and store_user
+ debugging options for all caches.
config KERNEL_SLABINFO
select KERNEL_SLUB_DEBUG