diff options
author | Andrii Nakryiko <andriin@fb.com> | 2019-10-08 16:10:08 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-10-09 15:38:36 -0700 |
commit | 76790c7c66ccc8695afc75e73f54c0ca86267ed2 (patch) | |
tree | f57b2f1c024d8461b12d43dc66fc0e7e1de13af2 /tools/testing | |
parent | 6e05abc9abd5dc4dc9e6b98e01564f4a2659f0fe (diff) | |
download | linux-76790c7c66ccc8695afc75e73f54c0ca86267ed2.tar.bz2 |
selftests/bpf: Fix btf_dump padding test case
Existing padding test case for btf_dump has a good test that was
supposed to test padding generation at the end of a struct, but its
expected output was specified incorrectly. Fix this.
Fixes: 2d2a3ad872f8 ("selftests/bpf: add btf_dump BTF-to-C conversion tests")
Reported-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191008231009.2991130-4-andriin@fb.com
Diffstat (limited to 'tools/testing')
-rw-r--r-- | tools/testing/selftests/bpf/progs/btf_dump_test_case_padding.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/progs/btf_dump_test_case_padding.c b/tools/testing/selftests/bpf/progs/btf_dump_test_case_padding.c index 3a62119c7498..35c512818a56 100644 --- a/tools/testing/selftests/bpf/progs/btf_dump_test_case_padding.c +++ b/tools/testing/selftests/bpf/progs/btf_dump_test_case_padding.c @@ -62,6 +62,10 @@ struct padded_a_lot { * long: 64; * long: 64; * int b; + * long: 32; + * long: 64; + * long: 64; + * long: 64; *}; * */ @@ -95,7 +99,6 @@ struct zone_padding { struct zone { int a; short b; - short: 16; struct zone_padding __pad__; }; |