]> git.baikalelectronics.ru Git - kernel.git/commit
perf symbols: Add some heuristics for choosing the best duplicate symbol
authorAnton Blanchard <anton@samba.org>
Wed, 24 Aug 2011 06:40:17 +0000 (16:40 +1000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 23 Sep 2011 17:36:36 +0000 (14:36 -0300)
commit3944d0d9f8e32f7c1b19eba24132754ac7d06a21
treeee1593aa431242c12d9be39b7330dc70e5c4b57a
parent6a4b3764d36b660bc3e91179515e4a3ed503a6ad
perf symbols: Add some heuristics for choosing the best duplicate symbol

Try and pick the best symbol based on a few heuristics:

-  Prefer a non weak symbol over a weak one
-  Prefer a global symbol over a non global one
-  Prefer a symbol with less underscores (idea taken from kallsyms.c)
-  If all else fails, choose the symbol with the longest name

Cc: Eric B Munson <emunson@mgebm.net>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20110824065243.161953371@samba.org
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/symbol.c