kernel_optimize_test/tools/perf/arch/s390
Thomas Richter 0b58a77ca8 perf annotate: Fix s390 target function disassembly
'perf annotate' displays function call assembler instructions with a
right arrow. Hitting enter on this line/instruction causes the browser
to disassemble this target function and show it on the screen.  On s390
this results in an error message 'The called function was not found.'

The function call assembly line parsing does not handle the s390 bras
and brasl instructions. Function call__parse expects the target as first
operand:

	callq	e9140 <__fxstat>

S390 has a register number as first operand:

	brasl	%r14,41d60 <abort>

Therefore the target addresses on s390 are always zero which is an
invalid address.

Introduce a s390 specific call parsing function which skips the first
operand on s390.

Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Link: http://lkml.kernel.org/r/20180307134325.96106-1-tmricht@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2018-03-08 10:05:59 -03:00
..
annotate perf annotate: Fix s390 target function disassembly 2018-03-08 10:05:59 -03:00
entry/syscalls perf s390: Rework system call table creation by using syscall.tbl 2018-02-15 10:06:08 -03:00
include tools arch s390: Do not include header files from the kernel sources 2017-12-18 11:56:13 -03:00
util perf s390: Fix reading cpuid model information 2018-02-19 09:16:01 -03:00
Build perf build: Add arch s390 objects building 2015-02-12 13:20:59 -03:00
Makefile perf s390: Rework system call table creation by using syscall.tbl 2018-02-15 10:06:08 -03:00