]> git.openfabrics.org - ~emulex/infiniband.git/commit
perf/x86-ibs: Fix usage of IBS op current count
authorRobert Richter <robert.richter@amd.com>
Mon, 2 Apr 2012 18:19:18 +0000 (20:19 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 9 May 2012 13:23:17 +0000 (15:23 +0200)
commit8b1e13638d465863572c8207a5cfceeef0cf0441
tree3e0a5558edd80741a6994df1d8a432d1a3be0628
parentfc5fb2b5e1874e5894e2ac503bfb744220db89a1
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>
arch/x86/kernel/cpu/perf_event_amd_ibs.c