diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/session.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index 8e485592ca20..90ee39dd8ab2 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c | |||
@@ -918,7 +918,9 @@ static struct machine * | |||
918 | { | 918 | { |
919 | const u8 cpumode = event->header.misc & PERF_RECORD_MISC_CPUMODE_MASK; | 919 | const u8 cpumode = event->header.misc & PERF_RECORD_MISC_CPUMODE_MASK; |
920 | 920 | ||
921 | if (cpumode == PERF_RECORD_MISC_GUEST_KERNEL && perf_guest) { | 921 | if (perf_guest && |
922 | ((cpumode == PERF_RECORD_MISC_GUEST_KERNEL) || | ||
923 | (cpumode == PERF_RECORD_MISC_GUEST_USER))) { | ||
922 | u32 pid; | 924 | u32 pid; |
923 | 925 | ||
924 | if (event->header.type == PERF_RECORD_MMAP) | 926 | if (event->header.type == PERF_RECORD_MMAP) |