Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1384068 > unrolled thread

Re: [PATCH V11 1/4] perf/powerpc: assign an id to each powerpc register

Started by"Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com>
First post2016-04-21 13:10 +0200
Last post2016-04-21 13:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH V11 1/4] perf/powerpc: assign an id to each powerpc  register "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com> - 2016-04-21 13:10 +0200

#1384068 — Re: [PATCH V11 1/4] perf/powerpc: assign an id to each powerpc register

From"Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com>
Date2016-04-21 13:10 +0200
SubjectRe: [PATCH V11 1/4] perf/powerpc: assign an id to each powerpc register
Message-ID<rqkEH-8dU-33@gated-at.bofh.it>
On 2016/02/20 10:32AM, Anju T wrote:
> The enum definition assigns an 'id' to each register in "struct pt_regs"
> of arch/powerpc. The order of these values in the enum definition are
> based on the corresponding macros in arch/powerpc/include/uapi/asm/ptrace.h.
> 
> Signed-off-by: Anju T <anju@linux.vnet.ibm.com>
> ---
>  arch/powerpc/include/uapi/asm/perf_regs.h | 50 +++++++++++++++++++++++++++++++
>  1 file changed, 50 insertions(+)
>  create mode 100644 arch/powerpc/include/uapi/asm/perf_regs.h

This patch doesn't enable anything and doesn't look to be useful by 
itself. Please merge this with your second patch.

- Naveen

> 
> diff --git a/arch/powerpc/include/uapi/asm/perf_regs.h b/arch/powerpc/include/uapi/asm/perf_regs.h
> new file mode 100644
> index 0000000..62b8a5e
> --- /dev/null
> +++ b/arch/powerpc/include/uapi/asm/perf_regs.h
> @@ -0,0 +1,50 @@
> +#ifndef _ASM_POWERPC_PERF_REGS_H
> +#define _ASM_POWERPC_PERF_REGS_H
> +
> +enum perf_event_powerpc_regs {
> +	PERF_REG_POWERPC_R0,
> +	PERF_REG_POWERPC_R1,
> +	PERF_REG_POWERPC_R2,
> +	PERF_REG_POWERPC_R3,
> +	PERF_REG_POWERPC_R4,
> +	PERF_REG_POWERPC_R5,
> +	PERF_REG_POWERPC_R6,
> +	PERF_REG_POWERPC_R7,
> +	PERF_REG_POWERPC_R8,
> +	PERF_REG_POWERPC_R9,
> +	PERF_REG_POWERPC_R10,
> +	PERF_REG_POWERPC_R11,
> +	PERF_REG_POWERPC_R12,
> +	PERF_REG_POWERPC_R13,
> +	PERF_REG_POWERPC_R14,
> +	PERF_REG_POWERPC_R15,
> +	PERF_REG_POWERPC_R16,
> +	PERF_REG_POWERPC_R17,
> +	PERF_REG_POWERPC_R18,
> +	PERF_REG_POWERPC_R19,
> +	PERF_REG_POWERPC_R20,
> +	PERF_REG_POWERPC_R21,
> +	PERF_REG_POWERPC_R22,
> +	PERF_REG_POWERPC_R23,
> +	PERF_REG_POWERPC_R24,
> +	PERF_REG_POWERPC_R25,
> +	PERF_REG_POWERPC_R26,
> +	PERF_REG_POWERPC_R27,
> +	PERF_REG_POWERPC_R28,
> +	PERF_REG_POWERPC_R29,
> +	PERF_REG_POWERPC_R30,
> +	PERF_REG_POWERPC_R31,
> +	PERF_REG_POWERPC_NIP,
> +	PERF_REG_POWERPC_MSR,
> +	PERF_REG_POWERPC_ORIG_R3,
> +	PERF_REG_POWERPC_CTR,
> +	PERF_REG_POWERPC_LNK,
> +	PERF_REG_POWERPC_XER,
> +	PERF_REG_POWERPC_CCR,
> +	PERF_REG_POWERPC_SOFTE,
> +	PERF_REG_POWERPC_TRAP,
> +	PERF_REG_POWERPC_DAR,
> +	PERF_REG_POWERPC_DSISR,
> +	PERF_REG_POWERPC_MAX,
> +};
> +#endif /* _ASM_POWERPC_PERF_REGS_H */
> -- 
> 2.1.0
> 

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web