Re: [PATCH 3/3] tools/power turbostat: allow turbostat to work when aperf is not available
From: Len Brown
Date: Mon Dec 01 2025 - 14:53:47 EST
> ...add_msr_perf_counter() returns -1
good. and then add_msr_counter() succeeds because...
> rdmsr returns zero for MSR_IA32_APERF and MSR_IA32_MPERF.
Your patch is a good suggestion -- though it checks for APERF only and
not for MPERF.
We already ran CPUID and cleared has_aperf, so I'm thinking we should
be heading this off earlier. Let me send you a test patch later today.
thanks,
Len Brown, Intel Open Source Technology Center