diff options
author | Ilya Leoshkevich <iii@linux.ibm.com> | 2022-02-09 05:17:44 +0300 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2022-02-09 08:37:50 +0300 |
commit | fbca4a2f649730b67488a8b36140ce4d2cf13c63 (patch) | |
tree | bd85a4c47968388af6f52981ec4dd94e3e02e4ba /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 60d16c5ccb811c9817bb0a71644b9ba14115f68e (diff) | |
download | linux-fbca4a2f649730b67488a8b36140ce4d2cf13c63.tar.xz |
libbpf: Fix accessing the first syscall argument on arm64
On arm64, the first syscall argument should be accessed via orig_x0
(see arch/arm64/include/asm/syscall.h). Currently regs[0] is used
instead, leading to bpf_syscall_macro test failure.
orig_x0 cannot be added to struct user_pt_regs, since its layout is a
part of the ABI. Therefore provide access to it only through
PT_REGS_PARM1_CORE_SYSCALL() by using a struct pt_regs flavor.
Reported-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220209021745.2215452-10-iii@linux.ibm.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions