aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/symbol.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2009-11-20 17:51:24 -0500
committerIngo Molnar <mingo@elte.hu>2009-11-21 08:11:32 -0500
commit6671cb1674e69e2aba3d610714bdd3e97a7b51ff (patch)
tree61eb72c744c19086b272af4b3da21ef959ae35d5 /tools/perf/util/symbol.h
parent96200591a34f8ecb98481c626125df43a2463b55 (diff)
perf symbols: Remove unrelated actions from dso__load_kernel_sym
It should just load kernel symbols, not load the list of modules. There are more stuff to move to other routines, but lets do it in several steps. End goal is to be able to defer symbol table loading till we find a hit for that map address range. So that the kernel & modules are handled just like all the other DSOs in the system. 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: <1258757489-5978-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.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h
index f0593a649c3d..3d9d346d101b 100644
--- a/tools/perf/util/symbol.h
+++ b/tools/perf/util/symbol.h
@@ -78,9 +78,11 @@ void dso__delete(struct dso *self);
78struct symbol *dso__find_symbol(struct dso *self, u64 ip); 78struct symbol *dso__find_symbol(struct dso *self, u64 ip);
79 79
80int dsos__load_modules(void); 80int dsos__load_modules(void);
81int dsos__load_modules_sym(symbol_filter_t filter);
81struct dso *dsos__findnew(const char *name); 82struct dso *dsos__findnew(const char *name);
82int dso__load(struct dso *self, struct map *map, symbol_filter_t filter); 83int dso__load(struct dso *self, struct map *map, symbol_filter_t filter);
83int dso__load_kernel_sym(struct dso *self, symbol_filter_t filter, int modules); 84int dso__load_kernel_sym(struct dso *self, symbol_filter_t filter,
85 int use_modules);
84void dsos__fprintf(FILE *fp); 86void dsos__fprintf(FILE *fp);
85size_t dsos__fprintf_buildid(FILE *fp); 87size_t dsos__fprintf_buildid(FILE *fp);
86 88
@@ -95,7 +97,7 @@ bool dsos__read_build_ids(void);
95int build_id__sprintf(u8 *self, int len, char *bf); 97int build_id__sprintf(u8 *self, int len, char *bf);
96 98
97struct dso *dsos__load_kernel(void); 99struct dso *dsos__load_kernel(void);
98int load_kernel(symbol_filter_t filter); 100int load_kernel(symbol_filter_t filter, bool use_modules);
99 101
100void symbol__init(unsigned int priv_size); 102void symbol__init(unsigned int priv_size);
101 103
@@ -103,5 +105,4 @@ extern struct list_head dsos;
103extern struct map *kernel_map; 105extern struct map *kernel_map;
104extern struct dso *vdso; 106extern struct dso *vdso;
105extern const char *vmlinux_name; 107extern const char *vmlinux_name;
106extern int modules;
107#endif /* __PERF_SYMBOL */ 108#endif /* __PERF_SYMBOL */