diff options
| author | Peter Zijlstra <[email protected]> | 2014-02-03 13:29:03 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2014-02-21 21:09:01 +0000 |
| commit | c9b08884c9c98929ec2d8abafd78e89062d01ee7 (patch) | |
| tree | d7e9cd28d499baa17f6f33d9493a91d62e1f217d /tools/perf/util/annotate.c | |
| parent | perf, nmi: Fix unknown NMI warning (diff) | |
| download | kernel-c9b08884c9c98929ec2d8abafd78e89062d01ee7.tar.gz kernel-c9b08884c9c98929ec2d8abafd78e89062d01ee7.zip | |
perf/x86: Correctly use FEATURE_PDCM
The current code simply assumes Intel Arch PerfMon v2+ to have
the IA32_PERF_CAPABILITIES MSR; the SDM specifies that we should check
CPUID[1].ECX[15] (aka, FEATURE_PDCM) instead.
This was found by KVM which implements v2+ but didn't provide the
capabilities MSR. Change the code to DTRT; KVM will also implement the
MSR and return 0.
Cc: [email protected]
Reported-by: "Michael S. Tsirkin" <[email protected]>
Suggested-by: Eduardo Habkost <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'tools/perf/util/annotate.c')
0 files changed, 0 insertions, 0 deletions
