From: Andi Kleen Date: Fri, 27 Feb 2015 17:48:32 +0000 (-0800) Subject: perf/x86: Only dump PEBS register when PEBS has been detected X-Git-Tag: omap-for-v4.1/fixes-rc1~156^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15fde1101a1aed11958e0d86bc360f01866a74b1;p=pandora-kernel.git 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 Signed-off-by: Peter Zijlstra (Intel) Cc: eranian@google.com Link: http://lkml.kernel.org/r/1425059312-18217-4-git-send-email-andi@firstfloor.org Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed