]> git.hungrycats.org Git - linux/commit
libbpf: Access first syscall argument with CO-RE direct read on s390
authorPu Lehui <pulehui@huawei.com>
Sat, 31 Aug 2024 04:19:31 +0000 (04:19 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 5 Sep 2024 00:05:30 +0000 (17:05 -0700)
commite4db2a821b6cff4bd59c0efabdbfdd84ac6005c1
tree8b4d1d8e0deea1170be101f5e1114b2cce1cf4ae
parenteff5b5fffc1d39fb9e5e66d6aa4ed3fcb109caac
libbpf: Access first syscall argument with CO-RE direct read on s390

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>
Link: https://lore.kernel.org/bpf/20240831041934.1629216-2-pulehui@huaweicloud.com
tools/lib/bpf/bpf_tracing.h