aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/session.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2010-05-14 09:36:42 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2010-05-14 09:36:42 -0400
commitc8446b9bdabcb0caa61bb341bd73c58f7104b503 (patch)
treeb2530bfbbd893017e9515bd48f2ffa8845860759 /tools/perf/util/session.h
parent5d2be7cb198a0a6bc6088d3806fb7261b184ad89 (diff)
perf hist: Make event__totals per hists
This is one more thing that started global but are more useful per hist or per session. Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Tom Zanussi <tzanussi@gmail.com> LKML-Reference: <new-submission> 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.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/perf/util/session.h b/tools/perf/util/session.h
index ce00fa6cdeda..e7fce486ebe2 100644
--- a/tools/perf/util/session.h
+++ b/tools/perf/util/session.h
@@ -30,8 +30,6 @@ struct perf_session {
30 struct machine host_machine; 30 struct machine host_machine;
31 struct rb_root machines; 31 struct rb_root machines;
32 struct rb_root hists_tree; 32 struct rb_root hists_tree;
33 unsigned long event_total[PERF_RECORD_MAX];
34 unsigned long unknown_events;
35 /* 33 /*
36 * FIXME: should point to the first entry in hists_tree and 34 * FIXME: should point to the first entry in hists_tree and
37 * be a hists instance. Right now its only 'report' 35 * be a hists instance. Right now its only 'report'
@@ -140,4 +138,10 @@ size_t perf_session__fprintf_dsos_buildid(struct perf_session *self, FILE *fp,
140{ 138{
141 return machines__fprintf_dsos_buildid(&self->machines, fp, with_hits); 139 return machines__fprintf_dsos_buildid(&self->machines, fp, with_hits);
142} 140}
141
142static inline
143size_t perf_session__fprintf_nr_events(struct perf_session *self, FILE *fp)
144{
145 return hists__fprintf_nr_events(&self->hists, fp);
146}
143#endif /* __PERF_SESSION_H */ 147#endif /* __PERF_SESSION_H */