selftests/bpf: Test btf dump for struct with padding only fields
stable inclusion from stable-v5.10.177 commit b9f7422dd94a6ec5572a3e895157ec1dad2952a7 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I88YNP Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b9f7422dd94a6ec5572a3e895157ec1dad2952a7 -------------------------------- [ Upstream commit d503f117 ] Structures with zero regular fields but some padding constitute a special case in btf_dump.c:btf_dump_emit_struct_def with regards to newline before closing '}'. Signed-off-by:Eduard Zingerman <eddyz87@gmail.com> Signed-off-by:
Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20221001104425.415768-2-eddyz87@gmail.com Stable-dep-of: ea2ce1ba ("libbpf: Fix BTF-to-C converter's padding logic") Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment