OSDN Git Service

Merge branch 'bpf: remove bpf_load loader completely'
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 27 Nov 2020 03:33:36 +0000 (19:33 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 27 Nov 2020 03:33:36 +0000 (19:33 -0800)
commit830382e4ccb5e5d9164fcd28854238ef5f5a1751
tree14669a4abdeb23c6c940912b9f6213cba2cfb714
parentfb3558127cb62ba2dea9e3d0efa1bb1d7e5eee2a
parentceb5dea5654354fb4e6e393c99f1d0bf4debab0e
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>