[PATCH V3 2/4] powerpc: add helper to check if offset is within rel branch range

2016-12-19 Thread Anju T Sudhakar
y refers to 32MB on either side of the current instruction. This patch verifies whether the target address is within +/- 32MB range or not. Signed-off-by: Naveen N. Rao <naveen.n@linux.vnet.ibm.com> Signed-off-by: Anju T Sudhakar <a...@linux.vnet.ibm.com> --- arch/powerpc/incl

[PATCH V3 1/4] powerpc: asm/ppc-opcode.h: introduce __PPC_SH64()

2016-12-19 Thread Anju T Sudhakar
From: "Naveen N. Rao" Introduce __PPC_SH64() as a 64-bit variant to encode shift field in some of the shift and rotate instructions operating on double-words. Convert some of the BPF instruction macros to use the same. Signed-off-by: Naveen N. Rao

[PATCH V3 4/4] arch/powerpc: Optimize kprobe in kretprobe_trampoline

2016-12-19 Thread Anju T Sudhakar
Kprobe placed on the kretprobe_trampoline during boot time can be optimized, since the instruction at probe point is a 'nop'. Signed-off-by: Anju T Sudhakar <a...@linux.vnet.ibm.com> Acked-by: Masami Hiramatsu <mhira...@kernel.org> --- arch/powerpc/kernel/kprobes.c | 8

[PATCH V3 3/4] arch/powerpc: Implement Optprobes

2016-12-19 Thread Anju T Sudhakar
buffer allocated and the instruction being probed is within ?? 32MB. Signed-off-by: Anju T Sudhakar <a...@linux.vnet.ibm.com> Signed-off-by: Naveen N. Rao <naveen.n@linux.vnet.ibm.com> --- .../features/debug/optprobes/arch-support.txt | 2 +- arch/pow

[PATCH V3 0/4] OPTPROBES for powerpc

2016-12-19 Thread Anju T Sudhakar
ressed. - Description in the cover letter is modified a bit. Kindly let me know your suggestions and comments. Thanks, -Anju Anju T Sudhakar (2): arch/powerpc: Implement Optprobes arch/powerpc: Optimize kprobe in kretprobe_trampoline Naveen N. Rao (2): powerpc: asm/ppc-opcode.h: introduce __PP

Re: [PATCH V2 0/4] OPTPROBES for powerpc

2016-12-16 Thread Anju T Sudhakar
Hi Balbir, On Friday 16 December 2016 08:16 PM, Balbir Singh wrote: On 15/12/16 03:18, Anju T Sudhakar wrote: This is the V2 patchset of the kprobes jump optimization (a.k.a OPTPROBES)for powerpc. Kprobe being an inevitable tool for kernel developers, enhancing the performance of kprobe has

Re: [PATCH V2 3/4] arch/powerpc: Implement Optprobes

2016-12-16 Thread Anju T Sudhakar
Hi Masami, On Friday 16 December 2016 07:32 PM, Masami Hiramatsu wrote: On Wed, 14 Dec 2016 21:48:27 +0530 Anju T Sudhakar <a...@linux.vnet.ibm.com> wrote: Detour buffer contains instructions to create an in memory pt_regs. After the execution of the pre-handler, a call i

Re: [PATCH V2 2/4] powerpc: add helper to check if offset is within rel branch range

2016-12-16 Thread Anju T Sudhakar
Hi Masami, Thank you for reviewing the patch set. On Friday 16 December 2016 05:22 PM, Masami Hiramatsu wrote: On Wed, 14 Dec 2016 21:48:30 +0530 Anju T Sudhakar <a...@linux.vnet.ibm.com> wrote: From: "Naveen N. Rao" <naveen.n@linux.vnet.ibm.com> The coding i

[PATCH V2 2/4] powerpc: add helper to check if offset is within rel branch range

