[PATCH v2 0/3] perf header: Support HYBRID_TOPOLOGY and hybrid CPU_PMU_CAPS
From: Jin Yao
Date: Fri May 07 2021 - 00:00:14 EST
AlderLake uses a hybrid architecture utilizing Golden Cove cores
(core cpu) and Gracemont cores (atom cpu). It would be useful to let user
know the hybrid topology, the HYBRID_TOPOLOGY feature in header indicates
which cpus are core cpus, and which cpus are atom cpus.
On hybrid platform, it may have several cpu pmus, such as, "cpu_core" and
"cpu_atom". The CPU_PMU_CAPS feature in perf header is improved to support
multiple cpu pmus.
v2:
---
- In "perf header: Support HYBRID_TOPOLOGY feature", don't use the n->map
to print the cpu list, just use n->cpus.
- Separate hybrid CPU_PMU_CAPS support into two patches:
perf header: Write hybrid CPU_PMU_CAPS
perf header: Process hybrid CPU_PMU_CAPS
- Add some words to perf.data-file-format.txt for HYBRID_TOPOLOGY and
hybrid CPU_PMU_CAPS.
Jin Yao (3):
perf header: Support HYBRID_TOPOLOGY feature
perf header: Write hybrid CPU_PMU_CAPS
perf header: Process hybrid CPU_PMU_CAPS
.../Documentation/perf.data-file-format.txt | 20 ++
tools/perf/util/cputopo.c | 80 ++++++
tools/perf/util/cputopo.h | 13 +
tools/perf/util/env.c | 12 +
tools/perf/util/env.h | 18 +-
tools/perf/util/header.c | 269 ++++++++++++++++--
tools/perf/util/header.h | 1 +
tools/perf/util/pmu-hybrid.h | 11 +
8 files changed, 400 insertions(+), 24 deletions(-)
--
2.17.1