diff options
author | Anton Blanchard <[email protected]> | 2011-08-24 16:40:17 +1000 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2011-09-23 14:36:36 -0300 |
commit | 694bf407b06113f5e0f71764756f11903126fec0 (patch) | |
tree | ee1593aa431242c12d9be39b7330dc70e5c4b57a /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 318779086086f46127a249878eeebb3dc80578eb (diff) |
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 <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Anton Blanchard <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions