Commits
Joakim Zhang committed b8552bd2eaf
tools: perf: metricgroup: add metricgroup for each PMU If we want to add/print metricgroup, we need get pmu evets map via CPUID string, so it is important to get CPUID string. Now in metricgroup, it passes NULL to perf_pmu__find_map(), will never get the pmu events map on ARM64 platforms, due to get_cpuid_str() implement for ARM64 depending on the cpu info of PMU. The CPUID string will not be same on all CPUs on heterogeneous platforms, adding provision(using pmu->cpus) to find cpuid string from associated CPUs of PMU. The implement of get_cpuid_str() for ARM64 has taken heterogeneous platforms into consideration, but metricgroup has not. So it is necessory to add heterogeneous support for metricgroup. When we want to add/print metricgroup, need iterator each PMU then pass the perf_pmu struct to perf_pmu__find_map(). Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>