From: Jiri Olsa <jolsa@redhat.com>
To: Anju T <anju@linux.vnet.ibm.com>
Cc: mpe@ellerman.id.au, khandual@linux.vnet.ibm.com,
linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,
maddy@linux.vnet.ibm.com, dsahern@gmail.com,
hemant@linux.vnet.ibm.com, naveen.n.rao@linux.vnet.ibm.com,
acme@redhat.com, sukadev@linux.vnet.ibm.com
Subject: Re: [PATCH V7 3/4] tools/perf: Map the ID values with register names
Date: Wed, 6 Jan 2016 18:44:53 +0100 [thread overview]
Message-ID: <20160106174453.GB30771@krava.brq.redhat.com> (raw)
In-Reply-To: <1452073551-13737-4-git-send-email-anju@linux.vnet.ibm.com>
On Wed, Jan 06, 2016 at 03:15:50PM +0530, Anju T wrote:
SNIP
> + [PERF_REG_POWERPC_GPR28] = "gpr28",
> + [PERF_REG_POWERPC_GPR29] = "gpr29",
> + [PERF_REG_POWERPC_GPR30] = "gpr30",
> + [PERF_REG_POWERPC_GPR31] = "gpr31",
> + [PERF_REG_POWERPC_NIP] = "nip",
> + [PERF_REG_POWERPC_MSR] = "msr",
> + [PERF_REG_POWERPC_ORIG_R3] = "orig_r3",
> + [PERF_REG_POWERPC_CTR] = "ctr",
> + [PERF_REG_POWERPC_LNK] = "lnk",
> + [PERF_REG_POWERPC_XER] = "xer",
> + [PERF_REG_POWERPC_CCR] = "ccr",
> + [PERF_REG_POWERPC_TRAP] = "trap",
> + [PERF_REG_POWERPC_DAR] = "dar",
> + [PERF_REG_POWERPC_DSISR] = "dsisr"
> +};
> +
> +static inline const char *perf_reg_name(int id)
> +{
> +
extra line ^^^ ;-)
> + return reg_names[id];
> +}
> +#endif /* ARCH_PERF_REGS_H */
> diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile
jirka
next prev parent reply other threads:[~2016-01-06 17:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-06 9:45 [PATCH V7 0/4] perf/powerpc: Add ability to sample intr machine state in powerpc Anju T
2016-01-06 9:45 ` [PATCH V7 1/4] perf/powerpc: assign an id to each powerpc register Anju T
2016-01-06 9:45 ` [PATCH V7 2/4] perf/powerpc: add support for sampling intr machine state Anju T
2016-01-06 9:45 ` [PATCH V7 3/4] tools/perf: Map the ID values with register names Anju T
2016-01-06 17:44 ` Jiri Olsa [this message]
2016-01-06 9:45 ` [PATCH V1 4/4] tool/perf: Add sample_reg_mask to include all perf_regs regs Anju T
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=20160106174453.GB30771@krava.brq.redhat.com \
--to=jolsa@redhat.com \
--cc=acme@redhat.com \
--cc=anju@linux.vnet.ibm.com \
--cc=dsahern@gmail.com \
--cc=hemant@linux.vnet.ibm.com \
--cc=khandual@linux.vnet.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=maddy@linux.vnet.ibm.com \
--cc=mpe@ellerman.id.au \
--cc=naveen.n.rao@linux.vnet.ibm.com \
--cc=sukadev@linux.vnet.ibm.com \
/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
all inboxes | Powered by JetHome®