perf symbols: Fix up map end too on modular kernels with no modules installed
authorArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 20 Feb 2010 21:53:13 +0000 (19:53 -0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 21 Feb 2010 16:48:24 +0000 (17:48 +0100)
commit10fe12ef631a7e85022ed26304a37f033a6a95b8
tree1317aa1a7a293df85158005299adcde107736cb4
parentf7e7ee36757f68778700cde1aaed89e1d23e59fd
perf symbols: Fix up map end too on modular kernels with no modules installed

In 2161db9 we stopped failing when not finding modules when
asked too, but then the kernel maps (just one, for vmlinux)
wasn't having its ->end field correctly set up, so symbols were
not being found for the vmlinux map because its range was 0-0.

Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1266702793-29434-1-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/util/event.c
tools/perf/util/symbol.c