bpftool: add C output format option to btf dump subcommand
authorAndrii Nakryiko <andriin@fb.com>
Fri, 24 May 2019 18:59:05 +0000 (11:59 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 24 May 2019 21:05:58 +0000 (14:05 -0700)
commit2119f2189df1836d28909fe5a90b3d93638ecf65
tree360b34b9ce2a747773a307d859743c5a42a9a88f
parent2d2a3ad872f884d618f11e1a2028cff862503dcd
bpftool: add C output format option to btf dump subcommand

Utilize new libbpf's btf_dump API to emit BTF as a C definitions.

Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/bpf/bpftool/btf.c