2016-12-14 Thread Anju T Sudhakar
From: "Naveen N. Rao" <naveen.n@linux.vnet.ibm.com> Signed-off-by: Naveen N. Rao <naveen.n@linux.vnet.ibm.com> Signed-off-by: Anju T Sudhakar <a...@linux.vnet.ibm.com> --- arch/powerpc/include/asm/code-patching.h | 1 + arch/powerpc/lib/

[PATCH V2 1/4] powerpc: asm/ppc-opcode.h: introduce __PPC_SH64()

2016-12-14 Thread Anju T Sudhakar
From: "Naveen N. Rao" Introduce __PPC_SH64() as a 64-bit variant to encode shift field in some of the shift and rotate instructions operating on double-words. Convert some of the BPF instruction macros to use the same. Signed-off-by: Naveen N. Rao

[PATCH V2 4/4] arch/powerpc: Optimize kprobe in kretprobe_trampoline

2016-12-14 Thread Anju T Sudhakar
Kprobe placed on the kretprobe_trampoline during boot time can be optimized, since the instruction at probe point is a 'nop'. Signed-off-by: Anju T Sudhakar <a...@linux.vnet.ibm.com> --- arch/powerpc/kernel/kprobes.c | 8 arch/powerpc/kernel/optprobes.c | 7 +++ 2 files c

[PATCH V2 3/4] arch/powerpc: Implement Optprobes

2016-12-14 Thread Anju T Sudhakar
buffer allocated and the instruction being probed is within ?? 32MB. Signed-off-by: Anju T Sudhakar <a...@linux.vnet.ibm.com> Signed-off-by: Naveen N. Rao <naveen.n@linux.vnet.ibm.com> --- .../features/debug/optprobes/arch-support.txt | 2 +- arch/pow

[PATCH V2 0/4] OPTPROBES for powerpc

2016-12-14 Thread Anju T Sudhakar
in V1 into a single patch. - Comments by Masami are addressed. - Some helper functions are implemented in separate patches. - Optimization for kprobe placed on the kretprobe_trampoline during boot time is implemented. Kindly let me know your suggestions and comments. Thanks, -Anju Anju T Su

Re: [PATCH 2/3] arch/powerpc : optprobes for powerpc core

2016-09-09 Thread Anju T Sudhakar
Hi Masami, Thank you for reviewing the patch. On Thursday 08 September 2016 10:17 PM, Masami Hiramatsu wrote: On Wed, 7 Sep 2016 15:03:11 +0530 Anju T Sudhakar <a...@linux.vnet.ibm.com> wrote: Instructions which can be emulated are suppliants for optimization. Before optimization

[PATCH 2/3] arch/powerpc : optprobes for powerpc core

2016-09-07 Thread Anju T Sudhakar
Instructions which can be emulated are suppliants for optimization. Before optimization ensure that the address range between the detour buffer allocated and the instruction being probed is within ?? 32MB. Signed-off-by: Anju T Sudhakar <a...@linux.vnet.ibm.com> --- arch/powerpc/inclu

[PATCH 3/3] arch/powerpc : Enable optprobes support in powerpc

2016-09-07 Thread Anju T Sudhakar
Mark optprobe 'ok' for powerpc Signed-off-by: Anju T Sudhakar <a...@linux.vnet.ibm.com> --- Documentation/features/debug/optprobes/arch-support.txt | 2 +- arch/powerpc/Kconfig| 1 + arch/powerpc/kernel/Makefile| 1 + 3

[PATCH 1/3] arch/powerpc : Add detour buffer support for optprobes

2016-09-07 Thread Anju T Sudhakar
slot for detour buffer is allocated from the reserved area. For the time being 64KB is reserved in memory for this purpose. Signed-off-by: Anju T Sudhakar <a...@linux.vnet.ibm.com> --- arch/powerpc/include/asm/kprobes.h | 24 +++ arch/powerpc/kernel/optprobes_head.S

[PATCH 0/3] OPTPROBES for powerpc

2016-09-07 Thread Anju T Sudhakar
kporbe(in case of branch instructions) is limited to unconditional branch instructions only, since the conditional branches are to be assessed carefully in SMP systems. - create_return_branch() is omitted. - Comments by Masami are addressed. Anju T Sudhakar (3): arch/powerpc : Add detour buffer s

[RFC PATCH v4 3/3] arch/powerpc : Enable optprobes support in powerpc

2016-05-31 Thread Anju T
Signed-off-by: Anju T <a...@linux.vnet.ibm.com> --- Documentation/features/debug/optprobes/arch-support.txt | 2 +- arch/powerpc/Kconfig| 1 + arch/powerpc/kernel/Makefile| 1 + 3 files changed, 3 insertions(+), 1 deletion(-)

[RFC PATCH v3 2/3] arch/powerpc : optprobes for powerpc core

2016-05-31 Thread Anju T
Instructions which can be emulated are suppliants for optimization. Before optimization ensure that the address range between the detour buffer allocated and the instruction being probed is within +/- 32MB. Signed-off-by: Anju T <a...@linux.vnet.ibm.com> --- arch/powerpc/kernel/optprobes.c

[RFC PATCH v3 1/3] arch/powerpc : Add detour buffer support for optprobes

2016-05-31 Thread Anju T
slot for detour buffer is allocated from the reserved area. For the time being 64KB is reserved in memory for this purpose. Signed-off-by: Anju T <a...@linux.vnet.ibm.com> --- arch/powerpc/include/asm/kprobes.h | 27 +++ arch/powerpc/kernel/optprobes_head.S

[RFC PATCH v3 0/3] OPTPROBES for powerpc

2016-05-31 Thread Anju T
w your suggestions and comments. Thanks -Anju Anju T (3): arch/powerpc : Add detour buffer support for optprobes arch/powerpc : optprobes for powerpc core arch/powerpc : Enable optprobes support in powerpc .../features/debug/optprobes/arch-support.txt | 2 +- arch/powerpc/K

Re: [RFC PATCH v2 2/3] arch/powerpc : optprobes for powerpc core

2016-05-24 Thread Anju T
Hi, On Friday 20 May 2016 06:07 PM, Masami Hiramatsu wrote: Hi Anju, Please see my comments below, On Thu, 19 May 2016 20:40:39 +0530 Anju T <a...@linux.vnet.ibm.com> wrote: ppc_get_optinsn_slot() and ppc_free_optinsn_slot() are geared towards the allocation and freeing of memor

[RFC PATCH v2 3/3] arch/powerpc : Enable optprobes support in powerpc

2016-05-19 Thread Anju T
Signed-off-by: Anju T <a...@linux.vnet.ibm.com> --- Documentation/features/debug/optprobes/arch-support.txt | 2 +- arch/powerpc/Kconfig| 1 + arch/powerpc/kernel/Makefile| 1 + 3 files changed, 3 insertions(+), 1 deletion(-)

[RFC PATCH v2 2/3] arch/powerpc : optprobes for powerpc core

2016-05-19 Thread Anju T
ppc_get_optinsn_slot() and ppc_free_optinsn_slot() are geared towards the allocation and freeing of memory from the area reserved for detour buffer. Signed-off-by: Anju T <a...@linux.vnet.ibm.com> --- arch/powerpc/kernel/optprobes.c | 480 1 file c

[RFC PATCH v2 1/3] arch/powerpc : Add detour buffer support for optprobes

2016-05-19 Thread Anju T
slot for detour buffer is allocated from the reserved area. For the time being 64KB is reserved in memory for this purpose. Signed-off-by: Anju T <a...@linux.vnet.ibm.com> --- arch/powerpc/include/asm/kprobes.h | 25 arch/powerpc/kernel/optprobes_head.S

[RFC PATCH v2 0/3] OPTPROBES for powerpc

2016-05-19 Thread Anju T
ressed. Kindly let me know your suggestions and comments. Thanks -Anju Anju T (3): arch/powerpc : Add detour buffer support for optprobes arch/powerpc : optprobes for powerpc core arch/powerpc : Enable optprobes support in powerpc .../features/debug/optprobes/arch-support.txt

Re: [RFC PATCH 2/3] arch/powerpc : optprobes for powerpc core

