oprofile, x86: Check IBS capability bits 1 and 2
authorRobert Richter <robert.richter@amd.com>
Tue, 21 Sep 2010 13:58:32 +0000 (15:58 +0200)
committerRobert Richter <robert.richter@amd.com>
Fri, 15 Oct 2010 10:50:40 +0000 (12:50 +0200)
commit4ac945f002c0bebdeb530cbc3729e22895e64a7e
treecab9bc4f51d5d640f6de256e2168b4bcc77e7b30
parente63414740e15b4e2dc54c63fb9ea501b257fb0b5
oprofile, x86: Check IBS capability bits 1 and 2

There are IBS CPUID feature flags in CPUID Fn8000_001B to detect if
the cpu supports IBS fetch sampling (FetchSam) and/or IBS execution
sampling (OpSam). This patch adds checks if the both features are
available.

Spec:

 http://support.amd.com/us/Processor_TechDocs/31116.pdf

Signed-off-by: Robert Richter <robert.richter@amd.com>
arch/x86/oprofile/op_model_amd.c