Merge branch 'bpf: remove bpf_load loader completely'
"Daniel T. says:
====================
Numerous refactoring that rewrites BPF programs written with bpf_load
to use the libbpf loader was finally completed, resulting in BPF
programs using bpf_load within the kernel being completely no longer
present.
This patchset refactors remaining bpf programs with libbpf and
completely removes bpf_load, an outdated bpf loader that is difficult
to keep up with the latest kernel BPF and causes confusion.
Changes in v2:
- drop 'move tracing helpers to trace_helper' patch
- add link pinning to prevent cleaning up on process exit
- add static at global variable and remove unused variable
- change to destroy link even after link__pin()
- fix return error code on exit
- merge commit with changing Makefile
Changes in v3:
- cleanup bpf_link, bpf_object and cgroup fd both on success and error
====================
Signed-off-by:
Andrii Nakryiko <andrii@kernel.org>
No related branches found
No related tags found
Showing
- samples/bpf/.gitignore 3 additions, 0 deletionssamples/bpf/.gitignore
- samples/bpf/Makefile 9 additions, 11 deletionssamples/bpf/Makefile
- samples/bpf/bpf_load.c 0 additions, 667 deletionssamples/bpf/bpf_load.c
- samples/bpf/bpf_load.h 0 additions, 57 deletionssamples/bpf/bpf_load.h
- samples/bpf/do_hbm_test.sh 14 additions, 18 deletionssamples/bpf/do_hbm_test.sh
- samples/bpf/hbm.c 59 additions, 52 deletionssamples/bpf/hbm.c
- samples/bpf/hbm_kern.h 1 addition, 1 deletionsamples/bpf/hbm_kern.h
- samples/bpf/ibumad_kern.c 13 additions, 13 deletionssamples/bpf/ibumad_kern.c
- samples/bpf/ibumad_user.c 54 additions, 17 deletionssamples/bpf/ibumad_user.c
- samples/bpf/lwt_len_hist.sh 2 additions, 0 deletionssamples/bpf/lwt_len_hist.sh
- samples/bpf/task_fd_query_user.c 74 additions, 27 deletionssamples/bpf/task_fd_query_user.c
- samples/bpf/test_cgrp2_sock2.c 44 additions, 17 deletionssamples/bpf/test_cgrp2_sock2.c
- samples/bpf/test_cgrp2_sock2.sh 17 additions, 4 deletionssamples/bpf/test_cgrp2_sock2.sh
- samples/bpf/test_lwt_bpf.sh 0 additions, 0 deletionssamples/bpf/test_lwt_bpf.sh
- samples/bpf/test_overhead_user.c 59 additions, 23 deletionssamples/bpf/test_overhead_user.c
- samples/bpf/xdp2skb_meta_kern.c 1 addition, 1 deletionsamples/bpf/xdp2skb_meta_kern.c
Loading
Please register or sign in to comment