Re: 'perf top' broken on intel hybrid systems

From: Leah Neukirchen
Date: Sat Dec 09 2023 - 12:14:16 EST



> The error is because the perf top always tries to open an event on the
> user_requested_cpus, which are all CPUs by default.
>
> Something as below should fix it. For hybrid, open a PMU event on an
> unsupported CPU should be error out.
>
> diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c

This fixes "perf top" on my i7-1355U. It would be great if you could
get this patch into upstream and stable branches.

Thanks,
--
Leah Neukirchen <leah@xxxxxxxx> https://leahneukirchen.org/