third_party_libbpf/include/uapi/linux
Alexei Starovoitov c6c86a53f2 libbpf: Add support for program extensions
Add minimal support for program extensions. bpf_object_open_opts() needs to be
called with attach_prog_fd = target_prog_fd and BPF program extension needs to
have in .c file section definition like SEC("freplace/func_to_be_replaced").
libbpf will search for "func_to_be_replaced" in the target_prog_fd's BTF and
will pass it in attach_btf_id to the kernel. This approach works for tests, but
more compex use case may need to request function name (and attach_btf_id that
kernel sees) to be more dynamic. Such API will be added in future patches.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://lore.kernel.org/bpf/20200121005348.2769920-3-ast@kernel.org
2020-01-24 14:08:27 -08:00
..
bpf_common.h mirror uapi/linux/bpf_common.h file (#2) 2018-10-12 12:57:55 -07:00
bpf.h libbpf: Add support for program extensions 2020-01-24 14:08:27 -08:00
btf.h libbpf: Sanitize global functions 2020-01-10 11:15:12 -08:00
if_link.h net: macsec: introduce the macsec_context structure 2020-01-24 14:08:27 -08:00
if_xdp.h libbpf: add flags to umem config 2019-09-26 13:29:16 -07:00
netlink.h sync with latest bpf-next (#6) 2019-01-03 12:44:33 -08:00