diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-01-27 18:05:51 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-01-29 03:20:58 -0500 |
commit | fd1d908c543fbdfae82839d24b0872c542fceedc (patch) | |
tree | a5ce23cd57ba88f4230b571736d1638dde11aa09 /tools/perf/util/symbol.h | |
parent | a19afe46412452fef89cc623873a8931b3685944 (diff) |
perf symbols: Split helpers used when creating kernel dso object
To make it clear and allow for direct usage by, for instance,
regression test suites.
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: <1264633557-17597-3-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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h index a94997aeb334..124302778c09 100644 --- a/tools/perf/util/symbol.h +++ b/tools/perf/util/symbol.h | |||
@@ -109,6 +109,7 @@ struct dso { | |||
109 | }; | 109 | }; |
110 | 110 | ||
111 | struct dso *dso__new(const char *name); | 111 | struct dso *dso__new(const char *name); |
112 | struct dso *dso__new_kernel(const char *name); | ||
112 | void dso__delete(struct dso *self); | 113 | void dso__delete(struct dso *self); |
113 | 114 | ||
114 | bool dso__loaded(const struct dso *self, enum map_type type); | 115 | bool dso__loaded(const struct dso *self, enum map_type type); |
@@ -139,6 +140,7 @@ size_t dso__fprintf(struct dso *self, enum map_type type, FILE *fp); | |||
139 | char dso__symtab_origin(const struct dso *self); | 140 | char dso__symtab_origin(const struct dso *self); |
140 | void dso__set_long_name(struct dso *self, char *name); | 141 | void dso__set_long_name(struct dso *self, char *name); |
141 | void dso__set_build_id(struct dso *self, void *build_id); | 142 | void dso__set_build_id(struct dso *self, void *build_id); |
143 | void dso__read_running_kernel_build_id(struct dso *self); | ||
142 | struct symbol *dso__find_symbol(struct dso *self, enum map_type type, u64 addr); | 144 | struct symbol *dso__find_symbol(struct dso *self, enum map_type type, u64 addr); |
143 | struct symbol *dso__find_symbol_by_name(struct dso *self, enum map_type type, | 145 | struct symbol *dso__find_symbol_by_name(struct dso *self, enum map_type type, |
144 | const char *name); | 146 | const char *name); |