perf symbols: map_groups__find_symbol must return the map too
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 26 Mar 2010 15:30:40 +0000 (12:30 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 2 Apr 2010 19:27:43 +0000 (16:27 -0300)
commit7e5e1b1404c30db5f6bc3f5203b6c21c1d244f99
tree1203765ed3e60af2ba7682677ed2553c6226f058
parentc6e718ff8cdcf5e7855077687720b37c4a07650a
perf symbols: map_groups__find_symbol must return the map too

Tools need to know from which map in the map_group a symbol was resolved
to, so that, for isntance, we can annotate kernel modules symbols by
getting its precise name, etc.

Also add the _by_name variants for completeness.

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>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-kmem.c
tools/perf/util/map.c
tools/perf/util/map.h