Skip to content
Commit d084df3b authored by Kenta Tada's avatar Kenta Tada Committed by Andrii Nakryiko
Browse files

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: default avatarKenta Tada <Kenta.Tada@sony.com>
Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220124141622.4378-3-Kenta.Tada@sony.com
parent 78a20541
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment