bpftool: Support dumping BTF VAR's "extern" linkage
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 23 Apr 2021 18:13:31 +0000 (11:13 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 23 Apr 2021 21:05:25 +0000 (14:05 -0700)
commit0dd7e456bb049ec2b5a9e00250918b346c0d17d5
tree91669eb0039f4c52f4448c660b1651f048dcd612
parentb1b9f535c48f5c20a0f6c218c11199b64347c0a6
bpftool: Support dumping BTF VAR's "extern" linkage

Add dumping of "extern" linkage for BTF VAR kind. Also shorten
"global-allocated" to "global" to be in line with FUNC's "global".

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210423181348.1801389-2-andrii@kernel.org
tools/bpf/bpftool/btf.c