Re: [PATCH] perf metric: Code cleanup with map_for_each_event()

2020-09-17 Thread liwei (GF)
Hi Namhyung, On 2020/9/17 13:19, Namhyung Kim wrote: > Hello, > > On Thu, Sep 17, 2020 at 11:45 AM Wei Li wrote: >> >> Since we have introduced map_for_each_event() to walk the 'pmu_events_map', >> clean up metricgroup__print() and metricgroup__has_metric() with it. >> >> Signed-off-by: Wei Li

Re: [PATCH] perf metric: Code cleanup with map_for_each_event()

2020-09-16 Thread Namhyung Kim
Hello, On Thu, Sep 17, 2020 at 11:45 AM Wei Li wrote: > > Since we have introduced map_for_each_event() to walk the 'pmu_events_map', > clean up metricgroup__print() and metricgroup__has_metric() with it. > > Signed-off-by: Wei Li Acked-by: Namhyung Kim A nit-pick below: > --- > tools/perf

[PATCH] perf metric: Code cleanup with map_for_each_event()

2020-09-16 Thread Wei Li
Since we have introduced map_for_each_event() to walk the 'pmu_events_map', clean up metricgroup__print() and metricgroup__has_metric() with it. Signed-off-by: Wei Li --- tools/perf/util/metricgroup.c | 33 + 1 file changed, 13 insertions(+), 20 deletions(-) diff