aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/symbol.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2010-04-27 20:20:43 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2010-04-27 20:21:18 -0400
commitd28c62232e50eab202bcd3f19b5c7a25b8b900b6 (patch)
tree544aca2fe1c7a6c813cf2bf319a8ceb4d212b649 /tools/perf/util/symbol.h
parent48ea8f5470aa6f35244d1b218316705ea88c0259 (diff)
perf machine: Adopt some map_groups functions
Those functions operated on members now grouped in 'struct machine', so move those methods to this new class. The changes made to 'perf probe' shows that using this abstraction inserting probes on guests almost got supported for free. Cc: Avi Kivity <avi@redhat.com> Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Masami Hiramatsu <mhiramat@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Zhang, Yanmin <yanmin_zhang@linux.intel.com> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/symbol.h')
-rw-r--r--tools/perf/util/symbol.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h
index ed885b06a02..37b717b861c 100644
--- a/tools/perf/util/symbol.h
+++ b/tools/perf/util/symbol.h
@@ -199,11 +199,9 @@ int kallsyms__parse(const char *filename, void *arg,
199 int (*process_symbol)(void *arg, const char *name, 199 int (*process_symbol)(void *arg, const char *name,
200 char type, u64 start)); 200 char type, u64 start));
201 201
202int __map_groups__create_kernel_maps(struct map_groups *self, 202int __machine__create_kernel_maps(struct machine *self, struct dso *kernel);
203 struct map *vmlinux_maps[MAP__NR_TYPES], 203int machines__create_kernel_maps(struct rb_root *self, pid_t pid);
204 struct dso *kernel); 204int machines__create_guest_kernel_maps(struct rb_root *self);
205int map_groups__create_kernel_maps(struct rb_root *kerninfo_root, pid_t pid);
206int map_groups__create_guest_kernel_maps(struct rb_root *kerninfo_root);
207 205
208int symbol__init(void); 206int symbol__init(void);
209bool symbol_type__is_a(char symbol_type, enum map_type map_type); 207bool symbol_type__is_a(char symbol_type, enum map_type map_type);