Re: [PATCH v5 4/5] perf metric: Add utilities to work on ids map.

2020-12-07 Thread Namhyung Kim
On Wed, Dec 2, 2020 at 4:40 PM Ian Rogers wrote: > > Add utilities to new/free an ids hashmap, as well as to union. Add > testing of the union. Unioning hashmaps will be used when parsing the > metric, if a value is known then the hashmap is unnecessary, otherwise > we need to union together all

[PATCH v5 4/5] perf metric: Add utilities to work on ids map.

2020-12-01 Thread Ian Rogers
Add utilities to new/free an ids hashmap, as well as to union. Add testing of the union. Unioning hashmaps will be used when parsing the metric, if a value is known then the hashmap is unnecessary, otherwise we need to union together all the event ids to compute their values for reporting.