summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/session.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2012-12-18 20:24:46 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-01-24 20:40:12 +0100
commit28a6b6aa54878a6a239e901698b3fc111bbcc54f (patch)
treec3c6d8078ee04b7b41dc9969d112c3b38747e47a /tools/perf/util/session.h
parentperf hists: Rename hists__fprintf_nr_events to events_stats__fprintf (diff)
downloadlinux-28a6b6aa54878a6a239e901698b3fc111bbcc54f.tar.xz
linux-28a6b6aa54878a6a239e901698b3fc111bbcc54f.zip
perf session: There is no need for a per session hists instance
It was being used just for its stats member, so ditch session->hists and use just what is needed, session->stats. This completes the move support multiple events in the hists layer, the last user of session->hists was 'perf diff' but Jiri Olsa has fixed that some time ago. Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Namhyung Kim <namhyung@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-pimk92kek8kcp4dmb1jakoro@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/session.h')
-rw-r--r--tools/perf/util/session.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/perf/util/session.h b/tools/perf/util/session.h
index 426ca0c3c5b6..57066cb867a6 100644
--- a/tools/perf/util/session.h
+++ b/tools/perf/util/session.h
@@ -34,11 +34,7 @@ struct perf_session {
struct rb_root machines;
struct perf_evlist *evlist;
struct pevent *pevent;
- /*
- * FIXME: Need to split this up further, we need global
- * stats + per event stats.
- */
- struct hists hists;
+ struct events_stats stats;
int fd;
bool fd_pipe;
bool repipe;