diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-12-13 16:50:29 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-14 10:57:17 -0500 |
commit | 4aa65636411ccb12f006a6ad593930655c445ff6 (patch) | |
tree | 0f494705a2a7631070a5372bb53f873684b001c2 /tools/perf/util/session.h | |
parent | b3165f414416a717f72a376720564012af5a2e01 (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.h | 6 |
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 | ||
8 | struct thread; | 9 | struct thread; |
10 | struct symbol_conf; | ||
9 | 11 | ||
10 | struct perf_session { | 12 | struct 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 | ||
39 | struct perf_session *perf_session__new(const char *filename, int mode, | 43 | struct perf_session *perf_session__new(const char *filename, int mode, |
40 | bool force); | 44 | bool force, struct symbol_conf *conf); |
41 | void perf_session__delete(struct perf_session *self); | 45 | void perf_session__delete(struct perf_session *self); |
42 | 46 | ||
43 | int perf_session__process_events(struct perf_session *self, | 47 | int perf_session__process_events(struct perf_session *self, |