diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2009-08-12 04:03:49 -0400 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2009-08-12 06:02:38 -0400 |
commit | cd84c2ac6d6425dd4d1b80a2231e534b9b03df18 (patch) | |
tree | 943332327f02f7a056dc87c64e72e340c484ede6 /tools/perf/util/symbol.h | |
parent | 9f8666971185b86615a074bcac67c90fdf8af8bc (diff) |
perf tools: Factorize high level dso helpers
Factorize multiple definitions of high level dso helpers into the
symbol source file.
The side effect is a general export of the verbose and eprintf
debugging helpers into a new file dedicated to debugging purposes.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Brice Goglin <Brice.Goglin@inria.fr>
Diffstat (limited to 'tools/perf/util/symbol.h')
-rw-r--r-- | tools/perf/util/symbol.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h index 1e003ec2f4b1..f3490fcd40ee 100644 --- a/tools/perf/util/symbol.h +++ b/tools/perf/util/symbol.h | |||
@@ -48,9 +48,20 @@ int dso__load_kernel(struct dso *self, const char *vmlinux, | |||
48 | symbol_filter_t filter, int verbose, int modules); | 48 | symbol_filter_t filter, int verbose, int modules); |
49 | int dso__load_modules(struct dso *self, symbol_filter_t filter, int verbose); | 49 | int dso__load_modules(struct dso *self, symbol_filter_t filter, int verbose); |
50 | int dso__load(struct dso *self, symbol_filter_t filter, int verbose); | 50 | int dso__load(struct dso *self, symbol_filter_t filter, int verbose); |
51 | struct dso *dsos__findnew(const char *name); | ||
52 | void dsos__fprintf(FILE *fp); | ||
51 | 53 | ||
52 | size_t dso__fprintf(struct dso *self, FILE *fp); | 54 | size_t dso__fprintf(struct dso *self, FILE *fp); |
53 | char dso__symtab_origin(const struct dso *self); | 55 | char dso__symtab_origin(const struct dso *self); |
54 | 56 | ||
57 | int load_kernel(void); | ||
58 | |||
55 | void symbol__init(void); | 59 | void symbol__init(void); |
60 | |||
61 | extern struct list_head dsos; | ||
62 | extern struct dso *kernel_dso; | ||
63 | extern struct dso *vdso; | ||
64 | extern struct dso *hypervisor_dso; | ||
65 | extern char *vmlinux; | ||
66 | extern int modules; | ||
56 | #endif /* _PERF_SYMBOL_ */ | 67 | #endif /* _PERF_SYMBOL_ */ |