libbpf: Fixed getting wrong return address on arm64 architecture
authorShuyi Cheng <chengshuyi@linux.alibaba.com>
Sun, 8 Sep 2024 09:23:53 +0000 (17:23 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 9 Sep 2024 22:56:22 +0000 (15:56 -0700)
commit12707b9159e631af91c051fd102d469364b6ecc3
tree4431f44629566d5f3a96bccfe8944e90e547bddc
parent8a3f14bb1e944f496d1a16096435ddb2e12e4753
libbpf: Fixed getting wrong return address on arm64 architecture

ARM64 has a separate lr register to store the return address, so here
you only need to read the lr register to get the return address, no need
to dereference it again.

Signed-off-by: Shuyi Cheng <chengshuyi@linux.alibaba.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/1725787433-77262-1-git-send-email-chengshuyi@linux.alibaba.com
tools/lib/bpf/bpf_tracing.h