diff options
author | Andrii Nakryiko <[email protected]> | 2020-03-13 10:23:35 -0700 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2020-03-13 23:30:53 +0100 |
commit | b8ebce86ffe655ac15a841bba2d645105ffe3d38 (patch) | |
tree | 342c3e6a8f11df30291dafd552e2427846c67971 /drivers/usb/cdns3/cdns3-debug.h | |
parent | d121e1d34b72c4975ff0340901d926c0aaf98174 (diff) |
libbpf: Provide CO-RE variants of PT_REGS macros
Syscall raw tracepoints have struct pt_regs pointer as tracepoint's first
argument. After that, reading any of pt_regs fields requires bpf_probe_read(),
even for tp_btf programs. Due to that, PT_REGS_PARMx macros are not usable as
is. This patch adds CO-RE variants of those macros that use BPF_CORE_READ() to
read necessary fields. This provides relocatable architecture-agnostic pt_regs
field accesses.
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Martin KaFai Lau <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions