]> git.baikalelectronics.ru Git - kernel.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)
commitf096e44e40bdf3ebcd41bf7ec2fc28949084afa1
tree3e0a5558edd80741a6994df1d8a432d1a3be0628
parentaec6263f51cfb7164a526ff0b0cb08bf15c5d5fd
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