diff options
author | Kenta Tada <Kenta.Tada@sony.com> | 2022-01-24 23:16:21 +0900 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2022-01-24 21:04:10 -0800 |
commit | d084df3b7a4c49fb2abec55f8d512c51d643c408 (patch) | |
tree | 92a6231d132a6ecda520e4b653c67d7e9da60664 /tools/testing/selftests/bpf/progs/bpf_syscall_macro.c | |
parent | selftests/bpf: Extract syscall wrapper (diff) | |
download | linux-dev-d084df3b7a4c49fb2abec55f8d512c51d643c408.tar.xz linux-dev-d084df3b7a4c49fb2abec55f8d512c51d643c408.zip |
libbpf: Fix the incorrect register read for syscalls on x86_64
Currently, rcx is read as the fourth parameter of syscall on x86_64.
But x86_64 Linux System Call convention uses r10 actually.
This commit adds the wrapper for users who want to access to
syscall params to analyze the user space.
Signed-off-by: Kenta Tada <Kenta.Tada@sony.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220124141622.4378-3-Kenta.Tada@sony.com
Diffstat (limited to 'tools/testing/selftests/bpf/progs/bpf_syscall_macro.c')
0 files changed, 0 insertions, 0 deletions