2016-05-19 Thread Anju T
Hi Masami, Thank you for reviewing the patch. On Wednesday 18 May 2016 08:43 PM, Masami Hiramatsu wrote: On Wed, 18 May 2016 02:09:37 +0530 Anju T <a...@linux.vnet.ibm.com> wrote: Instruction slot for detour buffer is allocated from the reserved area. For the time being 64KB is re

[RFC PATCH 3/3] arch/powerpc : Enable optprobes support in powerpc

2016-05-17 Thread Anju T
Signed-off-by: Anju T <a...@linux.vnet.ibm.com> --- Documentation/features/debug/optprobes/arch-support.txt | 2 +- arch/powerpc/Kconfig| 1 + arch/powerpc/kernel/Makefile| 1 + 3 files changed, 3 insertions(+), 1 deletion(-)

[RFC PATCH 2/3] arch/powerpc : optprobes for powerpc core

2016-05-17 Thread Anju T
Instruction slot for detour buffer is allocated from the reserved area. For the time being 64KB is reserved in memory for this purpose. ppc_get_optinsn_slot() and ppc_free_optinsn_slot() are geared towards the allocation and freeing of memory from this area. Signed-off-by: Anju T

[RFC PATCH 1/3] arch/powerpc : Add detour buffer support for optprobes

2016-05-17 Thread Anju T
-by: Anju T <a...@linux.vnet.ibm.com> --- arch/powerpc/include/asm/kprobes.h | 25 + arch/powerpc/kernel/optprobes_head.S | 104 +++ 2 files changed, 129 insertions(+) create mode 100644 arch/powerpc/kernel/optprobes_head.S diff --git a/arch/powerpc/i

Re: [PATCH V11 0/4]perf/powerpc: Add ability to sample intr machine state in powerpc

2016-04-18 Thread Anju T
On Saturday 20 February 2016 10:32 AM, Anju T wrote: This short patch series adds the ability to sample the interrupted machine state for each hardware sample. To test this patchset, Eg: $ perf record -I? # list supported registers output: available registers: r0 r1 r2 r3 r4 r5 r6 r7 r8

Re: [PATCH V11 0/4]perf/powerpc: Add ability to sample intr machine state in powerpc

2016-03-07 Thread Anju T
Hi, Any updates on this? On Saturday 20 February 2016 10:32 AM, Anju T wrote: This short patch series adds the ability to sample the interrupted machine state for each hardware sample. To test this patchset, Eg: $ perf record -I? # list supported registers output: available registers

[PATCH V2 4/4] tool/perf: Add sample_reg_mask to include all perf_regs

2016-02-19 Thread Anju T
From: Madhavan Srinivasan Add sample_reg_mask array with pt_regs registers. This is needed for printing supported regs ( -I? option). Signed-off-by: Madhavan Srinivasan --- tools/perf/arch/powerpc/util/Build | 1 +

[PATCH V11 3/4] tools/perf: Map the ID values with register names

2016-02-19 Thread Anju T
/vmlinux) Signed-off-by: Anju T <a...@linux.vnet.ibm.com> --- tools/perf/arch/powerpc/include/perf_regs.h | 69 + tools/perf/config/Makefile | 5 +++ 2 files changed, 74 insertions(+) create mode 100644 tools/perf/arch/powerpc/include/perf_

[PATCH V11 2/4] perf/powerpc: add support for sampling intr machine state

2016-02-19 Thread Anju T
enables sampling of the interrupted machine state. Signed-off-by: Anju T <a...@linux.vnet.ibm.com> --- arch/powerpc/Kconfig | 1 + arch/powerpc/perf/Makefile| 1 + arch/powerpc/perf/perf_regs.c | 91 +++ 3 files changed, 93 insertions(+)

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

2016-02-19 Thread Anju T
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 <a...@linux.vnet.ibm.com> --- arch

[PATCH V11 0/4]perf/powerpc: Add ability to sample intr machine state in powerpc

