From: Andi Kleen Date: Wed, 6 Jun 2012 00:56:48 +0000 (-0700) Subject: perf/x86: Don't assume there can be only 4 PEBS events X-Git-Tag: v3.6-rc1~167^2~59 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70ab7003dec58afeae7f5d681dfa309b3a259f03;p=pandora-kernel.git perf/x86: Don't assume there can be only 4 PEBS events On Sandy Bridge in non HT mode there are 8 counters available. Since every counter can write a PEBS record assuming there are 4 max is incorrect. Use the reported counter number -- with an upper limit for a static array -- instead. Also I made the warning messages a bit more informational. Signed-off-by: Andi Kleen Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/1338944211-28275-2-git-send-email-andi@firstfloor.org Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed