third_party_libbpf/include/uapi/linux
Alexei Starovoitov d785a21c71 bpf: Pass a set of bpf_core_relo-s to prog_load command.
struct bpf_core_relo is generated by llvm and processed by libbpf.
It's a de-facto uapi.
With CO-RE in the kernel the struct bpf_core_relo becomes uapi de-jure.
Add an ability to pass a set of 'struct bpf_core_relo' to prog_load command
and let the kernel perform CO-RE relocations.

Note the struct bpf_line_info and struct bpf_func_info have the same
layout when passed from LLVM to libbpf and from libbpf to the kernel
except "insn_off" fields means "byte offset" when LLVM generates it.
Then libbpf converts it to "insn index" to pass to the kernel.
The struct bpf_core_relo's "insn_off" field is always "byte offset".

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211201181040.23337-6-alexei.starovoitov@gmail.com
2021-12-10 14:03:13 -08:00
..
bpf_common.h mirror uapi/linux/bpf_common.h file (#2) 2018-10-12 12:57:55 -07:00
bpf.h bpf: Pass a set of bpf_core_relo-s to prog_load command. 2021-12-10 14:03:13 -08:00
btf.h bpf: Support BTF_KIND_TYPE_TAG for btf_type_tag attributes 2021-11-12 23:46:09 -08:00
if_link.h ipv6: add IFLA_INET6_RA_MTU to expose mtu value 2021-09-17 14:03:39 -07:00
if_xdp.h xsk: Add new statistics 2020-07-28 14:03:17 -07:00
netlink.h sync with latest bpf-next (#6) 2019-01-03 12:44:33 -08:00
pkt_cls.h include: initial sync of pkt_cls.h and pkt_sched.h 2021-07-16 14:22:07 -07:00
pkt_sched.h include: initial sync of pkt_cls.h and pkt_sched.h 2021-07-16 14:22:07 -07:00