]> git.baikalelectronics.ru Git - kernel.git/commit
tools/bpftool: Emit name <anon> for anonymous BTFs
authorAndrii Nakryiko <andrii@kernel.org>
Wed, 2 Dec 2020 06:52:41 +0000 (22:52 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 3 Dec 2020 18:17:26 +0000 (10:17 -0800)
commit9751376bbf1fde95586c84dab0acbbf6a1705419
tree6af2efee4c96712bc438663f80d3369b25dc3e23
parentd16914968aedfbb0cebaad84bb67195fc3f04604
tools/bpftool: Emit name <anon> for anonymous BTFs

For consistency of output, emit "name <anon>" for BTFs without the name. This
keeps output more consistent and obvious.

Suggested-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20201202065244.530571-2-andrii@kernel.org
tools/bpf/bpftool/btf.c