mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-21 14:34:19 +00:00
debugobjects: add boot parameter default value
Impact: add .config driven boot parameter default value Right now debugobjects can only be activated if the debug_objects boot parameter is passed in via the boot command line. Make this more convenient (and randomizable) by also providing a .config method. Enable it by default. (DEBUG_OBJECTS itself is default-off) Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
ed313489ba
commit
3ae7020543
2 changed files with 11 additions and 1 deletions
|
@ -252,6 +252,14 @@ config DEBUG_OBJECTS_TIMERS
|
||||||
timer routines to track the life time of timer objects and
|
timer routines to track the life time of timer objects and
|
||||||
validate the timer operations.
|
validate the timer operations.
|
||||||
|
|
||||||
|
config DEBUG_OBJECTS_ENABLE_DEFAULT
|
||||||
|
int "debug_objects bootup default value (0-1)"
|
||||||
|
range 0 1
|
||||||
|
default "1"
|
||||||
|
depends on DEBUG_OBJECTS
|
||||||
|
help
|
||||||
|
Debug objects boot parameter default value
|
||||||
|
|
||||||
config DEBUG_SLAB
|
config DEBUG_SLAB
|
||||||
bool "Debug slab memory allocations"
|
bool "Debug slab memory allocations"
|
||||||
depends on DEBUG_KERNEL && SLAB
|
depends on DEBUG_KERNEL && SLAB
|
||||||
|
|
|
@ -45,7 +45,9 @@ static struct kmem_cache *obj_cache;
|
||||||
static int debug_objects_maxchain __read_mostly;
|
static int debug_objects_maxchain __read_mostly;
|
||||||
static int debug_objects_fixups __read_mostly;
|
static int debug_objects_fixups __read_mostly;
|
||||||
static int debug_objects_warnings __read_mostly;
|
static int debug_objects_warnings __read_mostly;
|
||||||
static int debug_objects_enabled __read_mostly;
|
static int debug_objects_enabled __read_mostly
|
||||||
|
= CONFIG_DEBUG_OBJECTS_ENABLE_DEFAULT;
|
||||||
|
|
||||||
static struct debug_obj_descr *descr_test __read_mostly;
|
static struct debug_obj_descr *descr_test __read_mostly;
|
||||||
|
|
||||||
static int __init enable_object_debug(char *str)
|
static int __init enable_object_debug(char *str)
|
||||||
|
|
Loading…
Add table
Reference in a new issue