mirror of https://github.com/schoebel/mars
infra: make mem debugging independently configurable
This commit is contained in:
parent
2271f55e8c
commit
d02814e9c5
9
Kconfig
9
Kconfig
|
@ -23,6 +23,15 @@ config MARS_DEBUG_DEFAULT
|
||||||
---help---
|
---help---
|
||||||
normally OFF
|
normally OFF
|
||||||
|
|
||||||
|
config MARS_DEBUG_MEM
|
||||||
|
bool "debug memory operations"
|
||||||
|
depends on MARS_DEBUG
|
||||||
|
default n
|
||||||
|
---help---
|
||||||
|
This adds considerable space and time overhead, but catches
|
||||||
|
many errors (including some that are not caught by kmemleak).
|
||||||
|
Use only for development and thorough testing!
|
||||||
|
|
||||||
config MARS_BIGMODULE
|
config MARS_BIGMODULE
|
||||||
tristate "compile all MARS modules into a single kernel module"
|
tristate "compile all MARS modules into a single kernel module"
|
||||||
depends on MARS
|
depends on MARS
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
#define BRICK_DEBUG_MEM 4096
|
#define BRICK_DEBUG_MEM 4096
|
||||||
|
|
||||||
#ifndef CONFIG_MARS_DEBUG
|
#ifndef CONFIG_MARS_DEBUG_MEM
|
||||||
#undef BRICK_DEBUG_MEM
|
#undef BRICK_DEBUG_MEM
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue