diff options
author | Robert Richter <robert.richter@amd.com> | 2012-04-02 20:19:18 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-05-09 15:23:17 +0200 |
commit | 8b1e13638d465863572c8207a5cfceeef0cf0441 (patch) | |
tree | 3e0a5558edd80741a6994df1d8a432d1a3be0628 /include/linux/perf_event.h | |
parent | fc5fb2b5e1874e5894e2ac503bfb744220db89a1 (diff) |
perf/x86-ibs: Fix usage of IBS op current count
The value of IbsOpCurCnt rolls over when it reaches IbsOpMaxCnt. Thus,
it is reset to zero by hardware. To get the correct count we need to
add the max count to it in case we received an ibs sample (valid bit
set).
Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1333390758-10893-13-git-send-email-robert.richter@amd.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/perf_event.h')
0 files changed, 0 insertions, 0 deletions