perf session: There is no need for a per session hists instance
[deliverable/linux.git] / tools / perf / builtin-top.c
index f5fd260f7b208a541d4475d85558fb112f50054a..996b10c702bacd6f52634162b88b7dbd3736e47e 100644 (file)
@@ -728,7 +728,7 @@ static void perf_event__process_sample(struct perf_tool *tool,
 
        if (!machine) {
                pr_err("%u unprocessable samples recorded.\n",
-                      top->session->hists.stats.nr_unprocessable_samples++);
+                      top->session->stats.nr_unprocessable_samples++);
                return;
        }
 
@@ -878,7 +878,7 @@ static void perf_top__mmap_read_idx(struct perf_top *top, int idx)
                        hists__inc_nr_events(&evsel->hists, event->header.type);
                        machine__process_event(machine, event);
                } else
-                       ++session->hists.stats.nr_unknown_events;
+                       ++session->stats.nr_unknown_events;
        }
 }
 
This page took 0.037409 seconds and 5 git commands to generate.