2016-02-19 Thread Anju T
re, it is removed from tools/perf/arch/powerpc/include/perf_regs.h - PERF_REGS_POWERPC_RESULT is removed. Changes from V1: - Solved the name missmatch issue in the from and signed-off field of the patch series. - Added necessary comments in the 3rd patch ie perf/powerpc ,as suggested by Maddy.

Re: [PATCH v10 3/4] tools/perf: Map the ID values with register names

2016-01-21 Thread Anju T
Hi mpe, On Wednesday 20 January 2016 04:16 PM, Michael Ellerman wrote: On Mon, 2016-01-11 at 15:58 +0530, Anju T wrote: diff --git a/tools/perf/arch/powerpc/include/perf_regs.h b/tools/perf/arch/powerpc/include/perf_regs.h new file mode 100644 index 000..93080f5 --- /dev/null +++ b/tools

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

2016-01-21 Thread Anju T
On Wednesday 20 January 2016 04:08 PM, Michael Ellerman wrote: Hi Anju, On Mon, 2016-01-11 at 15:58 +0530, 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 cor

Re: [PATCH V10 2/4] perf/powerpc: add support for sampling intr machine state

2016-01-21 Thread Anju T
Hi mpe, On Wednesday 20 January 2016 04:10 PM, Michael Ellerman wrote: On Mon, 2016-01-11 at 15:58 +0530, Anju T wrote: diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 9a7057e..c4ce60d 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -119,6 +119,7 @@ config PPC

[PATCH v10 3/4] tools/perf: Map the ID values with register names

2016-01-11 Thread Anju T
(/boot/vmlinux) Signed-off-by: Anju T <a...@linux.vnet.ibm.com> Reviewed-by : Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- tools/perf/arch/powerpc/include/perf_regs.h | 64 + tools/perf/config/Makefile | 5 +++ 2 files changed, 6

[PATCH V10 0/4] perf/powerpc: Add ability to sample intr machine state in powerpc

2016-01-11 Thread Anju T
s from V1: - Solved the name missmatch issue in the from and signed-off field of the patch series. - Added necessary comments in the 3rd patch ie perf/powerpc ,as suggested by Maddy. Anju T (3): perf/powerpc: assign an id to each powerpc register perf/powerpc: add support for sampling intr m

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

2016-01-11 Thread Anju T
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 <a...@linux.vnet.ibm.com> Reviewe

[PATCH V1 4/4] tool/perf: Add sample_reg_mask to include all perf_regs regs

2016-01-11 Thread Anju T
From: Madhavan Srinivasan Add sample_reg_mask array with pt_regs registers. This is needed for printing supported regs ( -I? option). Signed-off-by: Madhavan Srinivasan --- tools/perf/arch/powerpc/util/Build | 1 +

[PATCH V10 2/4] perf/powerpc: add support for sampling intr machine state

2016-01-11 Thread Anju T
enables sampling of the interrupted machine state. Signed-off-by: Anju T <a...@linux.vnet.ibm.com> Reviewed-by : Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- arch/powerpc/Kconfig | 1 + arch/powerpc/perf/Makefile| 1 + arch/powerpc/perf/perf

[PATCH V1 4/4] tool/perf: Add sample_reg_mask to include all perf_regs regs

2016-01-10 Thread Anju T
From: Madhavan Srinivasan Add sample_reg_mask array with pt_regs registers. This is needed for printing supported regs ( -I? option). Signed-off-by: Madhavan Srinivasan --- tools/perf/arch/powerpc/util/Build | 1 +

[PATCH v10 3/4] tools/perf: Map the ID values with register names

2016-01-10 Thread Anju T
(/boot/vmlinux) Signed-off-by: Anju T <a...@linux.vnet.ibm.com> Reviewed-by : Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- tools/perf/arch/powerpc/include/perf_regs.h | 64 + tools/perf/config/Makefile | 5 +++ 2 files changed, 6

[PATCH V10 0/4] perf/powerpc: Add ability to sample intr machine state in powerpc

