Skip to content

perf/x86/intel: Fixes for PT and BTS

Alexander Shishkin lkml 1 version In review

Get series with b4
b4 am 1434024837-9916-1-git-send-email-alexander.shishkin@linux.intel.com

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2perf/x86/intel/bts: Fix DS area sharing with x86_pmu eventsarch/x86/kernel/cpu/perf_event.c arch/x86/kernel/cpu/perf_event.h arch/x86/kernel/cpu/perf_event_intel_bts.c+46 -190 replies
2/2perf/x86/intel: Fix PMI handling for Intel PTarch/x86/kernel/cpu/perf_event.c+17 -16 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/x86/intel: Fixes for PT and BTS

Hi Peter and Ingo,

I have here two fixes for 4.1, both of which are basically results of not testing code properly with the NMI watchdog disabled, so one lesson learned here.

One bug results in trace data loss and unknown NMI warnings and the other one is a NULL pointer dereference. The latter might need to be revisited in the future as we're now handling PT PMIs from intel_pmu_handle_irq() and we might want to change that. On the other hand, PT and x86_pmu share the PMI status register, so from that angle it kind of makes sense. But until such time as we decide to sort it out, the proposed fix should do nicely.

Alexander Shishkin (2):
perf/x86/intel/bts: Fix DS area sharing with x86_pmu events perf/x86/intel: Fix PMI handling for Intel PT

 arch/x86/kernel/cpu/perf_event.c           | 70 +++++++++++++++++++++---------
 arch/x86/kernel/cpu/perf_event.h           |  4 ++
 arch/x86/kernel/cpu/perf_event_intel_bts.c |  9 ++++
 3 files changed, 63 insertions(+), 20 deletions(-)
Signature · 1 line
2.1.4