diff options
| author | Ian Rogers <irogers@google.com> | 2025-11-14 14:05:45 -0800 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2025-11-19 17:49:45 -0800 |
| commit | 1a6b0deb2b71d6e94497a284b9babce80b18cc7c (patch) | |
| tree | 3d186819faab506f3161fac9d807a9be4498b961 /tools/perf/util | |
| parent | 36434959b6ea13d32343f4ec5fa3fb0d0120da2f (diff) | |
perf header: Switch "cpu" for find_core_pmu in caps feature writing
Writing currently fails on non-x86 and hybrid CPUs. Switch to the more
regular find_core_pmu that is normally used in this case. Tested on
hybrid alderlake system.
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/util')
| -rw-r--r-- | tools/perf/util/header.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index a2f808841b33..e69b271f8073 100644 --- a/tools/perf/util/header.c +++ b/tools/perf/util/header.c @@ -1560,7 +1560,7 @@ static int __write_pmu_caps(struct feat_fd *ff, struct perf_pmu *pmu, static int write_cpu_pmu_caps(struct feat_fd *ff, struct evlist *evlist __maybe_unused) { - struct perf_pmu *cpu_pmu = perf_pmus__find("cpu"); + struct perf_pmu *cpu_pmu = perf_pmus__find_core_pmu(); int ret; if (!cpu_pmu) |
