diff options
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 | ||