diff options
author | Pu Lehui <pulehui@huawei.com> | 2024-08-31 04:19:32 +0000 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2024-09-04 17:06:06 -0700 |
commit | 9ab94078e868a45cbd23828b8377600b83a41fac (patch) | |
tree | 0300e1cd697e491014a45689f0ce1db2375cc028 /lib/atomic64.c | |
parent | e4db2a821b6cff4bd59c0efabdbfdd84ac6005c1 (diff) |
libbpf: Access first syscall argument with CO-RE direct read on arm64
Currently PT_REGS_PARM1 SYSCALL(x) is consistent with PT_REGS_PARM1_CORE
SYSCALL(x), which will introduce the overhead of BPF_CORE_READ(), taking
into account the read pt_regs comes directly from the context, let's use
CO-RE direct read to access the first system call argument.
Suggested-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Pu Lehui <pulehui@huawei.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Xu Kuohai <xukuohai@huawei.com>
Link: https://lore.kernel.org/bpf/20240831041934.1629216-3-pulehui@huaweicloud.com
Diffstat (limited to 'lib/atomic64.c')
0 files changed, 0 insertions, 0 deletions