-
- Downloads
libbpf: Add support for freplace attachment in bpf_link_create
This adds support for supplying a target btf ID for the bpf_link_create() operation, and adds a new bpf_program__attach_freplace() high-level API for attaching freplace functions with a target. Signed-off-by:Toke Høiland-Jørgensen <toke@redhat.com> Signed-off-by:
Alexei Starovoitov <ast@kernel.org> Acked-by:
Andrii Nakryiko <andriin@fb.com> Link: https://lore.kernel.org/bpf/160138355387.48470.18026176785351166890.stgit@toke.dk
Showing
- tools/lib/bpf/bpf.c 15 additions, 3 deletionstools/lib/bpf/bpf.c
- tools/lib/bpf/bpf.h 2 additions, 1 deletiontools/lib/bpf/bpf.h
- tools/lib/bpf/libbpf.c 39 additions, 5 deletionstools/lib/bpf/libbpf.c
- tools/lib/bpf/libbpf.h 3 additions, 0 deletionstools/lib/bpf/libbpf.h
- tools/lib/bpf/libbpf.map 1 addition, 0 deletionstools/lib/bpf/libbpf.map
Loading
Please register or sign in to comment