perf session: create_kernel_maps should use ->host_machine
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 10 May 2010 15:51:05 +0000 (12:51 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 10 May 2010 15:51:05 +0000 (12:51 -0300)
commitd118f8ba6ac2af2bf11d40cba657c813f0f39ca2
tree3df771498254ed1e6ed374031cd32e7f4e51e753
parentcdd5b75b0cd24c4d6a98b12a219217b1ccfe2586
perf session: create_kernel_maps should use ->host_machine

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>
tools/perf/util/session.c