]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dynamic_debug: add support for print stack
authorYe Bin <yebin10@huawei.com>
Sat, 25 Oct 2025 08:00:03 +0000 (16:00 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 12 Nov 2025 18:00:16 +0000 (10:00 -0800)
commit6c2e6e2c1af1809d1d9cdbd50ac80f54f5995bdb
tree3961456c72c5a16f220bea70ebdff87a36543d26
parenta2b1c419ff72ec62ff5831684e30cd1d4f0b09ee
dynamic_debug: add support for print stack

In practical problem diagnosis, especially during the boot phase, it is
often desirable to know the call sequence.  However, currently, apart from
adding print statements and recompiling the kernel, there seems to be no
good alternative.  If dynamic_debug supported printing the call stack, it
would be very helpful for diagnosing issues.  This patch add support '+d'
for dump stack.

Link: https://lkml.kernel.org/r/20251025080003.312536-1-yebin@huaweicloud.com
Signed-off-by: Ye Bin <yebin10@huawei.com>
Cc: Jason Baron <jbaron@akamai.com>
Cc: Jim Cromie <jim.cromie@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/admin-guide/dynamic-debug-howto.rst
include/linux/dynamic_debug.h
lib/dynamic_debug.c