Commit 6e716f19 authored by chenqiwu's avatar chenqiwu Committed by Kalesh Singh
Browse files

UPSTREAM: 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: default avatarchenqiwu <qiwu.chen@transsion.com>
Change-Id: I6dc650e2e748e7810172968d6b94eb6c5b8fd99b
Signed-off-by: default avatarchenqiwu <qiwu.chen@transsion.com>
Link: https://lore.kernel.org/r/20231219022229.10230-1-qiwu.chen@transsion.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
(cherry picked from commit 410e471f)
Bug: 346658593
Signed-off-by: default avatarKalesh Singh <kaleshsingh@google.com>
parent aaca6b10
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment