From: Masami Hiramatsu <mhiramat@redhat.com>
To: Ian Munsie <imunsie@au1.ibm.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>,
linux-kernel@vger.kernel.org,
Arnaldo Carvalho de Melo <acme@redhat.com>,
Paul Mackerras <paulus@samba.org>, Ingo Molnar <mingo@elte.hu>,
linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH 2/2] perf probe: Add PowerPC DWARF register number mappings
Date: Mon, 12 Apr 2010 08:40:08 -0400 [thread overview]
Message-ID: <4BC314A8.80904@redhat.com> (raw)
In-Reply-To: <1271054596-26561-3-git-send-email-imunsie@au.ibm.com>
Hi Ian,
Ian Munsie wrote:
> From: Ian Munsie <imunsie@au.ibm.com>
>
> This patch 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 patch depends on functionality in the powerpc/next tree, though it
> will compile fine without it. Specifically this patch depends on
> 359e4284a3f37aba7fd06d993863de2509d86f54
>
> Signed-off-by: Ian Munsie <imunsie@au.ibm.com>
> ---
> tools/perf/arch/powerpc/Makefile | 1 +
> tools/perf/arch/powerpc/include/arch_dwarf-regs.h | 6 ++
> tools/perf/arch/powerpc/util/dwarf-regs.c | 88 +++++++++++++++++++++
> 3 files changed, 95 insertions(+), 0 deletions(-)
> create mode 100644 tools/perf/arch/powerpc/Makefile
> create mode 100644 tools/perf/arch/powerpc/include/arch_dwarf-regs.h
> create mode 100644 tools/perf/arch/powerpc/util/dwarf-regs.c
>
> diff --git a/tools/perf/arch/powerpc/Makefile b/tools/perf/arch/powerpc/Makefile
> new file mode 100644
> index 0000000..1191403
> --- /dev/null
> +++ b/tools/perf/arch/powerpc/Makefile
> @@ -0,0 +1 @@
> +LIB_OBJS += $(OUTPUT)arch/$(ARCH)/util/dwarf-regs.o
> diff --git a/tools/perf/arch/powerpc/include/arch_dwarf-regs.h b/tools/perf/arch/powerpc/include/arch_dwarf-regs.h
> new file mode 100644
> index 0000000..a7fc588
> --- /dev/null
> +++ b/tools/perf/arch/powerpc/include/arch_dwarf-regs.h
> @@ -0,0 +1,6 @@
> +#ifndef _PREF_ARCH_X86_DWARF_REGS_H
> +#define _PREF_ARCH_X86_DWARF_REGS_H
_PREF_ARCH_PPC_DWARF_REGS_H? :)
> +
> +#define get_arch_regstr(n) get_arch_regstr(n)
> +
> +#endif
Thank you,
--
Masami Hiramatsu
e-mail: mhiramat@redhat.com
next prev parent reply other threads:[~2010-04-12 12:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-12 6:43 Ian Munsie
2010-04-12 6:43 ` [PATCH 1/2] perf: Move arch specific code into separate arch directory Ian Munsie
2010-04-12 6:43 ` [PATCH 2/2] perf probe: Add PowerPC DWARF register number mappings Ian Munsie
2010-04-12 12:40 ` Masami Hiramatsu [this message]
2010-04-12 12:37 ` [PATCH 1/2] perf: Move arch specific code into separate arch directory Masami Hiramatsu
2010-04-13 8:44 ` Ian Munsie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BC314A8.80904@redhat.com \
--to=mhiramat@redhat.com \
--cc=a.p.zijlstra@chello.nl \
--cc=acme@redhat.com \
--cc=imunsie@au1.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mingo@elte.hu \
--cc=paulus@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).