X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=lib%2FKconfig.debug;h=12327b2bb785c256a59cb864a2c2b8976c33e5aa;hb=b9394647ac88faad9db0f9e92eac4db434faded6;hp=4c32b1a1a06e393ad5d8844cdbefa00994965c2a;hpb=8fd3ec6309dc3c8b6addc9015458bfae87592a1f;p=linux-block.git diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 4c32b1a1a06e..12327b2bb785 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -359,6 +359,18 @@ config DEBUG_KMEMLEAK In order to access the kmemleak file, debugfs needs to be mounted (usually at /sys/kernel/debug). +config DEBUG_KMEMLEAK_EARLY_LOG_SIZE + int "Maximum kmemleak early log entries" + depends on DEBUG_KMEMLEAK + range 200 2000 + default 400 + help + Kmemleak must track all the memory allocations to avoid + reporting false positives. Since memory may be allocated or + freed before kmemleak is initialised, an early log buffer is + used to store these actions. If kmemleak reports "early log + buffer exceeded", please increase this value. + config DEBUG_KMEMLEAK_TEST tristate "Simple test for the kernel memory leak detector" depends on DEBUG_KMEMLEAK