]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
perf_events: Update PEBS event constraints
authorStephane Eranian <eranian@google.com>
Wed, 2 Mar 2011 15:05:01 +0000 (17:05 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 4 Mar 2011 10:32:52 +0000 (11:32 +0100)
commit17e3162972cbb9796035fff1e2fd30669b0eef65
treed9360df7e8bba5a62eb1e0cf75e0030f4a1cd586
parent08309379b7083a9ceec0f9bb96a629058fb623c4
perf_events: Update PEBS event constraints

This patch updates PEBS event constraints for Intel Atom, Nehalem, Westmere.

This patch also reorganizes the PEBS format/constraint detection code. It is
now based on processor model and not PEBS format. Two processors may use the
same PEBS format without have the same list of PEBS events.

In this second version, we simplified the initialization of the PEBS
constraints by leveraging the existing switch() statement in perf_event_intel.c.
We also renamed the constraint tables to be more consistent with regular
constraints.

In this 3rd version, we drop BR_INST_RETIRED.MISPRED from Intel Atom as it does
not seem to work. Use MISPREDICTED_BRANCH_RETIRED instead. Also add FP_ASSIST.*
o both Intel Nehalem and Westmere. I misssed those in the earlier patches.
Events were tested using libpfm4 perf_examples.

Signed-off-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <4d6e6b02.815bdf0a.637b.07a7@mx.google.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_event_intel.c
arch/x86/kernel/cpu/perf_event_intel_ds.c