Re: [PATCH 1/2] perf util: move bperf definitions to a libperf header

2021-04-06 Thread Song Liu
> On Apr 6, 2021, at 7:21 AM, Jiri Olsa wrote: > > On Fri, Apr 02, 2021 at 05:29:37PM -0700, Song Liu wrote: >> By following the same protocol, other tools can share hardware PMCs with >> perf. Move perf_event_attr_map_entry and BPERF_DEFAULT_ATTR_MAP_PATH to >> bperf.h for other tools to use.

Re: [PATCH 1/2] perf util: move bperf definitions to a libperf header

2021-04-06 Thread Jiri Olsa
On Fri, Apr 02, 2021 at 05:29:37PM -0700, Song Liu wrote: > By following the same protocol, other tools can share hardware PMCs with > perf. Move perf_event_attr_map_entry and BPERF_DEFAULT_ATTR_MAP_PATH to > bperf.h for other tools to use. hi, so is this necessary for some other tool now? > > A

[PATCH 1/2] perf util: move bperf definitions to a libperf header

2021-04-02 Thread Song Liu
By following the same protocol, other tools can share hardware PMCs with perf. Move perf_event_attr_map_entry and BPERF_DEFAULT_ATTR_MAP_PATH to bperf.h for other tools to use. Also add bperf_attr_map_compatible() to check whether existing attr_map is compatible with current perf binary. Signed-o