diff options
| author | Paolo Bonzini <[email protected]> | 2022-06-01 05:45:17 -0400 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2022-06-08 13:06:15 -0400 |
| commit | 916e3a4f950eac92c28cc138c10d86514ffebf98 (patch) | |
| tree | 03b3058f7a16c36027dafb72fe86c69c027da3b6 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 92d80178a35b1ab04c4a8250a06399150dbf0b6a (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/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions