]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
selftests/bpf: Fix btf_dump padding test case
authorAndrii Nakryiko <andriin@fb.com>
Tue, 8 Oct 2019 23:10:08 +0000 (16:10 -0700)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 29 Jan 2020 05:00:31 +0000 (00:00 -0500)
commit9b296824c39afc9089bf8f91eb372b7b50870692
tree8f35611a51a9d56973acbdc6542150c1292e6cfd
parent87599757360e3e25dccc753dd0dca4b8ccaa02c5
selftests/bpf: Fix btf_dump padding test case

BugLink: https://bugs.launchpad.net/bugs/1860490
[ Upstream commit 76790c7c66ccc8695afc75e73f54c0ca86267ed2 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
tools/testing/selftests/bpf/progs/btf_dump_test_case_padding.c