2016-01-10 Thread Anju T
s from V1: - Solved the name missmatch issue in the from and signed-off field of the patch series. - Added necessary comments in the 3rd patch ie perf/powerpc ,as suggested by Maddy. Anju T (3): perf/powerpc: assign an id to each powerpc register perf/powerpc: add support for sampling intr m

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

2016-01-10 Thread Anju T
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 <a...@linux.vnet.ibm.com> Reviewe

[PATCH V10 2/4] perf/powerpc: add support for sampling intr machine state

2016-01-10 Thread Anju T
enables sampling of the interrupted machine state. Signed-off-by: Anju T <a...@linux.vnet.ibm.com> Reviewed-by : Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- arch/powerpc/Kconfig | 1 + arch/powerpc/perf/Makefile| 1 + arch/powerpc/perf/perf

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

2016-01-08 Thread Anju T
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 <a...@linux.vnet.ibm.com> Reviewe

[PATCH V8 2/4] perf/powerpc: add support for sampling intr machine state

2016-01-08 Thread Anju T
enables sampling of the interrupted machine state. Signed-off-by: Anju T <a...@linux.vnet.ibm.com> Reviewed-by : Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- arch/powerpc/Kconfig | 1 + arch/powerpc/perf/Makefile| 1 + arch/powerpc/perf/perf

[PATCH V8 3/4] tools/perf: Map the ID values with register names

2016-01-08 Thread Anju T
(/boot/vmlinux) Signed-off-by: Anju T <a...@linux.vnet.ibm.com> Reviewed-by : Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- tools/perf/arch/powerpc/include/perf_regs.h | 64 + tools/perf/config/Makefile | 5 +++ 2 files changed, 6

[PATCH V1 4/4] tool/perf: Add sample_reg_mask to include all perf_regs regs

2016-01-08 Thread Anju T
From: Madhavan Srinivasan Add sample_reg_mask array with pt_regs registers. This is needed for printing supported regs ( -I? option). Signed-off-by: Madhavan Srinivasan --- tools/perf/arch/powerpc/util/Build | 1 +

[PATCH V8 0/4] perf/powerpc: Add ability to sample intr machine state in powerpc

2016-01-08 Thread Anju T
- PERF_REGS_POWERPC_RESULT is removed. Changes from V1: - Solved the name missmatch issue in the from and signed-off field of the patch series. - Added necessary comments in the 3rd patch ie perf/powerpc ,as suggested by Maddy. Anju T (3): perf/powerpc: assign an id to each powerpc register

[PATCH V9 3/4] tools/perf: Map the ID values with register names

2016-01-08 Thread Anju T
(/boot/vmlinux) Signed-off-by: Anju T <a...@linux.vnet.ibm.com> Reviewed-by : Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- tools/perf/arch/powerpc/include/perf_regs.h | 64 + tools/perf/config/Makefile | 5 +++ 2 files changed, 6

[PATCH V9 0/4] perf/powerpc: Add ability to sample intr machine state in powerpc

2016-01-08 Thread Anju T
,as suggested by Maddy. Anju T (3): perf/powerpc: assign an id to each powerpc register perf/powerpc: add support for sampling intr machine state tools/perf: Map the ID values with register names Madhavan Srinivasan (1): tool/perf: Add sample_reg_mask to include all perf_regs regs arch

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

2016-01-08 Thread Anju T
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 <a...@linux.vnet.ibm.com> Reviewe

[PATCH V9 2/4] perf/powerpc: add support for sampling intr machine state

2016-01-08 Thread Anju T
enables sampling of the interrupted machine state. Signed-off-by: Anju T <a...@linux.vnet.ibm.com> Reviewed-by : Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- arch/powerpc/Kconfig | 1 + arch/powerpc/perf/Makefile| 1 + arch/powerpc/perf/perf

[PATCH V1 4/4] tool/perf: Add sample_reg_mask to include all perf_regs regs

2016-01-08 Thread Anju T
From: Madhavan Srinivasan Add sample_reg_mask array with pt_regs registers. This is needed for printing supported regs ( -I? option). Signed-off-by: Madhavan Srinivasan --- tools/perf/arch/powerpc/util/Build | 1 +

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

