tools/bpftool: Add BTF_KIND_FLOAT support
authorIlya Leoshkevich <iii@linux.ibm.com>
Fri, 26 Feb 2021 20:22:50 +0000 (21:22 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 5 Mar 2021 01:58:15 +0000 (17:58 -0800)
commit737e0f919a8d2a313618d8ac67d50e8223bc5d74
tree17e59f34933d9ffc778f46ce7e4dcb291db745c6
parent22541a9eeb0d968c133aaebd95fa59da3208e705
tools/bpftool: Add BTF_KIND_FLOAT support

Only dumping support needs to be adjusted, the code structure follows
that of BTF_KIND_INT. Example plain and JSON outputs:

    [4] FLOAT 'float' size=4
    {"id":4,"kind":"FLOAT","name":"float","size":4}

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210226202256.116518-5-iii@linux.ibm.com
tools/bpf/bpftool/btf.c
tools/bpf/bpftool/btf_dumper.c