Anton Blanchard 7fbfc683f1 perf: Fix hypervisor sample reporting
cpumode bits are defined as such:

 #define PERF_RECORD_MISC_KERNEL                 (1 << 0)
 #define PERF_RECORD_MISC_USER                   (2 << 0)
 #define PERF_RECORD_MISC_HYPERVISOR             (3 << 0)

We need to compare against the complete value of cpumode,
otherwise hypervisor samples get incorrectly attributed as
userspace.

Signed-off-by: Anton Blanchard <anton@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: fweisbec@gmail.com
LKML-Reference: <20100209034304.GA3702@kryten>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2010-02-09 10:52:40 +01:00
..
2009-08-16 10:47:47 +02:00
2009-08-16 10:47:47 +02:00
2010-02-09 10:52:40 +01:00
2009-08-16 10:47:47 +02:00
2009-12-15 20:22:04 +01:00
2009-06-27 06:06:39 +02:00
2009-10-15 11:35:23 +02:00
2009-08-16 10:47:47 +02:00
2009-12-17 09:42:44 +01:00
2009-08-04 11:09:56 +02:00
2009-08-16 10:47:47 +02:00