linux/tools/power/x86
David Arcari ba893caead tools/power turbostat: Allow execution to continue after perf_l2_init() failure
Currently, if perf_l2_init() fails turbostat exits after issuing the
following error (which was encountered on AlderLake):

turbostat: perf_l2_init(cpu0, 0x0, 0xff24) REFS: Invalid argument

This occurs because perf_l2_init() calls err(). However, the code has been
written in such a manner that it is able to perform cleanup and continue.
Therefore, this issue can be addressed by changing the appropriate calls
to err() to warnx().

Additionally, correct the PMU type arguments passed to the warning strings
in the ecore and lcore blocks so the logs accurately reflect the failing
counter type.

Signed-off-by: David Arcari <darcari@redhat.com>
Signed-off-by: Len Brown <len.brown@intel.com>
History 2026-04-10 09:04:32 -04:00
..
amd_pstate_tracer tools/power/x86/amd_pstate_tracer: Fix python gnuplot package names 2025-09-23 13:42:20 -05:00
intel-speed-select tools/power/x86/intel-speed-select: v1.25 release 2026-01-16 16:03:21 -08:00
intel_pstate_tracer tools/power/x86/intel_pstate_tracer: python minimum version 2023-09-21 20:35:50 +02:00
turbostat tools/power turbostat: Allow execution to continue after perf_l2_init() failure 2026-04-10 09:04:32 -04:00
x86_energy_perf_policy tools/power x86_energy_perf_policy: Fix potential NULL pointer dereference 2025-12-02 16:11:09 -05:00