2016-01-06 Thread Anju T
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 <a...@linux.vnet.ibm.com> Reviewe

[PATCH V7 3/4] tools/perf: Map the ID values with register names

2016-01-06 Thread Anju T
(/boot/vmlinux) Signed-off-by: Anju T <a...@linux.vnet.ibm.com> Reviewed-by : Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- tools/perf/arch/powerpc/include/perf_regs.h | 65 + tools/perf/config/Makefile | 5 +++ 2 files changed, 7

[PATCH V7 0/4] perf/powerpc: Add ability to sample intr machine state in powerpc

2016-01-06 Thread Anju T
: - Solved the name missmatch issue in the from and signed-off field of the patch series. - Added necessary comments in the 3rd patch ie perf/powerpc ,as suggested by Maddy. Anju T (3): perf/powerpc: assign an id to each powerpc register perf/powerpc: add support for sampling intr machine state

[PATCH V7 2/4] perf/powerpc: add support for sampling intr machine state

2016-01-06 Thread Anju T
enables sampling of the interrupted machine state. Signed-off-by: Anju T <a...@linux.vnet.ibm.com> Reviewed-by : Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- arch/powerpc/Kconfig | 1 + arch/powerpc/perf/Makefile| 1 + arch/powerpc/perf/perf

[PATCH V1 4/4] tool/perf: Add sample_reg_mask to include all perf_regs regs

2016-01-06 Thread Anju T
From: Madhavan Srinivasan Add sample_reg_mask array with pt_regs registers. This is needed for printing supported regs ( -I? option). Signed-off-by: Madhavan Srinivasan --- tools/perf/arch/powerpc/util/Build | 1 +

[PATCH V1 4/4] tool/perf: Add sample_reg_mask to include all perf_regs regs

2015-12-13 Thread Anju T
From: Madhavan Srinivasan Add sample_reg_mask array with pt_regs registers. This is needed for printing supported regs ( -I? option). Signed-off-by: Madhavan Srinivasan --- tools/perf/arch/powerpc/util/Build | 1 +

[PATCH V6 2/4] perf/powerpc: add support for sampling intr machine state

2015-12-13 Thread Anju T
enables sampling of the interrupted machine state. Signed-off-by: Anju T <a...@linux.vnet.ibm.com> Reviewed-by : Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- arch/powerpc/Kconfig | 1 + arch/powerpc/perf/Makefile| 1 + arch/powerpc/perf/perf

[PATCH V6 0/4] perf/powerpc: Add ability to sample intr machine state in powerpc

2015-12-13 Thread Anju T
/arch/powerpc/include/perf_regs.h - PERF_REGS_POWERPC_RESULT is removed. Changes from V1: - Solved the name missmatch issue in the from and signed-off field of the patch series. - Added necessary comments in the 3rd patch ie perf/powerpc ,as suggested by Maddy. Anju T (3): perf/powerpc: assign

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

2015-12-13 Thread Anju T
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 <a...@linux.vnet.ibm.com> Reviewe

[PATCH V6 3/4] tools/perf: Map the ID values with register names

2015-12-13 Thread Anju T
(/boot/vmlinux) Signed-off-by: Anju T <a...@linux.vnet.ibm.com> Reviewed-by : Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- tools/perf/arch/powerpc/include/perf_regs.h | 65 + tools/perf/config/Makefile | 5 +++ 2 files changed, 7

Re: [PATCH V3 0/3] perf/powerpc:Add ability to sample intr machine state in powerpc

2015-11-05 Thread Anju T
Hi Denis, On Wednesday 04 November 2015 02:26 PM, Denis Kirjanov wrote: On 11/3/15, Anju T <a...@linux.vnet.ibm.com> wrote: This short patch series adds the ability to sample the interrupted machine state for each hardware sample. To test this patchset, Eg: $perf record -I ls //

Re: [PATCH V3 2/3] perf/powerpc :add support for sampling intr machine state

