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 c4c7eac69de4..5fb8723c7128 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c | |||
@@ -716,7 +716,7 @@ static void perf_event__process_sample(struct perf_tool *tool, | |||
716 | 716 | ||
717 | if (!machine) { | 717 | if (!machine) { |
718 | pr_err("%u unprocessable samples recorded.\r", | 718 | pr_err("%u unprocessable samples recorded.\r", |
719 | top->session->stats.nr_unprocessable_samples++); | 719 | top->session->evlist->stats.nr_unprocessable_samples++); |
720 | return; | 720 | return; |
721 | } | 721 | } |
722 | 722 | ||
@@ -856,7 +856,7 @@ static void perf_top__mmap_read_idx(struct perf_top *top, int idx) | |||
856 | hists__inc_nr_events(evsel__hists(evsel), event->header.type); | 856 | hists__inc_nr_events(evsel__hists(evsel), event->header.type); |
857 | machine__process_event(machine, event, &sample); | 857 | machine__process_event(machine, event, &sample); |
858 | } else | 858 | } else |
859 | ++session->stats.nr_unknown_events; | 859 | ++session->evlist->stats.nr_unknown_events; |
860 | next_event: | 860 | next_event: |
861 | perf_evlist__mmap_consume(top->evlist, idx); | 861 | perf_evlist__mmap_consume(top->evlist, idx); |
862 | } | 862 | } |