]> git.baikalelectronics.ru Git - kernel.git/commit
perf annotate: Handle variables in 'sub', 'or' and many other instructions
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 12 Apr 2018 19:28:18 +0000 (16:28 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 13 Apr 2018 13:00:05 +0000 (10:00 -0300)
commit52db5bc678a33688e305b17eb712a0c6197002a3
treea263d89f358b993c2f70fce7ce0f5ea79d451252
parent0dab7f9db5ad19480c07836641d80fb53fe6d6de
perf annotate: Handle variables in 'sub', 'or' and many other instructions

Just like is done for 'mov' and others that can have as source or
targets variables resolved by objdump, to make them more compact:

-               orb    $0x4,0x224d71(%rip)        # 226ca4 <_rtld_global+0xca4>
+               orb    $0x4,_rtld_global+0xca4

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Martin Liška <mliska@suse.cz>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com>
Cc: Thomas Richter <tmricht@linux.vnet.ibm.com>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-efex7746id4w4wa03nqxvh3m@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/arch/x86/annotate/instructions.c