diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2009-10-06 04:33:57 -0400 |
---|---|---|
committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2009-10-06 04:35:06 -0400 |
commit | dfcc3e6a8b8c10bccc532e6bd5a25d50ccb14b25 (patch) | |
tree | ee3c159866c3d60fc52109575a3a3e464410656a | |
parent | 34483cac2310846b2f210378ee7cd8150c4ae768 (diff) |
[S390] Enable kmemleak on s390.
Also increase the maximum possible kmemleak early log entries since
2000 are not sufficient on s390.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r-- | arch/s390/kernel/vmlinux.lds.S | 1 | ||||
-rw-r--r-- | lib/Kconfig.debug | 7 |
2 files changed, 5 insertions, 3 deletions
diff --git a/arch/s390/kernel/vmlinux.lds.S b/arch/s390/kernel/vmlinux.lds.S index bc15ef93e656..a68ac10213b2 100644 --- a/arch/s390/kernel/vmlinux.lds.S +++ b/arch/s390/kernel/vmlinux.lds.S | |||
@@ -51,6 +51,7 @@ SECTIONS | |||
51 | 51 | ||
52 | . = ALIGN(PAGE_SIZE); | 52 | . = ALIGN(PAGE_SIZE); |
53 | _eshared = .; /* End of shareable data */ | 53 | _eshared = .; /* End of shareable data */ |
54 | _sdata = .; /* Start of data section */ | ||
54 | 55 | ||
55 | EXCEPTION_TABLE(16) :data | 56 | EXCEPTION_TABLE(16) :data |
56 | 57 | ||
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 891155817bc6..30df5865ecbe 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -346,8 +346,9 @@ config SLUB_STATS | |||
346 | 346 | ||
347 | config DEBUG_KMEMLEAK | 347 | config DEBUG_KMEMLEAK |
348 | bool "Kernel memory leak detector" | 348 | bool "Kernel memory leak detector" |
349 | depends on DEBUG_KERNEL && EXPERIMENTAL && (X86 || ARM || PPC) && \ | 349 | depends on DEBUG_KERNEL && EXPERIMENTAL && !MEMORY_HOTPLUG && \ |
350 | !MEMORY_HOTPLUG | 350 | (X86 || ARM || PPC || S390) |
351 | |||
351 | select DEBUG_FS if SYSFS | 352 | select DEBUG_FS if SYSFS |
352 | select STACKTRACE if STACKTRACE_SUPPORT | 353 | select STACKTRACE if STACKTRACE_SUPPORT |
353 | select KALLSYMS | 354 | select KALLSYMS |
@@ -370,7 +371,7 @@ config DEBUG_KMEMLEAK | |||
370 | config DEBUG_KMEMLEAK_EARLY_LOG_SIZE | 371 | config DEBUG_KMEMLEAK_EARLY_LOG_SIZE |
371 | int "Maximum kmemleak early log entries" | 372 | int "Maximum kmemleak early log entries" |
372 | depends on DEBUG_KMEMLEAK | 373 | depends on DEBUG_KMEMLEAK |
373 | range 200 2000 | 374 | range 200 40000 |
374 | default 400 | 375 | default 400 |
375 | help | 376 | help |
376 | Kmemleak must track all the memory allocations to avoid | 377 | Kmemleak must track all the memory allocations to avoid |