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)
commit0db1a7bc00216a981d0b7056627ad8682f4f0636
treead4036506ee871280a5e83eae757e2d7316462e2
parent32ec6acfdcc066313261d0fbe6a966cb1804a7cd
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