Re: [PATCH] tools/power turbostat: Allow execution to continue after perf_l2_init() failure
From: Len Brown
Date: Fri Apr 10 2026 - 14:10:28 EST
On Fri, Apr 10, 2026 at 12:06 PM David Arcari <darcari@xxxxxxxxxx> wrote:
> I'm using a Fedora kernel:
>
> vmlinuz-7.0.0-0.rc4.260320g0e4f8f1a3d08.40.eln155.x86_64
>
> And turbostat is:
>
> # turbostat -v
> turbostat version 2026.02.14 - Len Brown <lenb@xxxxxxxxxx>
>
> >
> > You can poke with "perf stat" as well, but this will depend on what
> > .json counter list is compiled into
> > your version of perf.
> >
> > probably a first sanity check would be if these commands for the LLC
> > and the L2 work:
> >
> > sudo perf stat -e cache-misses sleep 1
> > sudo perf stat -e L2_REQUEST.ALL sleep 1
>
> # sudo perf stat -e cache-misses sleep 1
>
> Performance counter stats for 'sleep 1':
>
> <not supported> cpu_atom/cache-misses/
I think this should work. There may be an issue either with
the perf utility or the perf kernel support on that system.
I'll cc Dapeng. Already the weekend where he is, but maybe he
can give us some perf insight next week.
thx,
-Len