Skip to content

Modernize resolve_btfids selftest

Ihor Solodrai bpf 2 versions – Applied

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 · linked by author and title

  1. v2 Latest4 patches 1 replyApplied 4/4
  2. v14 patches 6 repliesSuperseded

Changes in v2 from the cover letter

* add another kfunc set in reverse order and check_kfunc_set() helper to ensure proper testing of BTF ID sort (Eduard, patch #4)
* nit: restore a dropped break (Eduard, patch #2)
v1: https://lore.kernel.org/bpf/[email protected]/

Patches in v2 All 4 applied

#Subject and filesSizeRepliesApplied
1/4tools/bpf: Sync btf_ids.h to toolstools/include/linux/btf_ids.h+73 -50 repliesApplied
2/4selftests/bpf: Modernize resolve_btfids test scaffoldingtools/testing/selftests/bpf/prog_tests/resolve_btfids.c+20 -390 repliesApplied
3/4selftests/bpf: Fix resolve_btfids test reads of BTF ID sets in PIE buildstools/testing/selftests/bpf/prog_tests/resolve_btfids.c+24 -50 repliesApplied
4/4selftests/bpf: Add kfunc set test to resolve_btfidstools/testing/selftests/bpf/prog_tests/resolve_btfids.c tools/testing/selftests/bpf/progs/btf_data.c+82 -71 replyApplied

Reviews trailers per patch

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

PatchEmil TsalapatisEduard ZingermanJiri OlsaAndrii Nakryiko
1/4R-b A-b A-b
2/4R-b A-b A-b
3/4R-b A-b A-b
4/4R-b A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCH bpf-next v2 0/4] Modernize resolve_btfids selftest

This series updates resolve_btfids selftests to use latest selftest helpers API and add kfunc set testing.

This series was split from a bigger series [1]. It's general selftest improvements that don't have to be entangled with resolve_btfids development, and makes the main series a bit smaller.

[1] https://lore.kernel.org/bpf/[email protected]/

---

v1->v2:
* add another kfunc set in reverse order and check_kfunc_set() helper to ensure proper testing of BTF ID sort (Eduard, patch #4)
* nit: restore a dropped break (Eduard, patch #2)
v1: https://lore.kernel.org/bpf/[email protected]/

v0->v1:
* various nits from Jiri, Andrii and Emil
* in patch #3 (that adds gcc pragma) definitions are moved such that .local BTF_ID_* containers are grouped together and we have a single pragma scope

---

Ihor Solodrai (4):
tools/bpf: Sync btf_ids.h to tools
selftests/bpf: Modernize resolve_btfids test scaffolding selftests/bpf: Fix resolve_btfids test reads of BTF ID sets in PIE
builds
selftests/bpf: Add kfunc set test to resolve_btfids

 tools/include/linux/btf_ids.h                 |  78 ++++++++-
 .../selftests/bpf/prog_tests/resolve_btfids.c | 159 ++++++++++++------
 tools/testing/selftests/bpf/progs/btf_data.c  |  10 ++
 3 files changed, 195 insertions(+), 52 deletions(-)
Signature · 1 line
2.54.0