[PATCH 0/4] Several perf metrics topdown related fixes

From: kan . liang
Date: Fri May 13 2022 - 11:16:35 EST


From: Kan Liang <kan.liang@xxxxxxxxxxxxxxx>

The Patch 1 is a follow-up patch for Ian's ("Fix topdown event weak
grouping")[1].

The patch 2 is to fix the perf metrics topdown events in a mixed group.
It reuses the function introduced in [1].
Patch 1 & 2 should be on top of [1].

The patch 3 & 4 are to fix other perf metrics topdown related issues.
They can be merged separately.

[1]: https://lore.kernel.org/all/20220512061308.1152233-1-irogers@xxxxxxxxxx/

Kan Liang (4):
perf evsel: Fixes topdown events in a weak group for the hybrid
platform
perf stat: Always keep perf metrics topdown events in a group
perf parse-events: Support different format of the topdown event name
perf parse-events: Move slots event for hybrid platforms too

tools/perf/arch/x86/util/evlist.c | 7 ++++---
tools/perf/arch/x86/util/evsel.c | 5 +++--
tools/perf/arch/x86/util/topdown.c | 18 ++++++++++++++++++
tools/perf/arch/x86/util/topdown.h | 7 +++++++
tools/perf/builtin-stat.c | 7 +++++--
5 files changed, 37 insertions(+), 7 deletions(-)
create mode 100644 tools/perf/arch/x86/util/topdown.h

--
2.35.1