perf, x86: Deal with multiple state bits for pebs-fmt1
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Sat, 6 Mar 2010 17:57:38 +0000 (18:57 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 10 Mar 2010 12:23:38 +0000 (13:23 +0100)
commit12ab854d744f04bfc5c6c4db723b7e31fc03eb29
tree806836c7ad911d206978e800a14000f4b6ae4441
parentd329527e47851f84b1e7944ed9601205f35f1b93
perf, x86: Deal with multiple state bits for pebs-fmt1

Its unclear if the PEBS state record will have only a single bit set, in
case it does not and accumulates bits, deal with that by only processing
each event once.

Also, robustify some of the code.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
Cc: paulus@samba.org
Cc: eranian@google.com
Cc: robert.richter@amd.com
Cc: fweisbec@gmail.com
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_event_intel_ds.c