]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/sh/Kconfig.debug
sh: Provide diagnostic kernel stack checks
[karo-tx-linux.git] / arch / sh / Kconfig.debug
index 39224b57c6efe5ae5d37a45c68d34811fbc0f047..52a132c24aab1968f38c22bfb73eddee6bc68533 100644 (file)
@@ -123,4 +123,15 @@ config SH64_SR_WATCH
        bool "Debug: set SR.WATCH to enable hardware watchpoints and trace"
        depends on SUPERH64
 
+config STACK_DEBUG
+       bool "Enable diagnostic checks of the kernel stack"
+       depends on FUNCTION_TRACER
+       select DEBUG_STACKOVERFLOW
+       default n
+       help
+         This option allows checks to be performed on the kernel stack
+         at runtime. Saying Y here will add overhead to every function
+         call and will therefore incur a major performance hit. Most
+         users should say N.
+
 endmenu