Skip to content

perf_events: correct event assignments on Intel processors

Stephane Eranian lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2perf_events: check for filters on fixed counter eventsarch/x86/include/asm/perf_event.h arch/x86/kernel/cpu/perf_event.c+17 -01 reply
2/2perf_events: add event constraints support for Intel processorsarch/x86/kernel/cpu/perf_event.c+102 -417 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] perf_events: correct event assignments on Intel processors

This series of patches corrects the assignment of events to counters for the Intel X86 processors.

Not all events can be measured on any counter. Not all filters can be used on fixed counters.

The current implementation silently returns bogus counts in case the event is programmed into the wrong counter.

---
 arch/x86/include/asm/perf_event.h |   11 ++++
 arch/x86/kernel/cpu/perf_event.c  |  112 +++++++++++++++++++++++++++++++++++-
 2 files changed, 119 insertions(+), 4 deletions(-)