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%) -- 2.17.1