linux-stable/tools/lib
Andrii Nakryiko 6de0d0699f libbpf: Fix single-line struct definition output in btf_dump
[ Upstream commit 872aec4b5f ]

btf_dump APIs emit unnecessary tabs when emitting struct/union
definition that fits on the single line. Before this patch we'd get:

struct blah {<tab>};

This patch fixes this and makes sure that we get more natural:

struct blah {};

Fixes: 44a726c3f2 ("bpftool: Print newline before '}' for struct with padding only fields")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20221212211505.558851-2-andrii@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-04-20 12:10:26 +02:00
..
api
bpf libbpf: Fix single-line struct definition output in btf_dump 2023-04-20 12:10:26 +02:00
lockdep
perf perf tools: Fix segfault accessing sample_id xyarray 2022-04-27 13:53:46 +02:00
subcmd libsubcmd: Fix use-after-free for realloc(..., 0) 2022-02-23 12:01:02 +01:00
symbol
traceevent
argv_split.c
bitmap.c
ctype.c
find_bit.c
hweight.c
rbtree.c
str_error_r.c
string.c tools lib: Adopt memchr_inv() from kernel 2021-09-26 14:08:57 +02:00
vsprintf.c
zalloc.c