diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-04-27 20:20:43 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-04-27 20:21:18 -0400 |
commit | d28c62232e50eab202bcd3f19b5c7a25b8b900b6 (patch) | |
tree | 544aca2fe1c7a6c813cf2bf319a8ceb4d212b649 /tools/perf/util/session.c | |
parent | 48ea8f5470aa6f35244d1b218316705ea88c0259 (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/session.c')
-rw-r--r-- | tools/perf/util/session.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index b745c1c0b6c7..a8dd73ed1581 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c | |||
@@ -69,12 +69,11 @@ void perf_session__update_sample_type(struct perf_session *self) | |||
69 | 69 | ||
70 | int perf_session__create_kernel_maps(struct perf_session *self) | 70 | int perf_session__create_kernel_maps(struct perf_session *self) |
71 | { | 71 | { |
72 | int ret; | 72 | struct rb_root *machines = &self->machines; |
73 | struct rb_root *root = &self->machines; | 73 | int ret = machines__create_kernel_maps(machines, HOST_KERNEL_ID); |
74 | 74 | ||
75 | ret = map_groups__create_kernel_maps(root, HOST_KERNEL_ID); | ||
76 | if (ret >= 0) | 75 | if (ret >= 0) |
77 | ret = map_groups__create_guest_kernel_maps(root); | 76 | ret = machines__create_guest_kernel_maps(machines); |
78 | return ret; | 77 | return ret; |
79 | } | 78 | } |
80 | 79 | ||