Skip to content

libbpf: Streamline internal BPF program sections handling

Andrii Nakryiko bpf 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4selftests/bpf: update selftests to always provide "struct_ops" SECtools/testing/selftests/bpf/progs/bpf_cubic.c+3 -91 reply
2/4libbpf: ensure BPF prog types are set before relocationstools/lib/bpf/libbpf.c+51 -421 reply
3/4libbpf: simplify BPF program auto-attach codetools/lib/bpf/libbpf.c+22 -391 reply
4/4libbpf: minimize explicit iterator of section definition arraytools/lib/bpf/libbpf.c+19 -271 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchMartin KaFai Lau
1/4A-b
2/4A-b
3/4A-b
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH bpf-next 0/4] libbpf: Streamline internal BPF program sections handling

This small patch set performs internal refactorings around libbpf BPF program ELF section definitions' handling. This is preparatory changes for further changes around making libbpf BPF program section handling more strict but also pluggable and customizable, as part of the libbpf 1.0 effort. See individual patches for details.

Andrii Nakryiko (4):
selftests/bpf: update selftests to always provide "struct_ops" SEC
libbpf: ensure BPF prog types are set before relocations
libbpf: simplify BPF program auto-attach code
libbpf: minimize explicit iterator of section definition array

 tools/lib/bpf/libbpf.c                        | 200 ++++++++----------
 tools/testing/selftests/bpf/progs/bpf_cubic.c |  12 +-
 2 files changed, 95 insertions(+), 117 deletions(-)
Signature · 1 line
2.30.2