]> git.baikalelectronics.ru Git - kernel.git/commit
perf, x86: P4 PMU -- handle unflagged events
authorCyrill Gorcunov <gorcunov@openvz.org>
Mon, 17 May 2010 08:13:04 +0000 (16:13 +0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 18 May 2010 06:25:34 +0000 (08:25 +0200)
commit69befd559c52af58d47d6124330e739fe24c4e56
treead4036506ee871280a5e83eae757e2d7316462e2
parentb8e70b61ba5a553e2a2ca66729edb6de095f97ab
perf, x86: P4 PMU -- handle unflagged events

It might happen that an event can overflow without
the proper overflow flag set. Check the sign bit in
the raw counter value to solve this problem.

Tested-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: fweisbec@gmail.com
Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <1274083984.6540.15.camel@minggr.sh.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_event_p4.c