Re: [PATCH v3 perf,bpf 08/11] perf, bpf: save btf information as headers to perf.data

From: Jiri Olsa
Date: Sun Feb 17 2019 - 18:05:46 EST


On Fri, Feb 15, 2019 at 01:53:51PM -0800, Song Liu wrote:

SNIP

> struct header_print_data {
> diff --git a/tools/perf/util/header.h b/tools/perf/util/header.h
> index 0785c91b4c3a..ba51d8e43c53 100644
> --- a/tools/perf/util/header.h
> +++ b/tools/perf/util/header.h
> @@ -40,6 +40,7 @@ enum {
> HEADER_MEM_TOPOLOGY,
> HEADER_CLOCKID,
> HEADER_BPF_PROG_INFO,
> + HEADER_BTF,

hu, could we maybe prefix all the bpf related features with BPF_ ?

jirka

> HEADER_LAST_FEATURE,
> HEADER_FEAT_BITS = 256,
> };
> --
> 2.17.1
>