perf evlist: Adopt events_stats from perf_session
[cascardo/linux.git] / tools / perf / builtin-top.c
index c4c7eac..5fb8723 100644 (file)
@@ -716,7 +716,7 @@ static void perf_event__process_sample(struct perf_tool *tool,
 
        if (!machine) {
                pr_err("%u unprocessable samples recorded.\r",
-                      top->session->stats.nr_unprocessable_samples++);
+                      top->session->evlist->stats.nr_unprocessable_samples++);
                return;
        }
 
@@ -856,7 +856,7 @@ static void perf_top__mmap_read_idx(struct perf_top *top, int idx)
                        hists__inc_nr_events(evsel__hists(evsel), event->header.type);
                        machine__process_event(machine, event, &sample);
                } else
-                       ++session->stats.nr_unknown_events;
+                       ++session->evlist->stats.nr_unknown_events;
 next_event:
                perf_evlist__mmap_consume(top->evlist, idx);
        }