]> git.baikalelectronics.ru Git - kernel.git/commit
perf annotate: Handle s390 PC relative load and store instruction.
authorThomas Richter <tmricht@linux.vnet.ibm.com>
Thu, 8 Mar 2018 12:09:13 +0000 (13:09 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 8 Mar 2018 14:30:53 +0000 (11:30 -0300)
commitc62d77669e9a09c1bc7b5c4b8c14531d05b777da
treebf0374ab8d41f17e23fa3189c8d87c4fa428a1de
parent6b368b0f6873beffb999e4d2118c2e6a849e2628
perf annotate: Handle s390 PC relative load and store instruction.

S390 has several load and store instructions with target operand
addressing relative to the program counter, for example lrl, lgrl, strl,
stgrl.

These instructions are handled similar to x86. Objdump output displays
those instructions as:

   9595c: c4 2d 00 09 9c 54   lgrl   %r7,1c8540 <mp_+0x60>

This output is parsed (like on x86) and perf annotate shows those lines
as:

   lgrl   %r7,mp_+0x60

This patch handles the s390 specific instruction parsing for PC relative
load and store instructions.

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/20180308120913.14802-1-tmricht@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/arch/s390/annotate/instructions.c