]> www.infradead.org Git - users/hch/block.git/commit
arm64: Add USER_STACKTRACE support
authorchenqiwu <qiwuchen55@gmail.com>
Tue, 19 Dec 2023 02:22:29 +0000 (10:22 +0800)
committerWill Deacon <will@kernel.org>
Fri, 3 May 2024 13:12:45 +0000 (14:12 +0100)
commit410e471f87465f04d7ae7f8ed16ef8e7a3b5517c
tree06d83ea464c873b5e925e8a1fc6be614f694bf83
parent582c1aeee0a9e73010cf1c4cef338709860deeb0
arm64: Add USER_STACKTRACE support

Currently, userstacktrace is unsupported for ftrace and uprobe
tracers on arm64. This patch uses the perf_callchain_user() code
as blueprint to implement the arch_stack_walk_user() which add
userstacktrace support on arm64.
Meanwhile, we can use arch_stack_walk_user() to simplify the
implementation of perf_callchain_user().
This patch is tested pass with ftrace, uprobe and perf tracers
profiling userstacktrace cases.

Tested-by: chenqiwu <qiwu.chen@transsion.com>
Signed-off-by: chenqiwu <qiwu.chen@transsion.com>
Link: https://lore.kernel.org/r/20231219022229.10230-1-qiwu.chen@transsion.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/Kconfig
arch/arm64/kernel/perf_callchain.c
arch/arm64/kernel/stacktrace.c