diff options
Diffstat (limited to 'tools/perf/builtin-top.c')
-rw-r--r-- | tools/perf/builtin-top.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index e0ecebdde3fe..bc788126397b 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c | |||
@@ -847,13 +847,13 @@ static void perf_top__mmap_read_idx(struct perf_top *top, int idx) | |||
847 | ++top->us_samples; | 847 | ++top->us_samples; |
848 | if (top->hide_user_symbols) | 848 | if (top->hide_user_symbols) |
849 | continue; | 849 | continue; |
850 | machine = perf_session__find_host_machine(session); | 850 | machine = &session->machines.host; |
851 | break; | 851 | break; |
852 | case PERF_RECORD_MISC_KERNEL: | 852 | case PERF_RECORD_MISC_KERNEL: |
853 | ++top->kernel_samples; | 853 | ++top->kernel_samples; |
854 | if (top->hide_kernel_symbols) | 854 | if (top->hide_kernel_symbols) |
855 | continue; | 855 | continue; |
856 | machine = perf_session__find_host_machine(session); | 856 | machine = &session->machines.host; |
857 | break; | 857 | break; |
858 | case PERF_RECORD_MISC_GUEST_KERNEL: | 858 | case PERF_RECORD_MISC_GUEST_KERNEL: |
859 | ++top->guest_kernel_samples; | 859 | ++top->guest_kernel_samples; |