aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPaolo Bonzini <[email protected]>2022-06-01 05:45:17 -0400
committerPaolo Bonzini <[email protected]>2022-06-08 13:06:15 -0400
commit916e3a4f950eac92c28cc138c10d86514ffebf98 (patch)
tree03b3058f7a16c36027dafb72fe86c69c027da3b6 /tools/perf/scripts/python
parent92d80178a35b1ab04c4a8250a06399150dbf0b6a (diff)
x86: events: Do not return bogus capabilities if PMU is broken
If the PMU is broken due to firmware issues, check_hw_exists() will return false but perf_get_x86_pmu_capability() will still return data from x86_pmu. Likewise if some of the hotplug callbacks cannot be installed the contents of x86_pmu will not be reverted. Handle the failure in both cases by clearing x86_pmu if init_hw_perf_events() or reverts to software events only. Co-developed-by: Like Xu <[email protected]> Signed-off-by: Like Xu <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions