remarkable-linux/arch/x86/oprofile
Robert Richter 64683da664 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>
2010-02-26 15:14:02 +01:00
..
backtrace.c perf events, x86/stacktrace: Make stack walking optional 2009-12-17 09:56:19 +01:00
init.c
Makefile
nmi_int.c oprofile/x86: add Xeon 7500 series support 2010-01-25 15:34:53 +01:00
nmi_timer_int.c
op_counter.h oprofile: Implement performance counter multiplexing 2009-07-20 16:33:53 +02:00
op_model_amd.c oprofile/x86: implement IBS cpuid feature detection 2010-02-26 15:14:02 +01:00
op_model_p4.c x86/oprofile: Modify initialization of num_virt_counters 2009-07-20 16:43:21 +02:00
op_model_ppro.c perf: Do the big rename: Performance Counters -> Performance Events 2009-09-21 14:28:04 +02:00
op_x86_model.h perf: Do the big rename: Performance Counters -> Performance Events 2009-09-21 14:28:04 +02:00