aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/session.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2009-12-14 12:06:01 -0500
committerIngo Molnar <mingo@elte.hu>2009-12-15 02:50:28 -0500
commitf823e441ab4dfaeaf17832fa1931e0dc0fde304d (patch)
tree6bfaf4a3c4c5e2d5f65abece7996b005302e6af6 /tools/perf/util/session.h
parentc019879bcc5692ec9267c1cedad91f1794d0b693 (diff)
perf session: Event statistics also are per session
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <1260810361-22828-1-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/session.h')
-rw-r--r--tools/perf/util/session.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/session.h b/tools/perf/util/session.h
index 4e8a21c5304c..bdfc4b8eee7a 100644
--- a/tools/perf/util/session.h
+++ b/tools/perf/util/session.h
@@ -5,6 +5,7 @@
5#include "header.h" 5#include "header.h"
6#include "thread.h" 6#include "thread.h"
7#include <linux/rbtree.h> 7#include <linux/rbtree.h>
8#include "../../../include/linux/perf_event.h"
8 9
9struct ip_callchain; 10struct ip_callchain;
10struct thread; 11struct thread;
@@ -18,6 +19,8 @@ struct perf_session {
18 struct map_groups kmaps; 19 struct map_groups kmaps;
19 struct rb_root threads; 20 struct rb_root threads;
20 struct thread *last_match; 21 struct thread *last_match;
22 struct events_stats events_stats;
23 unsigned long event_total[PERF_RECORD_MAX];
21 struct rb_root hists; 24 struct rb_root hists;
22 u64 sample_type; 25 u64 sample_type;
23 int fd; 26 int fd;