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>
This commit is contained in:
committed by
Ingo Molnar
parent
7ef17aafc9
commit
75be6cf487
@@ -57,11 +57,11 @@ struct symbol_conf {
|
||||
const char *vmlinux_name;
|
||||
};
|
||||
|
||||
extern unsigned int symbol__priv_size;
|
||||
extern struct symbol_conf symbol_conf;
|
||||
|
||||
static inline void *symbol__priv(struct symbol *self)
|
||||
{
|
||||
return ((void *)self) - symbol__priv_size;
|
||||
return ((void *)self) - symbol_conf.priv_size;
|
||||
}
|
||||
|
||||
struct addr_location {
|
||||
@@ -119,9 +119,8 @@ int sysfs__read_build_id(const char *filename, void *bf, size_t size);
|
||||
bool dsos__read_build_ids(void);
|
||||
int build_id__sprintf(u8 *self, int len, char *bf);
|
||||
|
||||
int symbol__init(struct symbol_conf *conf);
|
||||
int perf_session__create_kernel_maps(struct perf_session *self,
|
||||
struct symbol_conf *conf);
|
||||
int symbol__init(void);
|
||||
int perf_session__create_kernel_maps(struct perf_session *self);
|
||||
|
||||
extern struct list_head dsos__user, dsos__kernel;
|
||||
extern struct dso *vdso;
|
||||
|
Reference in New Issue
Block a user