From: Ian Rogers Date: Fri, 14 Nov 2025 22:05:45 +0000 (-0800) Subject: perf header: Switch "cpu" for find_core_pmu in caps feature writing X-Git-Tag: v6.19-rc1~61^2~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a6b0deb2b71d6e94497a284b9babce80b18cc7c;p=thirdparty%2Flinux.git 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 Signed-off-by: Namhyung Kim --- diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index a2f808841b33a..e69b271f8073d 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)