diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2011-05-24 20:13:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-25 11:39:54 -0400 |
commit | 5ca43f6c3b365024d889bc77064bb331f5a72a45 (patch) | |
tree | c22cf20dc33d85770b88c117fd67b33c7bd7099d | |
parent | c84598bbfa756b7d042da31aa4e198ae866a6c7d (diff) |
lib: consolidate DEBUG_STACK_USAGE option
Most arches define CONFIG_DEBUG_STACK_USAGE exactly the same way. Move it
to lib/Kconfig.debug so each arch doesn't have to define it. This
obviously makes the option generic, but that's fine because the config is
already used in generic code.
It's not obvious to me that sysrq-P actually does anything caution by
keeping the most inclusive wording.
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Cc: Chris Metcalf <cmetcalf@tilera.com>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Richard Weinberger <richard@nod.at>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Hirokazu Takata <takata@linux-m32r.org>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Cc: Paul Mackerras <paulus@samba.org>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Chen Liqin <liqin.chen@sunplusct.com>
Cc: Lennox Wu <lennox.wu@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | arch/arm/Kconfig.debug | 7 | ||||
-rw-r--r-- | arch/blackfin/Kconfig.debug | 9 | ||||
-rw-r--r-- | arch/m32r/Kconfig.debug | 9 | ||||
-rw-r--r-- | arch/mips/Kconfig.debug | 9 | ||||
-rw-r--r-- | arch/powerpc/Kconfig.debug | 9 | ||||
-rw-r--r-- | arch/score/Kconfig.debug | 9 | ||||
-rw-r--r-- | arch/sh/Kconfig.debug | 9 | ||||
-rw-r--r-- | arch/sparc/Kconfig.debug | 9 | ||||
-rw-r--r-- | arch/tile/Kconfig.debug | 9 | ||||
-rw-r--r-- | arch/um/Kconfig.debug | 10 | ||||
-rw-r--r-- | arch/unicore32/Kconfig.debug | 7 | ||||
-rw-r--r-- | arch/x86/Kconfig.debug | 9 | ||||
-rw-r--r-- | lib/Kconfig.debug | 9 |
13 files changed, 9 insertions, 105 deletions
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 03d01d783e3..81cbe40c159 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug | |||
@@ -63,13 +63,6 @@ config DEBUG_USER | |||
63 | 8 - SIGSEGV faults | 63 | 8 - SIGSEGV faults |
64 | 16 - SIGBUS faults | 64 | 16 - SIGBUS faults |
65 | 65 | ||
66 | config DEBUG_STACK_USAGE | ||
67 | bool "Enable stack utilization instrumentation" | ||
68 | depends on DEBUG_KERNEL | ||
69 | help | ||
70 | Enables the display of the minimum amount of free stack which each | ||
71 | task has ever had available in the sysrq-T output. | ||
72 | |||
73 | # These options are only for real kernel hackers who want to get their hands dirty. | 66 | # These options are only for real kernel hackers who want to get their hands dirty. |
74 | config DEBUG_LL | 67 | config DEBUG_LL |
75 | bool "Kernel low-level debugging functions" | 68 | bool "Kernel low-level debugging functions" |
diff --git a/arch/blackfin/Kconfig.debug b/arch/blackfin/Kconfig.debug index 2641731f24c..19ccfb3b67d 100644 --- a/arch/blackfin/Kconfig.debug +++ b/arch/blackfin/Kconfig.debug | |||
@@ -9,15 +9,6 @@ config DEBUG_STACKOVERFLOW | |||
9 | This option will cause messages to be printed if free stack space | 9 | This option will cause messages to be printed if free stack space |
10 | drops below a certain limit. | 10 | drops below a certain limit. |
11 | 11 | ||
12 | config DEBUG_STACK_USAGE | ||
13 | bool "Enable stack utilization instrumentation" | ||
14 | depends on DEBUG_KERNEL | ||
15 | help | ||
16 | Enables the display of the minimum amount of free stack which each | ||
17 | task has ever had available in the sysrq-T output. | ||
18 | |||
19 | This option will slow down process creation somewhat. | ||
20 | |||
21 | config DEBUG_VERBOSE | 12 | config DEBUG_VERBOSE |
22 | bool "Verbose fault messages" | 13 | bool "Verbose fault messages" |
23 | default y | 14 | default y |
diff --git a/arch/m32r/Kconfig.debug b/arch/m32r/Kconfig.debug index 2e1019ddbb2..bb1afc1a31c 100644 --- a/arch/m32r/Kconfig.debug +++ b/arch/m32r/Kconfig.debug | |||
@@ -9,15 +9,6 @@ config DEBUG_STACKOVERFLOW | |||
9 | This option will cause messages to be printed if free stack space | 9 | This option will cause messages to be printed if free stack space |
10 | drops below a certain limit. | 10 | drops below a certain limit. |
11 | 11 | ||
12 | config DEBUG_STACK_USAGE | ||
13 | bool "Stack utilization instrumentation" | ||
14 | depends on DEBUG_KERNEL | ||
15 | help | ||
16 | Enables the display of the minimum amount of free stack which each | ||
17 | task has ever had available in the sysrq-T and sysrq-P debug output. | ||
18 | |||
19 | This option will slow down process creation somewhat. | ||
20 | |||
21 | config DEBUG_PAGEALLOC | 12 | config DEBUG_PAGEALLOC |
22 | bool "Debug page memory allocations" | 13 | bool "Debug page memory allocations" |
23 | depends on DEBUG_KERNEL && BROKEN | 14 | depends on DEBUG_KERNEL && BROKEN |
diff --git a/arch/mips/Kconfig.debug b/arch/mips/Kconfig.debug index 5358f90b4dd..83ed00a5644 100644 --- a/arch/mips/Kconfig.debug +++ b/arch/mips/Kconfig.debug | |||
@@ -76,15 +76,6 @@ config DEBUG_STACKOVERFLOW | |||
76 | provides another way to check stack overflow happened on kernel mode | 76 | provides another way to check stack overflow happened on kernel mode |
77 | stack usually caused by nested interruption. | 77 | stack usually caused by nested interruption. |
78 | 78 | ||
79 | config DEBUG_STACK_USAGE | ||
80 | bool "Enable stack utilization instrumentation" | ||
81 | depends on DEBUG_KERNEL | ||
82 | help | ||
83 | Enables the display of the minimum amount of free stack which each | ||
84 | task has ever had available in the sysrq-T and sysrq-P debug output. | ||
85 | |||
86 | This option will slow down process creation somewhat. | ||
87 | |||
88 | config SMTC_IDLE_HOOK_DEBUG | 79 | config SMTC_IDLE_HOOK_DEBUG |
89 | bool "Enable additional debug checks before going into CPU idle loop" | 80 | bool "Enable additional debug checks before going into CPU idle loop" |
90 | depends on DEBUG_KERNEL && MIPS_MT_SMTC | 81 | depends on DEBUG_KERNEL && MIPS_MT_SMTC |
diff --git a/arch/powerpc/Kconfig.debug b/arch/powerpc/Kconfig.debug index e1890e6d31b..e72dcf6a421 100644 --- a/arch/powerpc/Kconfig.debug +++ b/arch/powerpc/Kconfig.debug | |||
@@ -35,15 +35,6 @@ config DEBUG_STACKOVERFLOW | |||
35 | This option will cause messages to be printed if free stack space | 35 | This option will cause messages to be printed if free stack space |
36 | drops below a certain limit. | 36 | drops below a certain limit. |
37 | 37 | ||
38 | config DEBUG_STACK_USAGE | ||
39 | bool "Stack utilization instrumentation" | ||
40 | depends on DEBUG_KERNEL | ||
41 | help | ||
42 | Enables the display of the minimum amount of free stack which each | ||
43 | task has ever had available in the sysrq-T and sysrq-P debug output. | ||
44 | |||
45 | This option will slow down process creation somewhat. | ||
46 | |||
47 | config HCALL_STATS | 38 | config HCALL_STATS |
48 | bool "Hypervisor call instrumentation" | 39 | bool "Hypervisor call instrumentation" |
49 | depends on PPC_PSERIES && DEBUG_FS && TRACEPOINTS | 40 | depends on PPC_PSERIES && DEBUG_FS && TRACEPOINTS |
diff --git a/arch/score/Kconfig.debug b/arch/score/Kconfig.debug index 451ed54ce64..a1f346df0a7 100644 --- a/arch/score/Kconfig.debug +++ b/arch/score/Kconfig.debug | |||
@@ -16,15 +16,6 @@ config CMDLINE | |||
16 | other cases you can specify kernel args so that you don't have | 16 | other cases you can specify kernel args so that you don't have |
17 | to set them up in board prom initialization routines. | 17 | to set them up in board prom initialization routines. |
18 | 18 | ||
19 | config DEBUG_STACK_USAGE | ||
20 | bool "Enable stack utilization instrumentation" | ||
21 | depends on DEBUG_KERNEL | ||
22 | help | ||
23 | Enables the display of the minimum amount of free stack which each | ||
24 | task has ever had available in the sysrq-T and sysrq-P debug output. | ||
25 | |||
26 | This option will slow down process creation somewhat. | ||
27 | |||
28 | config RUNTIME_DEBUG | 19 | config RUNTIME_DEBUG |
29 | bool "Enable run-time debugging" | 20 | bool "Enable run-time debugging" |
30 | depends on DEBUG_KERNEL | 21 | depends on DEBUG_KERNEL |
diff --git a/arch/sh/Kconfig.debug b/arch/sh/Kconfig.debug index 1553d56cf4e..c1d5a820b1a 100644 --- a/arch/sh/Kconfig.debug +++ b/arch/sh/Kconfig.debug | |||
@@ -28,15 +28,6 @@ config STACK_DEBUG | |||
28 | every function call and will therefore incur a major | 28 | every function call and will therefore incur a major |
29 | performance hit. Most users should say N. | 29 | performance hit. Most users should say N. |
30 | 30 | ||
31 | config DEBUG_STACK_USAGE | ||
32 | bool "Stack utilization instrumentation" | ||
33 | depends on DEBUG_KERNEL | ||
34 | help | ||
35 | Enables the display of the minimum amount of free stack which each | ||
36 | task has ever had available in the sysrq-T and sysrq-P debug output. | ||
37 | |||
38 | This option will slow down process creation somewhat. | ||
39 | |||
40 | config 4KSTACKS | 31 | config 4KSTACKS |
41 | bool "Use 4Kb for kernel stacks instead of 8Kb" | 32 | bool "Use 4Kb for kernel stacks instead of 8Kb" |
42 | depends on DEBUG_KERNEL && (MMU || BROKEN) && !PAGE_SIZE_64KB | 33 | depends on DEBUG_KERNEL && (MMU || BROKEN) && !PAGE_SIZE_64KB |
diff --git a/arch/sparc/Kconfig.debug b/arch/sparc/Kconfig.debug index d9a795efbc0..6db35fba79f 100644 --- a/arch/sparc/Kconfig.debug +++ b/arch/sparc/Kconfig.debug | |||
@@ -6,15 +6,6 @@ config TRACE_IRQFLAGS_SUPPORT | |||
6 | 6 | ||
7 | source "lib/Kconfig.debug" | 7 | source "lib/Kconfig.debug" |
8 | 8 | ||
9 | config 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 | |||
18 | config DEBUG_DCFLUSH | 9 | config DEBUG_DCFLUSH |
19 | bool "D-cache flush debugging" | 10 | bool "D-cache flush debugging" |
20 | depends on SPARC64 && DEBUG_KERNEL | 11 | depends on SPARC64 && DEBUG_KERNEL |
diff --git a/arch/tile/Kconfig.debug b/arch/tile/Kconfig.debug index 9bc161a02c7..ddbfc3322d7 100644 --- a/arch/tile/Kconfig.debug +++ b/arch/tile/Kconfig.debug | |||
@@ -21,15 +21,6 @@ config DEBUG_STACKOVERFLOW | |||
21 | This option will cause messages to be printed if free stack space | 21 | This option will cause messages to be printed if free stack space |
22 | drops below a certain limit. | 22 | drops below a certain limit. |
23 | 23 | ||
24 | config DEBUG_STACK_USAGE | ||
25 | bool "Stack utilization instrumentation" | ||
26 | depends on DEBUG_KERNEL | ||
27 | help | ||
28 | Enables the display of the minimum amount of free stack which each | ||
29 | task has ever had available in the sysrq-T and sysrq-P debug output. | ||
30 | |||
31 | This option will slow down process creation somewhat. | ||
32 | |||
33 | config DEBUG_EXTRA_FLAGS | 24 | config DEBUG_EXTRA_FLAGS |
34 | string "Additional compiler arguments when building with '-g'" | 25 | string "Additional compiler arguments when building with '-g'" |
35 | depends on DEBUG_INFO | 26 | depends on DEBUG_INFO |
diff --git a/arch/um/Kconfig.debug b/arch/um/Kconfig.debug index 85c86edd1e6..68205fd3b08 100644 --- a/arch/um/Kconfig.debug +++ b/arch/um/Kconfig.debug | |||
@@ -28,16 +28,6 @@ config GCOV | |||
28 | If you're involved in UML kernel development and want to use gcov, | 28 | If you're involved in UML kernel development and want to use gcov, |
29 | say Y. If you're unsure, say N. | 29 | say Y. If you're unsure, say N. |
30 | 30 | ||
31 | config DEBUG_STACK_USAGE | ||
32 | bool "Stack utilization instrumentation" | ||
33 | default N | ||
34 | help | ||
35 | Track the maximum kernel stack usage - this will look at each | ||
36 | kernel stack at process exit and log it if it's the deepest | ||
37 | stack seen so far. | ||
38 | |||
39 | This option will slow down process creation and destruction somewhat. | ||
40 | |||
41 | config EARLY_PRINTK | 31 | config EARLY_PRINTK |
42 | bool "Early printk" | 32 | bool "Early printk" |
43 | default y | 33 | default y |
diff --git a/arch/unicore32/Kconfig.debug b/arch/unicore32/Kconfig.debug index 3140151ede4..ae2ec334c3c 100644 --- a/arch/unicore32/Kconfig.debug +++ b/arch/unicore32/Kconfig.debug | |||
@@ -27,13 +27,6 @@ config EARLY_PRINTK | |||
27 | with klogd/syslogd or the X server. You should normally N here, | 27 | with klogd/syslogd or the X server. You should normally N here, |
28 | unless you want to debug such a crash. | 28 | unless you want to debug such a crash. |
29 | 29 | ||
30 | config DEBUG_STACK_USAGE | ||
31 | bool "Enable stack utilization instrumentation" | ||
32 | depends on DEBUG_KERNEL | ||
33 | help | ||
34 | Enables the display of the minimum amount of free stack which each | ||
35 | task has ever had available in the sysrq-T output. | ||
36 | |||
37 | # These options are only for real kernel hackers who want to get their hands dirty. | 30 | # These options are only for real kernel hackers who want to get their hands dirty. |
38 | config DEBUG_LL | 31 | config DEBUG_LL |
39 | bool "Kernel low-level debugging functions" | 32 | bool "Kernel low-level debugging functions" |
diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug index 1bf88396ba2..c0f8a5c8891 100644 --- a/arch/x86/Kconfig.debug +++ b/arch/x86/Kconfig.debug | |||
@@ -66,15 +66,6 @@ config DEBUG_STACKOVERFLOW | |||
66 | This option will cause messages to be printed if free stack space | 66 | This option will cause messages to be printed if free stack space |
67 | drops below a certain limit. | 67 | drops below a certain limit. |
68 | 68 | ||
69 | config DEBUG_STACK_USAGE | ||
70 | bool "Stack utilization instrumentation" | ||
71 | depends on DEBUG_KERNEL | ||
72 | ---help--- | ||
73 | Enables the display of the minimum amount of free stack which each | ||
74 | task has ever had available in the sysrq-T and sysrq-P debug output. | ||
75 | |||
76 | This option will slow down process creation somewhat. | ||
77 | |||
78 | config X86_PTDUMP | 69 | config X86_PTDUMP |
79 | bool "Export kernel pagetable layout to userspace via debugfs" | 70 | bool "Export kernel pagetable layout to userspace via debugfs" |
80 | depends on DEBUG_KERNEL | 71 | depends on DEBUG_KERNEL |
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 09596e01468..28afa4c5333 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -670,6 +670,15 @@ config STACKTRACE | |||
670 | bool | 670 | bool |
671 | depends on STACKTRACE_SUPPORT | 671 | depends on STACKTRACE_SUPPORT |
672 | 672 | ||
673 | config DEBUG_STACK_USAGE | ||
674 | bool "Stack utilization instrumentation" | ||
675 | depends on DEBUG_KERNEL | ||
676 | help | ||
677 | Enables the display of the minimum amount of free stack which each | ||
678 | task has ever had available in the sysrq-T and sysrq-P debug output. | ||
679 | |||
680 | This option will slow down process creation somewhat. | ||
681 | |||
673 | config DEBUG_KOBJECT | 682 | config DEBUG_KOBJECT |
674 | bool "kobject debugging" | 683 | bool "kobject debugging" |
675 | depends on DEBUG_KERNEL | 684 | depends on DEBUG_KERNEL |