diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-12-15 17:04:39 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-16 02:53:48 -0500 |
commit | 75be6cf48738aec68aac49b428423569492cfba3 (patch) | |
tree | d7f5ceb028361e8b725ba6f3b8219e66c7b89790 /tools/perf/util/symbol.h | |
parent | 7ef17aafc98406d01ebbf7fe98ef1332b70d20bb (diff) |
perf symbols: Make symbol_conf global
This simplifies a lot of functions, less stuff to be done by
tool writers.
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: <1260914682-29652-1-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/symbol.h')
-rw-r--r-- | tools/perf/util/symbol.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h index 941ef331790e..766294735f93 100644 --- a/tools/perf/util/symbol.h +++ b/tools/perf/util/symbol.h | |||
@@ -57,11 +57,11 @@ struct symbol_conf { | |||
57 | const char *vmlinux_name; | 57 | const char *vmlinux_name; |
58 | }; | 58 | }; |
59 | 59 | ||
60 | extern unsigned int symbol__priv_size; | 60 | extern struct symbol_conf symbol_conf; |
61 | 61 | ||
62 | static inline void *symbol__priv(struct symbol *self) | 62 | static inline void *symbol__priv(struct symbol *self) |
63 | { | 63 | { |
64 | return ((void *)self) - symbol__priv_size; | 64 | return ((void *)self) - symbol_conf.priv_size; |
65 | } | 65 | } |
66 | 66 | ||
67 | struct addr_location { | 67 | struct addr_location { |
@@ -119,9 +119,8 @@ int sysfs__read_build_id(const char *filename, void *bf, size_t size); | |||
119 | bool dsos__read_build_ids(void); | 119 | bool dsos__read_build_ids(void); |
120 | int build_id__sprintf(u8 *self, int len, char *bf); | 120 | int build_id__sprintf(u8 *self, int len, char *bf); |
121 | 121 | ||
122 | int symbol__init(struct symbol_conf *conf); | 122 | int symbol__init(void); |
123 | int perf_session__create_kernel_maps(struct perf_session *self, | 123 | int perf_session__create_kernel_maps(struct perf_session *self); |
124 | struct symbol_conf *conf); | ||
125 | 124 | ||
126 | extern struct list_head dsos__user, dsos__kernel; | 125 | extern struct list_head dsos__user, dsos__kernel; |
127 | extern struct dso *vdso; | 126 | extern struct dso *vdso; |