perf evlist: Adopt events_stats from perf_session
For tools that don't deal with perf.data files, thus do not need to use perf_session. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Borislav Petkov <bp@suse.de> Cc: David Ahern <dsahern@gmail.com> Cc: Don Zickus <dzickus@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-kglq67gvauq9tak02a4se00r@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
@@ -1473,9 +1473,9 @@ static int perf_sched__read_events(struct perf_sched *sched,
|
||||
goto out_delete;
|
||||
}
|
||||
|
||||
sched->nr_events = session->stats.nr_events[0];
|
||||
sched->nr_lost_events = session->stats.total_lost;
|
||||
sched->nr_lost_chunks = session->stats.nr_events[PERF_RECORD_LOST];
|
||||
sched->nr_events = session->evlist->stats.nr_events[0];
|
||||
sched->nr_lost_events = session->evlist->stats.total_lost;
|
||||
sched->nr_lost_chunks = session->evlist->stats.nr_events[PERF_RECORD_LOST];
|
||||
}
|
||||
|
||||
if (psession)
|
||||
|
Reference in New Issue
Block a user