On Thu, Jun 2, 2022 at 6:59 PM Yonghong Song <yhs@xxxxxx> wrote: > > 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. > > Signed-off-by: Yonghong Song <yhs@xxxxxx> > --- > tools/lib/bpf/btf.h | 5 ++ > tools/lib/bpf/btf_dump.c | 137 +++++++++++++++++++++++++++++---------- > 2 files changed, 108 insertions(+), 34 deletions(-) > LGTM, thanks for the fix! Acked-by: Andrii Nakryiko <andrii@xxxxxxxxxx> > diff --git a/tools/lib/bpf/btf.h b/tools/lib/bpf/btf.h > index c7e8b1fdfe24..dcb3f575a281 100644 > --- a/tools/lib/bpf/btf.h > +++ b/tools/lib/bpf/btf.h > @@ -566,6 +566,11 @@ static inline struct btf_enum64 *btf_enum64(const struct btf_type *t) > return (struct btf_enum64 *)(t + 1); > } [...]