perf probe: Add PowerPC DWARF register number mappings
authorIan Munsie <imunsie@au.ibm.com>
Tue, 20 Apr 2010 06:58:33 +0000 (16:58 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 22 Apr 2010 03:48:31 +0000 (13:48 +1000)
commitfead7960f0b645348fa4757100f4d57654bf9ffa
tree022a8a17496181da89e03782620a916ae2848813
parentcd932c593995abee1d1a8a0bfe608f7d103d87ad
perf probe: Add PowerPC DWARF register number mappings

This adds mappings from the register numbers from DWARF to the
register names used in the PowerPC Regs and Stack Access API.  This
allows perf probe to be used to record variable contents on PowerPC.

This requires the functionality represented by the config symbol
HAVE_REGS_AND_STACK_ACCESS_API in order to function, although it will
compile without it.  That functionality is added for PowerPC in commit
359e4284 ("powerpc: Add kprobe-based event tracer").

Signed-off-by: Ian Munsie <imunsie@au.ibm.com>
Acked-by: Masami Hiramatsu <mhiramat@redhat.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
tools/perf/arch/powerpc/Makefile [new file with mode: 0644]
tools/perf/arch/powerpc/util/dwarf-regs.c [new file with mode: 0644]