summaryrefslogtreecommitdiffstats
path: root/tools/perf/arch/sh/Makefile
diff options
context:
space:
mode:
authorMatt Fleming <matt@console-pimps.org>2010-07-10 16:10:39 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2010-07-12 11:25:10 -0300
commit0dd9ac63ce26ec87b080ca9c3e6efed33c23ace6 (patch)
tree5eeb48758ee738a09a06b0e3ea9511885b967ae4 /tools/perf/arch/sh/Makefile
parent8bd0e1be25c43a9fbd33a8de06449088879d527a (diff)
downloadlinux-0dd9ac63ce26ec87b080ca9c3e6efed33c23ace6.tar.gz
linux-0dd9ac63ce26ec87b080ca9c3e6efed33c23ace6.tar.bz2
linux-0dd9ac63ce26ec87b080ca9c3e6efed33c23ace6.zip
perf tools: Add DWARF register lookup for SH
Implement get_arch_regstr() for SH so that, given a DWARF register number, the corresponding symbolic name of that register can be looked up. Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> Cc: Ingo Molnar <mingo@elte.hu> Cc: Ian Munsie <imunsie@au.ibm.com> LKML-Reference: <e55812819ad18c2ceca5651ac7698a2af46180d7.1278774279.git.matt@console-pimps.org> Signed-off-by: Matt Fleming <matt@console-pimps.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/arch/sh/Makefile')
-rw-r--r--tools/perf/arch/sh/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/arch/sh/Makefile b/tools/perf/arch/sh/Makefile
new file mode 100644
index 000000000000..15130b50dfe3
--- /dev/null
+++ b/tools/perf/arch/sh/Makefile
@@ -0,0 +1,4 @@
+ifndef NO_DWARF
+PERF_HAVE_DWARF_REGS := 1
+LIB_OBJS += $(OUTPUT)arch/$(ARCH)/util/dwarf-regs.o
+endif