aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/session.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2009-12-14 10:10:39 -0500
committerIngo Molnar <mingo@elte.hu>2009-12-14 10:57:18 -0500
commit4e4f06e4c8f17ea96f7dd76251cab99511026401 (patch)
tree18b7f83b664939be0a9bde8e43daf9db8ca7fccc /tools/perf/util/session.h
parentb9bf089212d95746ce66482bcdbc7e77a0651088 (diff)
perf session: Move the hist_entries rb tree to perf_session
As we'll need to sort multiple times for multiple perf sessions, so that we can then do a diff. 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: <1260803439-16783-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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/perf/util/session.h b/tools/perf/util/session.h
index 20b2c9cc834b..759d96022a39 100644
--- a/tools/perf/util/session.h
+++ b/tools/perf/util/session.h
@@ -16,10 +16,12 @@ struct perf_session {
16 struct map_groups kmaps; 16 struct map_groups kmaps;
17 struct rb_root threads; 17 struct rb_root threads;
18 struct thread *last_match; 18 struct thread *last_match;
19 struct rb_root hists;
19 int fd; 20 int fd;
20 int cwdlen; 21 int cwdlen;
21 char *cwd; 22 char *cwd;
22 bool use_modules; 23 bool use_modules;
24 bool use_callchain;
23 char filename[0]; 25 char filename[0];
24}; 26};
25 27
@@ -35,7 +37,8 @@ struct perf_event_ops {
35 event_op process_read_event; 37 event_op process_read_event;
36 event_op process_throttle_event; 38 event_op process_throttle_event;
37 event_op process_unthrottle_event; 39 event_op process_unthrottle_event;
38 int (*sample_type_check)(u64 sample_type); 40 int (*sample_type_check)(u64 sample_type,
41 struct perf_session *session);
39 unsigned long total_unknown; 42 unsigned long total_unknown;
40 bool full_paths; 43 bool full_paths;
41}; 44};