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

From: Uwe Kleine-König
Date: Tue Dec 19 2023 - 13:28:53 EST


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@xxxxxxxxxxxxxx>
---
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