2015-11-03 Thread Anju T
Hi Michael, On Tuesday 03 November 2015 02:46 PM, Michael Ellerman wrote: On Tue, 2015-11-03 at 11:40 +0530, Anju T wrote: The perf infrastructure uses a bit mask to find out valid registers to display. Define a register mask for supported registers defined in asm/perf_regs.h. The bit

Re: [PATCH V3 2/3] perf/powerpc :add support for sampling intr machine state

2015-11-03 Thread Anju T
Hi Michael, On Tuesday 03 November 2015 02:46 PM, Michael Ellerman wrote: On Tue, 2015-11-03 at 11:40 +0530, Anju T wrote: The perf infrastructure uses a bit mask to find out valid registers to display. Define a register mask for supported registers defined in asm/perf_regs.h. The bit

[PATCH V3 0/3] perf/powerpc:Add ability to sample intr machine state in powerpc

2015-11-02 Thread Anju T
/config/Makefile is moved to the patch tools/perf. - The patchset is reordered. - perf_regs_load() function is used for the dwarf unwind test.Since it is not required here, it is removed from tools/perf/arch/powerpc/include/perf_regs.h - PERF_REGS_POWERPC_RESULT is removed. Anju T (3

[PATCH V3 1/3] perf/powerpc:add ability to sample intr machine state in power

2015-11-02 Thread Anju T
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 <a...@linux.vnet.ibm.com> --- arch

[PATCH V3 3/3] tools/perf:Map the ID values with register names

2015-11-02 Thread Anju T
Map ID values with corresponding register names.These names are then displayed when user issues perf record with the -I option followed by perf report/script with -D option. Signed-off-by: Anju T <a...@linux.vnet.ibm.com> --- tools/perf/arch/powerpc/include/perf_regs.h

[PATCH V3 2/3] perf/powerpc :add support for sampling intr machine state

2015-11-02 Thread Anju T
enables sampling of the interrupted machine state. Signed-off-by: Anju T <a...@linux.vnet.ibm.com> --- arch/powerpc/Kconfig | 1 + arch/powerpc/perf/Makefile| 2 + arch/powerpc/perf/perf_regs.c | 92 +++ 3 files changed, 95 insertions(+)

Re: [PATCH V2 0/3] perf/powerpc:Add ability to sample intr machine state in powerpc

2015-10-27 Thread Anju T
Hi Denis, On Monday 26 October 2015 06:47 PM, Denis Kirjanov wrote: On 10/26/15, Anju T <a...@linux.vnet.ibm.com> wrote: This short patch series add the ability to sample the interrupted machine state for each hardware sample Hi, how can we check your patch series without testing detail

[PATCH V2 2/3] tools/perf:Map the ID values with register names

2015-10-26 Thread Anju T
The id values are mapped with the corresponding register names. This names are displayed while using a perf report/perf script command. Signed-off-by: Anju T <a...@linux.vnet.ibm.com> --- tools/perf/arch/powerpc/include/perf_regs.h | 118 1 file change

[PATCH V2 0/3] perf/powerpc:Add ability to sample intr machine state in powerpc

2015-10-26 Thread Anju T
This short patch series add the ability to sample the interrupted machine state for each hardware sample Anju (3): perf/powerpc:add ability to sample intr machine state in power tools/perf:Map the ID values with register names perf/powerpc:add support for sampling intr machine state

[PATCH V2 3/3] perf/powerpc :add support for sampling intr machine state

2015-10-26 Thread Anju T
the "PERF" register ids to find offset of the register in 'struct pt_regs'. CONFIG_HAVE_PERF_REGS will enable sampling of the interrupted machine state. Signed-off-by: Anju T <a...@linux.vnet.ibm.com> --- arch/powerpc/Kconfig | 1 + arch/powerpc/perf/Makefile| 1 + a

[PATCH V2 1/3] perf/powerpc:add ability to sample intr machine state in power

2015-10-26 Thread Anju T
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 <a...@linux.vnet.ibm.com> --- arch

<    1   2   3