Re: [PATCH v5 perf,bpf 09/15] perf, bpf: save btf information as headers to perf.data

2019-03-04 Thread Jiri Olsa
On Wed, Feb 27, 2019 at 09:06:37PM -0800, Song Liu wrote: SNIP > > +static int process_bpf_btf(struct feat_fd *ff, void *data __maybe_unused) > +{ > + struct perf_env *env = >ph->env; > + u32 count, i; > + > + if (do_read_u32(ff, )) > + return -1; > + > +

[PATCH v5 perf,bpf 09/15] perf, bpf: save btf information as headers to perf.data

2019-02-27 Thread Song Liu
This patch enables perf-record to save btf information as headers to perf.data A new header type HEADER_BPF_BTF is introduced for this data. Signed-off-by: Song Liu --- tools/perf/util/header.c | 108 ++- tools/perf/util/header.h | 1 + 2 files changed, 108