• Stephane Eranian's avatar
    perf_events: Update PEBS event constraints · 17e31629
    Stephane Eranian authored
    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: default avatarStephane Eranian <eranian@google.com>
    Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
    LKML-Reference: <4d6e6b02.815bdf0a.637b.07a7@mx.google.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    17e31629
perf_event_intel_ds.c 18.9 KB