diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index 38d4d6cac8236c01ca0b9b66101196d1a41dec17..ae4c6420300bf8640df2719fd05dad9835d61a82 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c @@ -857,9 +857,12 @@ static void perf_top__mmap_read_idx(struct perf_top *top, int idx) * TODO: we don't process guest user from host side * except simple counting. */ - /* Fall thru */ - default: goto next_event; + default: + if (event->header.type == PERF_RECORD_SAMPLE) + goto next_event; + machine = &session->machines.host; + break; }