Skip to content

Fix BTF-to-C converter's padding generation

Andrii Nakryiko bpf netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3libbpf: fix struct end padding in btf_dumptools/lib/bpf/btf_dump.c+7 -11 reply
2/3selftests/bpf: convert test_btf_dump into test_progs testtools/testing/selftests/bpf/Makefile tools/testing/selftests/bpf/prog_tests/btf_dump.c+35 -550 replies
3/3selftests/bpf: fix btf_dump padding test casetools/testing/selftests/bpf/progs/btf_dump_test_case_padding.c+4 -10 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchJohn Fastabend
1/3T-b
2/3
3/3

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/3] Fix BTF-to-C converter's padding generation

Fix BTF-to-C logic of handling padding at the end of a struct. Fix existing test that should have captured this. Also move test_btf_dump into a test_progs test to leverage common infrastructure.

Andrii Nakryiko (3):
libbpf: fix struct end padding in btf_dump selftests/bpf: convert test_btf_dump into test_progs test selftests/bpf: fix btf_dump padding test case

 tools/lib/bpf/btf_dump.c                      |  8 +-
 tools/testing/selftests/bpf/Makefile          |  2 +-
 .../btf_dump.c}                               | 88 +++++++------------
 .../bpf/progs/btf_dump_test_case_padding.c    |  5 +-
 4 files changed, 46 insertions(+), 57 deletions(-)
 rename tools/testing/selftests/bpf/{test_btf_dump.c => prog_tests/btf_dump.c} (51%)
Signature · 1 line
2.17.1