LINK_CREATE support for fentry/tp_btf/lsm attachments
Status from this message: This series was applied to bpf/bpf-next.git (master)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 3 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | bpf: allow attach TRACING programs through LINK_CREATE commandkernel/ | +56 | 1 reply | Applied |
| 2/3 | libbpf: teach bpf_link_create() to fallback to bpf_raw_tracepoint_open()tools/ tools/ | +34 | 1 reply | Applied |
| 3/3 | selftests/bpf: switch fexit_stress to bpf_link_create() APItools/ | +1 | 1 reply | Applied |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Kuifeng Lee |
|---|---|
| 1/3 | R-b |
| 2/3 | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH bpf-next 0/3] LINK_CREATE support for fentry/tp_btf/lsm attachments
Wire up ability to attach bpf_link-based fentry/fexit/fmod_ret, tp_btf (BTF-aware raw tracepoints), and LSM programs through universal LINK_CREATE command, in addition to current BPF_RAW_TRACEPOINT_OPEN.
Teach libbpf to handle this LINK_CREATE/BPF_RAW_TRACEPOINT_OPEN split on older kernels transparently in universal low-level bpf_link_create() API for users convenience.
Patch #3 converts fexit_stress selftest to bpf_link_create().
libbpf CI will be testing this fallback logic on older kernels.
Andrii Nakryiko (3):
bpf: allow attach TRACING programs through LINK_CREATE command
libbpf: teach bpf_link_create() to fallback to
bpf_raw_tracepoint_open()
selftests/bpf: switch fexit_stress to bpf_link_create() API
kernel/bpf/syscall.c | 110 +++++++++--------- tools/lib/bpf/bpf.c | 34 +++++- tools/lib/bpf/libbpf.c | 3 +- .../selftests/bpf/prog_tests/fexit_stress.c | 2 +- 4 files changed, 91 insertions(+), 58 deletions(-)
Signature · 1 line
2.30.2