Re: [PATCH] tools/power turbostat: Allow execution to continue after perf_l2_init() failure
From: Len Brown
Date: Fri Apr 10 2026 - 09:03:51 EST
Thank you for the patch, David, it is helpful.
I agree that turbostat should do its best to run properly when the
underlying kernel
doesn't have full support, and you found a configuration that I missed.
I'd like to understand how/why your kernel perf support is failing on alder lake
to be sure turbostat is coping the best it can.
If you can identify an upstream kernel version that fails this way,
that would be great.
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
Also, with your L2 patch applied, does turbostat still successfully
show the LLC stats?
thanks,
Len Brown, Intel Open Source Technology Center