From: Robert Richter Date: Mon, 2 Apr 2012 18:19:18 +0000 (+0200) Subject: perf/x86-ibs: Fix usage of IBS op current count X-Git-Tag: v3.5-rc1~141^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b1e13638d465863572c8207a5cfceeef0cf0441;p=pandora-kernel.git 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 Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/1333390758-10893-13-git-send-email-robert.richter@amd.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed