diff options
author | Andi Kleen <ak@linux.intel.com> | 2012-06-05 17:56:48 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-06-06 17:23:40 +0200 |
commit | 70ab7003dec58afeae7f5d681dfa309b3a259f03 (patch) | |
tree | fe2a7fad09874b1a8bbe1c6793594996f1987be2 /kernel | |
parent | c48b60538c3ba05a7a2713c4791b25405525431b (diff) |
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 <ak@linux.intel.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1338944211-28275-2-git-send-email-andi@firstfloor.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions