[PATCH 11/12] perf, x86: implement AMD IBS event configuration
This patch implements IBS for perf_event. It extends the AMD pmu to handle model specific IBS events. With the attr.model_spec bit set we can setup hardware events others than generic performance counters. A special PMU 64 bit config value can be passed through the perf_event interface. The concept of PMU model-... 13 Apr 2010 17:20
[PATCH 01/12] perf, x86: move perfctr init code to x86_setup_perfctr()
Split __hw_perf_event_init() to configure pmu events other than perfctrs. Perfctr code is moved to a separate function x86_setup_perfctr(). This and the following patches refactor the code. Split in multiple patches for better review. Signed-off-by: Robert Richter <robert.richter(a)amd.com> --- arch/x86/kernel... 13 Apr 2010 17:20
[PATCH 06/12] perf, x86: use weight instead of cmask in for_each_event_constraint()
There may exist constraints with a cmask set to zero. In this case for_each_event_constraint() will not work properly. Now weight is used instead of the cmask for loop exit detection. Weight is always a value other than zero since the default contains the HWEIGHT from the counter mask and in other cases a value of ... 13 Apr 2010 17:20
[PATCH 09/12] perf, x86: implement IBS feature detection
The new code checks if IBS is available on the cpu. It implements only a basic detection that should be later extended to read ibs cpuid feature flags. Signed-off-by: Robert Richter <robert.richter(a)amd.com> --- arch/x86/kernel/cpu/perf_event.c | 5 +++++ arch/x86/kernel/cpu/perf_event_amd.c | 2 ++ ... 13 Apr 2010 17:20
[PATCH 03/12] perf, x86: call x86_setup_perfctr() from .hw_config()
The perfctr setup calls are in the corresponding .hw_config() functions now. This makes it possible to introduce config functions for other pmu events that are not perfctr specific. Also, all of a sudden the code looks much nicer. Signed-off-by: Robert Richter <robert.richter(a)amd.com> --- arch/x86/kernel/cpu... 13 Apr 2010 17:20
[PATCH 05/12] perf, x86: pass enable bit mask to __x86_pmu_enable_event()
To reuse this function for events with different enable bit masks, this mask is part of the function's argument list now. The function will be used later to control ibs events too. Signed-off-by: Robert Richter <robert.richter(a)amd.com> --- arch/x86/kernel/cpu/perf_event.c | 9 +++++---- arch/x86/ker... 13 Apr 2010 17:20
[PATCH 00/12] perf: introduce model specific events and AMD IBS
This patch series introduces model specific events and impments AMD IBS (Instruction Based Sampling) for perf_events. IBS is documented here: BIOS and Kernel Developer's Guide (BKDG) For AMD Family 10h Processors http://support.amd.com/us/Processor_TechDocs/31116.pdf AMD64 Architecture Programmer's Manua... 13 Apr 2010 17:20
kconfig: introduce nonint_oldconfig and loose_nonint_oldconfig
On 04/13/10 13:18, Aristeu Rozanski wrote: This patch has been around for a long time in Fedora and Red Hat Enterprise Linux kernels and it may be useful for others. The nonint_oldconfig target will fail and print the unset config options while loose_nonint_oldconfig will simply let the config optio... 13 Apr 2010 17:20
[PATCH 02/12] perf, x86: moving x86_setup_perfctr()
Moving x86_setup_perfctr(), no other changes made. Signed-off-by: Robert Richter <robert.richter(a)amd.com> --- arch/x86/kernel/cpu/perf_event.c | 120 +++++++++++++++++++------------------- 1 files changed, 59 insertions(+), 61 deletions(-) diff --git a/arch/x86/kernel/cpu/perf_event.c b/arch/x86/kernel/cpu/p... 13 Apr 2010 17:20
kconfig: introduce nonint_oldconfig and loose_nonint_oldconfig
On Tue, 13 Apr 2010 15:47:48 -0400 Aristeu Rozanski wrote: This patch has been around for a long time in Fedora and Red Hat Enterprise Linux kernels and it may be useful for others. The nonint_oldconfig target will fail and print the unset config options while loose_nonint_oldconfig will simply let the co... 13 Apr 2010 16:12