]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86: Only dump PEBS register when PEBS has been detected
authorAndi Kleen <ak@linux.intel.com>
Fri, 27 Feb 2015 17:48:32 +0000 (09:48 -0800)
committerIngo Molnar <mingo@kernel.org>
Thu, 2 Apr 2015 15:33:17 +0000 (17:33 +0200)
commit706fa6fd31cc98048f125d3a9b30622f4a28fa1f
tree758a1a7f663228565804afd0568fa4b1a20d98b4
parent7888d41175537169a583ae1371fb174c0fcf4ca6
perf/x86: Only dump PEBS register when PEBS has been detected

Technically PEBS_ENABLED is only guaranteed to exist when we
detected PEBS. So add a check for this to the PMU dump function.
I don't think it can happen on a real CPU, but could in a VM.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: eranian@google.com
Link: http://lkml.kernel.org/r/1425059312-18217-4-git-send-email-andi@firstfloor.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event.c