summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSumeet Pawnikar <sumeet4linux@gmail.com>2026-07-23 22:53:20 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-07-27 16:29:16 +0200
commit9229916d59918ec9d3639e7263e1e97be638e361 (patch)
tree65daba1981dccb640f598b0ce7514bf755e99028 /tools/perf/scripts/python
parentf5098b6bae761e346ebcd9da7f95622c04733cff (diff)
powercap: intel_rapl_tpmi: Handle PMU registration failure during probe
intel_rapl_tpmi_probe() invokes rapl_package_add_pmu() but ignores its return value, so a PMU registration failure would leave the driver reporting probe success despite the PMU being absent, with no log trace. Since PMU registration is an optional auxiliary feature for perf energy counters, its failure should not break the primary powercap functionality. Check the return value and log a warning to ensure graceful degradation. Fixes: 963a9ad3c589 ("powercap: intel_rapl_tpmi: Enable PMU support") Signed-off-by: Sumeet Pawnikar <sumeet4linux@gmail.com> [ rjw: Changed the log level of the new message to "info" ] Link: https://patch.msgid.link/20260723172321.5960-1-sumeet4linux@gmail.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions