perf symbols: Fix kallsyms kernel/module map splitting
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 29 Nov 2010 14:44:15 +0000 (12:44 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 30 Nov 2010 16:47:51 +0000 (14:47 -0200)
commit8a9533123f43f2cdb3eb601c17ff2ad336882eff
tree4bf9158766d02bae702c9d741f3d1486a90d41d0
parentee6dcfa40a50fe12a3ae0fb4d2653c66c3ed6556
perf symbols: Fix kallsyms kernel/module map splitting

On ARM, module addresss space is ahead of kernel space, so the module
symbols are handled before kernel symbol in dso__split_kallsyms, then
was causing one map to be created for each kernel symbol.

Reported-by: Ming Lei <tom.leiming@gmail.com>
Tested-by: Ming Lei <tom.leiming@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Ming Lei <tom.leiming@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <20101124144540.GB15875@ghostprotocols.net>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/symbol.c