aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/session.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2009-12-13 16:50:29 -0500
committerIngo Molnar <mingo@elte.hu>2009-12-14 10:57:17 -0500
commit4aa65636411ccb12f006a6ad593930655c445ff6 (patch)
tree0f494705a2a7631070a5372bb53f873684b001c2 /tools/perf/util/session.h
parentb3165f414416a717f72a376720564012af5a2e01 (diff)
perf session: Move kmaps to perf_session
There is still some more work to do to disentangle map creation from DSO loading, but this happens only for the kernel, and for the early adopters of perf diff, where this disentanglement matters most, we'll be testing different kernels, so no problem here. Further clarification: right now we create the kernel maps for the various modules and discontiguous kernel text maps when loading the DSO, we should do it as a two step process, first creating the maps, for multiple mappings with the same DSO store, then doing the dso load just once, for the first hit on one of the maps sharing this DSO backing store. 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: <1260741029-4430-6-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.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/perf/util/session.h b/tools/perf/util/session.h
index 1dbef7cdd489..20b2c9cc834b 100644
--- a/tools/perf/util/session.h
+++ b/tools/perf/util/session.h
@@ -3,19 +3,23 @@
3 3
4#include "event.h" 4#include "event.h"
5#include "header.h" 5#include "header.h"
6#include "thread.h"
6#include <linux/rbtree.h> 7#include <linux/rbtree.h>
7 8
8struct thread; 9struct thread;
10struct symbol_conf;
9 11
10struct perf_session { 12struct perf_session {
11 struct perf_header header; 13 struct perf_header header;
12 unsigned long size; 14 unsigned long size;
13 unsigned long mmap_window; 15 unsigned long mmap_window;
16 struct map_groups kmaps;
14 struct rb_root threads; 17 struct rb_root threads;
15 struct thread *last_match; 18 struct thread *last_match;
16 int fd; 19 int fd;
17 int cwdlen; 20 int cwdlen;
18 char *cwd; 21 char *cwd;
22 bool use_modules;
19 char filename[0]; 23 char filename[0];
20}; 24};
21 25
@@ -37,7 +41,7 @@ struct perf_event_ops {
37}; 41};
38 42
39struct perf_session *perf_session__new(const char *filename, int mode, 43struct perf_session *perf_session__new(const char *filename, int mode,
40 bool force); 44 bool force, struct symbol_conf *conf);
41void perf_session__delete(struct perf_session *self); 45void perf_session__delete(struct perf_session *self);
42 46
43int perf_session__process_events(struct perf_session *self, 47int perf_session__process_events(struct perf_session *self,