perf annotate: Resolve symbols using objdump comment
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 11 May 2012 19:48:49 +0000 (16:48 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 11 May 2012 20:19:20 +0000 (17:19 -0300)
commit6de783b6f50f7f1db18a3fda0aa34b2e84b5771d
treeb5606aafa9e9703d433d8dff6ef931027832eb90
parente8ea1561952b04276cf4c02500e363de76c142aa
perf annotate: Resolve symbols using objdump comment

This:

     mov    0x95bbb6(%rip),%ecx        # ffffffff81ae8d04 <d_hash_shift>

Becomes:

     mov    d_hash_shift,%ecx

Ditto for many more instructions that take two operands.

Requested-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-i5opbyai2x6mn9e5yjmhx9k6@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c
tools/perf/util/annotate.h