]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
s390/perf: define common DWARF register string table
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>
Wed, 8 Nov 2017 08:01:12 +0000 (09:01 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 16 Nov 2017 14:06:13 +0000 (15:06 +0100)
commita9fc2db0a8abf51c81122799c5ae4808f2324b6d
tree7327258f0fa6a4e70d87d91c3d1db04faaabcdd6
parentf704ef44602fbf403e6722c7ed13f62d17e8cb20
s390/perf: define common DWARF register string table

Instead of defining DWARF register to string table in dwarf-regs-table.h
and dwarf-regs.c, use a common table in dwarf-regs-table.h.

Ensure that the DWARF register table is up-to-date with
http://refspecs.linuxfoundation.org/ELF/zSeries/lzsabi0_s390/x1542.html.

For unwinding with libdw, also ensure to correctly setup the DWARF
register frame according to the register mappings.  Currently, libdw
supports up to 32 registers only.

Suggested-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Reviewed-and-tested-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
tools/perf/arch/s390/include/dwarf-regs-table.h
tools/perf/arch/s390/util/dwarf-regs.c
tools/perf/arch/s390/util/unwind-libdw.c