lib: Add note about process exit message for DEBUG_STACK_USAGE

Message ID 20231219182808.210284-2-u.kleine-koenig@pengutronix.de
State New
Headers
Series lib: Add note about process exit message for DEBUG_STACK_USAGE |

Commit Message

Uwe Kleine-König Dec. 19, 2023, 6:28 p.m. UTC
  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(+)


base-commit: aa4db8324c4d0e67aa4670356df4e9fae14b4d37
  

Patch

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.