aboutsummaryrefslogtreecommitdiff
path: root/tools/perf
diff options
context:
space:
mode:
authorRobert Richter2010-02-04 10:57:23 +0100
committerRobert Richter2010-02-26 15:14:02 +0100
commit64683da6643e8c6c93f1f99548399b08c029fd13 (patch)
tree3fe0eeb22348933fd37ef6f2a452fed5d9cde35a /tools/perf
parent89baaaa98a10cad5cc8516c7208b02d9fc711890 (diff)
oprofile/x86: implement IBS cpuid feature detection
This patch adds IBS feature detection using cpuid flags. An IBS capability mask is introduced to test for certain IBS features. The bit mask is the same as for IBS cpuid feature flags (Fn8000_001B_EAX), but bit 0 is used to indicate the existence of IBS. The patch also changes the handling of the IbsOpCntCtl bit (periodic op counter count control). The oprofilefs file for this feature (ibs_op/dispatched_ops) will be only exposed if the feature is available, also the default for the bit is set to count clock cycles. In general, the userland can detect the availability of a feature by checking for the corresponding file in oprofilefs. If it exists, the feature also exists. This may lead to a dynamic file layout depending on the cpu type with that the userland has to deal with. Current opcontrol is compatible. Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'tools/perf')
0 files changed, 0 insertions, 0 deletions