diff options
author | Kan Liang <[email protected]> | 2016-08-11 07:30:20 -0700 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2016-08-12 08:35:04 +0200 |
commit | 10e9e7bd598f9a66a11a22514c68c13c41fc821b (patch) | |
tree | 7f90d252acec7c7805b0dcbb3923961ddb22f306 /scripts | |
parent | 68187872c76a96ed4db7bfb064272591f02e208b (diff) |
perf/x86/intel/uncore: Fix uncore num_counters
Some uncore boxes' num_counters value for Haswell server and
Broadwell server are not correct (too large, off by one).
This issue was found by comparing the code with the document. Although
there is no bug report from users yet, accessing non-existent counters
is dangerous and the behavior is undefined: it may cause miscounting or
even crashes.
This patch makes them consistent with the uncore document.
Reported-by: Lukasz Odzioba <[email protected]>
Signed-off-by: Kan Liang <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Vince Weaver <[email protected]>
Cc: <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions