aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/Kconfig.debug
diff options
context:
space:
mode:
authorMatt Fleming <matt@console-pimps.org>2009-07-10 21:00:23 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-07-10 21:07:58 -0400
commitb99610fb9cdf390965c62c22322596d961591160 (patch)
tree0c836b4390370b4848f151e3b3cbe27e6d8b48e2 /arch/sh/Kconfig.debug
parentc652d780c9cf7f860141de232b37160fe013feca (diff)
sh: Provide diagnostic kernel stack checks
Enable kernel stack checking code in both the dynamic ftrace and mcount code paths. Check the stack to see if it's overflowing and make sure that the stack pointer contains an address that's either in init_stack or after the bss. Signed-off-by: Matt Fleming <matt@console-pimps.org> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/Kconfig.debug')
-rw-r--r--arch/sh/Kconfig.debug11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/sh/Kconfig.debug b/arch/sh/Kconfig.debug
index 39224b57c6ef..52a132c24aab 100644
--- a/arch/sh/Kconfig.debug
+++ b/arch/sh/Kconfig.debug
@@ -123,4 +123,15 @@ config SH64_SR_WATCH
123 bool "Debug: set SR.WATCH to enable hardware watchpoints and trace" 123 bool "Debug: set SR.WATCH to enable hardware watchpoints and trace"
124 depends on SUPERH64 124 depends on SUPERH64
125 125
126config STACK_DEBUG
127 bool "Enable diagnostic checks of the kernel stack"
128 depends on FUNCTION_TRACER
129 select DEBUG_STACKOVERFLOW
130 default n
131 help
132 This option allows checks to be performed on the kernel stack
133 at runtime. Saying Y here will add overhead to every function
134 call and will therefore incur a major performance hit. Most
135 users should say N.
136
126endmenu 137endmenu