Skip to content

perf/x86: simplify PEBS event constraint management

Stephane Eranian lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 2 repliesIn review
  2. v14 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4perf/x86: Revamp PEBS event selectionarch/x86/include/asm/perf_event.h arch/x86/kernel/cpu/perf_event.h arch/x86/kernel/cpu/perf_event_intel_ds.c+85 -780 replies
2/4perf/x86: Don't mark DataLA addresses as storearch/x86/kernel/cpu/perf_event_intel_ds.c+1 -10 replies
3/4perf/x86: fix data source encoding issues for load latency/precise storearch/x86/kernel/cpu/perf_event_intel_ds.c include/linux/perf_event.h+15 -50 replies
4/4perf/x86: code cleanups for __intel_pmu_pebs_event()arch/x86/kernel/cpu/perf_event_intel_ds.c+37 -440 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchStephane Eranian
1/4R-b
2/4R-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] perf/x86: simplify PEBS event constraint management

This patchkit revamps the PEBS tables on most Intel CPUs, both simplifying and fixing a couple of problems on Haswell processors:
- All PEBS event supported
- data address and data source is now reported correctly for all events

We simplify the tables by using the fact that non-PEBS event when used in PEBS mode do not generate any PEBS records , thus they are safe to use. This helps simplify the PEBS event constraints because they do not need to list all suported PEBS events anymore. They only need to list the special PEBS events, such as precise store and load latency. This avoid some issues where the kernel is missing some PEBS events.

In V2, we cleanup some more the precise_datala() for store events.

Andi Kleen (2):
perf/x86: Revamp PEBS event selection
perf/x86: Don't mark DataLA addresses as store

Stephane Eranian (2):
perf/x86: fix data source encoding issues for load latency/precise
store
perf/x86: code cleanups for __intel_pmu_pebs_event()

 arch/x86/include/asm/perf_event.h         |    8 ++
 arch/x86/kernel/cpu/perf_event.h          |   48 +++++++-
 arch/x86/kernel/cpu/perf_event_intel_ds.c |  183 +++++++++++------------------
 include/linux/perf_event.h                |    9 +-
 4 files changed, 129 insertions(+), 119 deletions(-)
Signature · 1 line
1.7.9.5