diff options
| author | Alexei Starovoitov <ast@kernel.org> | 2026-08-29 18:27:00 -0700 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-08-29 18:27:07 -0700 |
| commit | fbc547151dbcd9b5eee54d6b29e924c760039638 (patch) | |
| tree | bee18b3c57a19dba7695abeb25f017c9dd83fd85 /tools/lib/python/kdoc | |
| parent | 776c86a3e72265bb2e71d515995fec0992a715a8 (diff) | |
| parent | ff01f88a91368c264efb071c13f2b27b4d5c1d2b (diff) | |
| download | linux-next-fbc547151dbcd9b5eee54d6b29e924c760039638.tar.gz linux-next-fbc547151dbcd9b5eee54d6b29e924c760039638.zip | |
Merge branch 'bpftool-selftests-add-tests-for-c-dump-and-fix-a-dropped-type'
Ihor Solodrai says:
====================
bpftool, selftests: Add tests for C dump and fix a dropped type
"bpftool btf dump format c" generates the vmlinux.h that BPF programs
are built against, and it has no direct test coverage. Building
against the header is not a substitute for testing it, nothing a
compiler accepts would break the build.
Add selftests targeting C dump in particular.
While we are here, refactor btf_dump selftests to use a new
compare_text_to_expected() helper and become more efficient.
Fix a bug in bpftool dump that dropped a type when sorting.
---
v1->v2:
* new patches (#1-#3) introducing compare_text_to_expected() helper
and refactoring btf_dump selftests
* bpftool dump selftest compares the output to the expected files
exactly (Eduard)
* use VALIDATE_RAW_BTF macro in the new test (Eduard)
* drop v1 patch #4 ("selftests/bpf: Check that sorting preserves
types in bpftool dump") as it became unnecessary
* nit in the bpftool fix (Andrii)
v1: https://lore.kernel.org/bpf/20260820000627.3826188-1-ihor.solodrai@linux.dev/
====================
Link: https://patch.msgid.link/20260828215207.3105313-1-ihor.solodrai@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions
