aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/sparc/Kconfig.debug26
-rw-r--r--arch/sparc64/Kconfig2
-rw-r--r--arch/sparc64/Kconfig.debug44
3 files changed, 27 insertions, 45 deletions
diff --git a/arch/sparc/Kconfig.debug b/arch/sparc/Kconfig.debug
index 87dd496f15eb..b8a15e271bfa 100644
--- a/arch/sparc/Kconfig.debug
+++ b/arch/sparc/Kconfig.debug
@@ -15,4 +15,30 @@ config DEBUG_STACK_USAGE
15 15
16 This option will slow down process creation somewhat. 16 This option will slow down process creation somewhat.
17 17
18config DEBUG_DCFLUSH
19 bool "D-cache flush debugging"
20 depends on SPARC64 && DEBUG_KERNEL
21
22config STACK_DEBUG
23 bool "Stack Overflow Detection Support"
24
25config DEBUG_PAGEALLOC
26 bool "Debug page memory allocations"
27 depends on SPARC64 && DEBUG_KERNEL && !HIBERNATION
28 help
29 Unmap pages from the kernel linear mapping after free_pages().
30 This results in a large slowdown, but helps to find certain types
31 of memory corruptions.
32
33config MCOUNT
34 bool
35 depends on SPARC64
36 depends on STACK_DEBUG || FUNCTION_TRACER
37 default y
38
39config FRAME_POINTER
40 bool
41 depends on MCOUNT
42 default y
43
18endmenu 44endmenu
diff --git a/arch/sparc64/Kconfig b/arch/sparc64/Kconfig
index 3b96e70b4670..422c2b1c3da2 100644
--- a/arch/sparc64/Kconfig
+++ b/arch/sparc64/Kconfig
@@ -424,7 +424,7 @@ source "drivers/sbus/char/Kconfig"
424 424
425source "fs/Kconfig" 425source "fs/Kconfig"
426 426
427source "arch/sparc64/Kconfig.debug" 427source "arch/sparc/Kconfig.debug"
428 428
429source "security/Kconfig" 429source "security/Kconfig"
430 430
diff --git a/arch/sparc64/Kconfig.debug b/arch/sparc64/Kconfig.debug
deleted file mode 100644
index c40515c06690..000000000000
--- a/arch/sparc64/Kconfig.debug
+++ /dev/null
@@ -1,44 +0,0 @@
1menu "Kernel hacking"
2
3config TRACE_IRQFLAGS_SUPPORT
4 bool
5 default y
6
7source "lib/Kconfig.debug"
8
9config DEBUG_STACK_USAGE
10 bool "Enable stack utilization instrumentation"
11 depends on DEBUG_KERNEL
12 help
13 Enables the display of the minimum amount of free stack which each
14 task has ever had available in the sysrq-T and sysrq-P debug output.
15
16 This option will slow down process creation somewhat.
17
18config DEBUG_DCFLUSH
19 bool "D-cache flush debugging"
20 depends on DEBUG_KERNEL
21
22config STACK_DEBUG
23 depends on DEBUG_KERNEL
24 bool "Stack Overflow Detection Support"
25
26config DEBUG_PAGEALLOC
27 bool "Debug page memory allocations"
28 depends on DEBUG_KERNEL && !HIBERNATION
29 help
30 Unmap pages from the kernel linear mapping after free_pages().
31 This results in a large slowdown, but helps to find certain types
32 of memory corruptions.
33
34config MCOUNT
35 bool
36 depends on STACK_DEBUG || FUNCTION_TRACER
37 default y
38
39config FRAME_POINTER
40 bool
41 depends on MCOUNT
42 default y
43
44endmenu