linux/arch/x86/events
Paolo Bonzini 916e3a4f95 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 <likexu@tencent.com>
Signed-off-by: Like Xu <likexu@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-06-08 13:06:15 -04:00
..
amd perf/x86/amd/core: Fix reloading events for SVM 2022-05-19 23:46:14 +02:00
intel perf/x86/intel: Fix the comment about guest LBR support on KVM 2022-06-08 13:06:14 -04:00
zhaoxin x86: Fix various typos in comments 2021-03-18 15:31:53 +01:00
core.c x86: events: Do not return bogus capabilities if PMU is broken 2022-06-08 13:06:15 -04:00
Kconfig perf/x86/Kconfig: Fix indentation in the Kconfig file 2022-05-25 15:54:26 +02:00
Makefile perf/x86/rapl: Fix RAPL config variable bug 2020-06-02 11:52:56 +02:00
msr.c perf/x86/msr: Add new Alder Lake and Raptor Lake support 2022-05-11 16:27:08 +02:00
perf_event.h x86/perf/core: Add pebs_capable to store valid PEBS_COUNTER_MASK value 2022-06-08 04:47:52 -04:00
probe.c perf/x86/rapl: Add msr mask support 2021-02-10 14:44:54 +01:00
probe.h perf/x86/rapl: Add msr mask support 2021-02-10 14:44:54 +01:00
rapl.c perf/x86/rapl: fix AMD event handling 2022-01-18 12:09:48 +01:00