Skip to content

Commit

Permalink
perf session: create_kernel_maps should use ->host_machine
Browse files Browse the repository at this point in the history
Using machines__create_kernel_maps(..., HOST_KERNEL_ID) it would create
another machine instance for the host machine, and since 1f626bc we have
it out of the machines rb_tree.

Fix it by using machine__create_kernel_maps(&self->host_machine)
directly.

Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
  • Loading branch information
Arnaldo Carvalho de Melo committed May 10, 2010
1 parent cdd5b75 commit d118f8b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/perf/util/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,10 @@ void perf_session__update_sample_type(struct perf_session *self)

int perf_session__create_kernel_maps(struct perf_session *self)
{
struct rb_root *machines = &self->machines;
int ret = machines__create_kernel_maps(machines, HOST_KERNEL_ID);
int ret = machine__create_kernel_maps(&self->host_machine);

if (ret >= 0)
ret = machines__create_guest_kernel_maps(machines);
ret = machines__create_guest_kernel_maps(&self->machines);
return ret;
}

Expand Down

0 comments on commit d118f8b

Please sign in to comment.