diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Kconfig.debug | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 49d5fb754e88..e7ad58c5fbeb 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -824,6 +824,18 @@ config SCHEDSTATS | |||
824 | application, you can say N to avoid the very slight overhead | 824 | application, you can say N to avoid the very slight overhead |
825 | this adds. | 825 | this adds. |
826 | 826 | ||
827 | config SCHED_STACK_END_CHECK | ||
828 | bool "Detect stack corruption on calls to schedule()" | ||
829 | depends on DEBUG_KERNEL | ||
830 | default n | ||
831 | help | ||
832 | This option checks for a stack overrun on calls to schedule(). | ||
833 | If the stack end location is found to be over written always panic as | ||
834 | the content of the corrupted region can no longer be trusted. | ||
835 | This is to ensure no erroneous behaviour occurs which could result in | ||
836 | data corruption or a sporadic crash at a later stage once the region | ||
837 | is examined. The runtime overhead introduced is minimal. | ||
838 | |||
827 | config TIMER_STATS | 839 | config TIMER_STATS |
828 | bool "Collect kernel timers statistics" | 840 | bool "Collect kernel timers statistics" |
829 | depends on DEBUG_KERNEL && PROC_FS | 841 | depends on DEBUG_KERNEL && PROC_FS |