libbpf: Add enum64 support for btf_dump
authorYonghong Song <yhs@fb.com>
Tue, 7 Jun 2022 06:26:31 +0000 (23:26 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 7 Jun 2022 17:20:43 +0000 (10:20 -0700)
commitd90ec262b35bb6d30ae621dc15889638ba4c02be
treef39297c2ff4eceb38bff46acb251395e62f8e91e
parent2ef2026349cf388b25601a094e99542ed536fde3
libbpf: Add enum64 support for btf_dump

Add enum64 btf dumping support. For long long and unsigned long long
dump, suffixes 'LL' and 'ULL' are added to avoid compilation errors
in some cases.

Acked-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/r/20220607062631.3720526-1-yhs@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/lib/bpf/btf.h
tools/lib/bpf/btf_dump.c