[PATCH 05/19] perf metric: Add macros for iterating map events

2020-07-29 Thread Jiri Olsa
Adding following macros to iterate events and metric: map_for_each_event(__pe, __idx, __map) - iterates over all pmu_events_map events map_for_each_metric(__pe, __idx, __map, __metric) - iterates over all metrics that match __metric argument and use it in metricgroup__add_metric

Re: [PATCH 05/19] perf metric: Add macros for iterating map events

2020-07-28 Thread Arnaldo Carvalho de Melo
Em Sun, Jul 19, 2020 at 02:46:12PM -0700, Ian Rogers escreveu: > On Sun, Jul 19, 2020 at 11:13 AM Jiri Olsa wrote: > > > > Adding following macros to iterate events and metric: > > map_for_each_event(__pe, __idx, __map) > > - iterates over all pmu_events_map events > >

Re: [PATCH 05/19] perf metric: Add macros for iterating map events

2020-07-26 Thread kajoljain
On 7/19/20 11:43 PM, Jiri Olsa wrote: > Adding following macros to iterate events and metric: > map_for_each_event(__pe, __idx, __map) > - iterates over all pmu_events_map events > map_for_each_metric(__pe, __idx, __map, __metric) > - iterates over all metrics that match __metric

Re: [PATCH 05/19] perf metric: Add macros for iterating map events

2020-07-19 Thread Ian Rogers
On Sun, Jul 19, 2020 at 11:13 AM Jiri Olsa wrote: > > Adding following macros to iterate events and metric: > map_for_each_event(__pe, __idx, __map) > - iterates over all pmu_events_map events > map_for_each_metric(__pe, __idx, __map, __metric) > - iterates over all metrics that match

[PATCH 05/19] perf metric: Add macros for iterating map events

2020-07-19 Thread Jiri Olsa
Adding following macros to iterate events and metric: map_for_each_event(__pe, __idx, __map) - iterates over all pmu_events_map events map_for_each_metric(__pe, __idx, __map, __metric) - iterates over all metrics that match __metric argument and use it in metricgroup__add_metric