libbpf: use func name when pinning programs with LIBBPF_STRICT_SEC_NAME
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest3 patches 2 repliesIn review
- v43 patches 3 repliesSuperseded
- v33 patches 3 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 3 patches | 5 replies | Superseded | |
| v1 | 3 patches | 8 replies | Superseded |
Changes in v5 from the cover letter
- get rid of error when retrying with '/' (Quentin Monnet)
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | libbpf: use func name when pinning programs with LIBBPF_STRICT_SEC_NAMEtools/ tools/ | +14 | 0 replies | |
| 2/3 | bpftool: conditionally append / to the progtypetools/ tools/ | +23 | 1 reply | |
| 3/3 | selftests/bpf: fix flow dissector teststools/ tools/ tools/ | +18 | 0 replies |
Reviews trailers per patch
2 of 3 patches have a Reviewed-by or Acked-by.
| Patch | Quentin Monnet |
|---|---|
| 1/3 | R-b |
| 2/3 | R-b |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH bpf-next v5 0/3] libbpf: use func name when pinning programs with LIBBPF_STRICT_SEC_NAME
Commit 15669e1dcd75 ("selftests/bpf: Normalize all the rest SEC() uses") broke flow dissector tests. With the strict section names, bpftool isn't able to pin all programs of the objects (all section names are the same now). To bring it back to life let's do the following:
- teach libbpf to pin by func name with LIBBPF_STRICT_SEC_NAME
- enable strict mode in bpftool (breaking cli change)
- fix custom flow_dissector loader to use strict mode
- fix flow_dissector tests to use new pin names (func vs sec)
v5:
- get rid of error when retrying with '/' (Quentin Monnet)
v4:
- fix comment spelling (Quentin Monnet)
- retry progtype without / (Quentin Monnet)
v3:
- clarify program pinning in LIBBPF_STRICT_SEC_NAME,
for real this time (Andrii Nakryiko)
- fix possible segfault in __bpf_program__pin_name (Andrii Nakryiko)
v2:
- add github issue (Andrii Nakryiko)
- remove sec_name from bpf_program.pin_name comment (Andrii Nakryiko)
- add cover letter (Andrii Nakryiko)
Stanislav Fomichev (3):
libbpf: use func name when pinning programs with
LIBBPF_STRICT_SEC_NAME
bpftool: conditionally append / to the progtype selftests/bpf: fix flow dissector tests
tools/bpf/bpftool/main.c | 4 +++ tools/bpf/bpftool/prog.c | 35 ++++++++++--------- tools/lib/bpf/libbpf.c | 13 +++++-- tools/lib/bpf/libbpf_legacy.h | 3 ++ .../selftests/bpf/flow_dissector_load.c | 18 ++++++---- .../selftests/bpf/flow_dissector_load.h | 10 ++---- .../selftests/bpf/test_flow_dissector.sh | 10 +++--- 7 files changed, 55 insertions(+), 38 deletions(-)
Signature · 1 line
2.33.0.1079.g6e70778dc9-goog