[PATCH] lib: Add note about process exit message for DEBUG_STACK_USAGE

Uwe Kleine-König posted 1 patch 1 year, 12 months ago
lib/Kconfig.debug | 2 ++
1 file changed, 2 insertions(+)
[PATCH] lib: Add note about process exit message for DEBUG_STACK_USAGE
Posted by Uwe Kleine-König 1 year, 12 months ago
DEBUG_STACK_USAGE doesn't only have an influence on the output of
sysrq-T and sysrq-P, it also enables a message at process exit. See
check_stack_usage() in kernel/exit.c where this is implemented.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 lib/Kconfig.debug | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 1642a6d58be4..97ce28f4d154 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -763,6 +763,8 @@ config DEBUG_STACK_USAGE
 	help
 	  Enables the display of the minimum amount of free stack which each
 	  task has ever had available in the sysrq-T and sysrq-P debug output.
+	  Also emits a message to dmesg when a process exits if that process
+	  used more stack space than previously exiting processes.
 
 	  This option will slow down process creation somewhat.
 

base-commit: aa4db8324c4d0e67aa4670356df4e9fae14b4d37
-- 
2.42.0