[PATCH V6 3/4] x86, perf: Add conditional branch filtering support

2014-05-22 Thread Anshuman Khandual
This patch adds conditional branch filtering support, enabling it for PERF_SAMPLE_BRANCH_COND in perf branch stack sampling framework by utilizing an available software filter X86_BR_JCC. Signed-off-by: Anshuman Khandual Reviewed-by: Stephane Eranian Reviewed-by: Andi Kleen --- arch/x86

[PATCH V6 1/4] perf: Add new conditional branch filter PERF_SAMPLE_BRANCH_COND

2014-05-22 Thread Anshuman Khandual
instructions. Signed-off-by: Anshuman Khandual Reviewed-by: Stephane Eranian Reviewed-by: Andi Kleen --- include/uapi/linux/perf_event.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h index 853bc1c..696f69b4

[PATCH V6 4/4] perf, documentation: Description for conditional branch filter

2014-05-22 Thread Anshuman Khandual
Adding documentation support for conditional branch filter. Signed-off-by: Anshuman Khandual Reviewed-by: Stephane Eranian Reviewed-by: Andi Kleen --- tools/perf/Documentation/perf-record.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/perf/Documentation/perf

[PATCH] elf, coredump: Extract only the active register set during core dump

2014-05-22 Thread Anshuman Khandual
of the active context of the process and may not be useful. This patch will make sure that only the active part of the register set are captured during the core dump process which will reduce the core dump size. Signed-off-by: Anshuman Khandual --- NOTE: Pedro Alves has mentioned that producing

Re: [PATCH V2 2/3] powerpc, ptrace: Enable support for transactional memory register sets

2014-05-23 Thread Anshuman Khandual
On 05/22/2014 10:38 AM, Anshuman Khandual wrote: > I agree. > >> > >> > Maybe we should leave this for another day, and have tm_spr_active >> > return 0 instead of -ENODEV when the machine doesn't have the hardware, >> > or not install that hook

[PATCH V3 0/3] Add new PowerPC specific ELF core notes

2014-05-23 Thread Anshuman Khandual
g GPR- TM RN GPR[1]: 3 TM RN GPR[2]: 4 TM RN NIP: 197c TM RN LINK: 1904 TM RN CCR: 2000422 GPR[1] PASSED GPR[2] PASSED ---TM checkpointed FPR- TM CH FPR[1]: 1 TM CH FPR[2]: 2 TM CH FPSCR: 0 FPR[1] PASSED FPR[2] PASSED ---TM running FPR- TM RN FPR[1]: 3 TM RN FPR[2]: 4

[PATCH V3 2/3] powerpc, ptrace: Enable support for transactional memory register sets

2014-05-23 Thread Anshuman Khandual
core note types added previously in this regard. (1) NT_PPC_TM_SPR (2) NT_PPC_TM_CGPR (3) NT_PPC_TM_CFPR (4) NT_PPC_TM_CVMX Signed-off-by: Anshuman Khandual --- arch/powerpc/include/asm/switch_to.h | 8 + arch/powerpc/kernel/process.c| 24 ++ arch

[PATCH V3 3/3] powerpc, ptrace: Enable support for miscellaneous registers

2014-05-23 Thread Anshuman Khandual
This patch enables get and set of miscellaneous registers through ptrace PTRACE_GETREGSET/PTRACE_SETREGSET interface by implementing new powerpc specific register set REGSET_MISC support corresponding to the new ELF core note NT_PPC_MISC added previously in this regard. Signed-off-by: Anshuman

[PATCH V3 1/3] elf: Add some new PowerPC specifc note sections

2014-05-23 Thread Anshuman Khandual
This patch adds four new note sections for transactional memory and one note section for some miscellaneous registers. This addition of new elf note sections extends the existing elf ABI without affecting it in any manner. Signed-off-by: Anshuman Khandual --- include/uapi/linux/elf.h | 5

Re: [V6 00/11] perf: New conditional branch filter

2014-05-28 Thread Anshuman Khandual
On 05/27/2014 05:39 PM, Stephane Eranian wrote: > I have been looking at those patches and ran some tests. > And I found a few issues so far. > > I am running: > $ perf record -j any_ret -e cycles:u test_program > $ perf report -D > > Most entries are okay and match the filter, however some do no

Re: [PATCH] ptrace: Fix PTRACE_GETREGSET/PTRACE_SETREGSET in code documentation

2014-05-04 Thread Anshuman Khandual
On 05/01/2014 07:43 PM, Pedro Alves wrote: > On 04/28/2014 12:00 PM, Anshuman Khandual wrote: >> The current documentation is bit misleading and does not explicitly >> specify that iov.len need to be initialized failing which kernel >> may just ignore the ptrace request and

[PATCH V2 0/3] Add new PowerPC specific ELF core notes

2014-05-05 Thread Anshuman Khandual
197c TM RN LINK: 1904 TM RN CCR: 222 GPR[1] PASSED GPR[2] PASSED ---TM checkpointed FPR- TM CH FPR[1]: 1 TM CH FPR[2]: 2 TM CH FPSCR: 0 FPR[1] PASSED FPR[2] PASSED ---TM running FPR- TM RN FPR[1]: 3 TM RN FPR[2]: 4 TM RN FPSCR: 0 FPR[1] PASSED FPR[2] PASSED ---Running misce

[PATCH V2 3/3] powerpc, ptrace: Enable support for miscellaneous registers

2014-05-05 Thread Anshuman Khandual
This patch enables get and set of miscellaneous registers through ptrace PTRACE_GETREGSET/PTRACE_SETREGSET interface by implementing new powerpc specific register set REGSET_MISC support corresponding to the new ELF core note NT_PPC_MISC added previously in this regard. Signed-off-by: Anshuman

[PATCH V2 2/3] powerpc, ptrace: Enable support for transactional memory register sets

2014-05-05 Thread Anshuman Khandual
core note types added previously in this regard. (1) NT_PPC_TM_SPR (2) NT_PPC_TM_CGPR (3) NT_PPC_TM_CFPR (4) NT_PPC_TM_CVMX Signed-off-by: Anshuman Khandual --- arch/powerpc/include/asm/switch_to.h | 8 + arch/powerpc/kernel/process.c| 24 ++ arch

[PATCH V2 1/3] elf: Add some new PowerPC specifc note sections

2014-05-05 Thread Anshuman Khandual
This patch adds four new note sections for transactional memory and one note section for some miscellaneous registers. This addition of new elf note sections extends the existing elf ABI without affecting it in any manner. Signed-off-by: Anshuman Khandual --- include/uapi/linux/elf.h | 5

[V6 04/11] perf, documentation: Description for conditional branch filter

2014-05-05 Thread Anshuman Khandual
Adding documentation support for conditional branch filter. Signed-off-by: Anshuman Khandual Reviewed-by: Stephane Eranian Reviewed-by: Andi Kleen --- tools/perf/Documentation/perf-record.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/perf/Documentation/perf

[V6 07/11] powerpc, perf: Change the name of HW PMU branch filter tracking variable

2014-05-05 Thread Anshuman Khandual
lity. Signed-off-by: Anshuman Khandual --- arch/powerpc/perf/core-book3s.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/perf/core-book3s.c b/arch/powerpc/perf/core-book3s.c index 66bea54..1d7e909 100644 --- a/arch/powerpc/perf/core-book3s.c +++ b/ar

[V6 09/11] powerpc, perf: Enable SW filtering in branch stack sampling framework

2014-05-05 Thread Anshuman Khandual
apply any it's filters and leave it upto the SW to handle them all. Its the PMU code's responsibility to uphold this protocol to be able to conform to the overall OR semantic of perf branch stack sampling framework. Signed-off-by: Anshuman Khandual --- arch/powerpc/incl

[V6 11/11] powerpc, perf: Enable privilege mode SW branch filters

2014-05-05 Thread Anshuman Khandual
privilege mode branch filters itself. Signed-off-by: Anshuman Khandual --- arch/powerpc/perf/core-book3s.c | 53 +++-- arch/powerpc/perf/power8-pmu.c | 13 -- 2 files changed, 52 insertions(+), 14 deletions(-) diff --git a/arch/powerpc/perf/core-book3s.c b

[V6 06/11] powerpc, perf: Re-arrange PMU based branch filter processing in POWER8

2014-05-05 Thread Anshuman Khandual
This patch does some code re-arrangements to make it clear that it ignores any separate privilege level branch filter request and does not support any combinations of HW PMU branch filters. Signed-off-by: Anshuman Khandual --- arch/powerpc/perf/power8-pmu.c | 21 +++-- 1 file

[V6 01/11] perf: Add PERF_SAMPLE_BRANCH_COND

2014-05-05 Thread Anshuman Khandual
This patch introduces new branch filter PERF_SAMPLE_BRANCH_COND which will extend the existing perf ABI. Various architectures can provide this functionality with either with HW filtering support (if present) or with SW filtering of captured branch instructions. Signed-off-by: Anshuman Khandual

[V6 02/11] perf, tool: Conditional branch filter 'cond' added to perf record

2014-05-05 Thread Anshuman Khandual
Adding perf record support for new branch stack filter criteria PERF_SAMPLE_BRANCH_COND. Signed-off-by: Anshuman Khandual Reviewed-by: Stephane Eranian Reviewed-by: Andi Kleen --- tools/perf/builtin-record.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/builtin-record.c b

[V6 03/11] x86, perf: Add conditional branch filtering support

2014-05-05 Thread Anshuman Khandual
This patch adds conditional branch filtering support, enabling it for PERF_SAMPLE_BRANCH_COND in perf branch stack sampling framework by utilizing an available software filter X86_BR_JCC. Signed-off-by: Anshuman Khandual Reviewed-by: Stephane Eranian Reviewed-by: Andi Kleen --- arch/x86

[V6 08/11] powerpc, lib: Add new branch analysis support functions

2014-05-05 Thread Anshuman Khandual
Generic powerpc branch analysis support added in the code patching library which will help the subsequent patch on SW based filtering of branch records in perf. Signed-off-by: Anshuman Khandual --- arch/powerpc/include/asm/code-patching.h | 16 +++ arch/powerpc/lib/code-patching.c

[V6 05/11] powerpc, perf: Re-arrange BHRB processing

2014-05-05 Thread Anshuman Khandual
This patch cleans up some existing indentation problem and re-organizes the BHRB processing code with an helper function named `update_branch_entry` making it more readable. This patch does not change any functionality. Signed-off-by: Anshuman Khandual --- arch/powerpc/perf/core-book3s.c | 102

[V6 10/11] power8, perf: Adapt BHRB PMU configuration to work with SW filters

2014-05-05 Thread Anshuman Khandual
to meet those protocols. POWER8 PMU can only handle one HW based branch filter request at any point of time. For all other combinations PMU will pass it on to the SW. Signed-off-by: Anshuman Khandual --- arch/powerpc/perf/power8-pmu.c | 50 -- 1 file

[V6 00/11] perf: New conditional branch filter

2014-05-05 Thread Anshuman Khandual
[.] ld-2.11.2.so [.] malloc Please refer to the V4 version of the patchset to learn about the sample test case and it's makefile. Anshuman Khandual (11): perf: Add PERF_SAMPLE_BRANCH_COND perf, tool: Conditional branch filter '

Re: [V6 00/11] perf: New conditional branch filter

2014-06-02 Thread Anshuman Khandual
On 06/02/2014 06:29 PM, Stephane Eranian wrote: > On Wed, May 28, 2014 at 10:04 AM, Anshuman Khandual > wrote: >> On 05/27/2014 05:39 PM, Stephane Eranian wrote: >>> I have been looking at those patches and ran some tests. >>> And I found a few issues so far. &g

[V5 09/11] powerpc, perf: Enable SW filtering in branch stack sampling framework

2014-02-05 Thread Anshuman Khandual
apply any it's filters and leave it upto the SW to handle them all. Its the PMU code's responsibility to uphold this protocol to be able to conform to the overall OR semantic of perf branch stack sampling framework. Signed-off-by: Anshuman Khandual --- arch/powerpc/incl

[V5 02/11] perf: Add PERF_SAMPLE_BRANCH_COND

2014-02-05 Thread Anshuman Khandual
This patch introduces new branch filter PERF_SAMPLE_BRANCH_COND which will extend the existing perf ABI. Various architectures can provide this functionality with either with HW filtering support (if present) or with SW filtering of captured branch instructions. Signed-off-by: Anshuman Khandual

[V5 11/11] powerpc, perf: Enable privilege mode SW branch filters

2014-02-05 Thread Anshuman Khandual
privilege mode branch filters itself. Signed-off-by: Anshuman Khandual --- arch/powerpc/perf/core-book3s.c | 53 +++-- arch/powerpc/perf/power8-pmu.c | 13 -- 2 files changed, 52 insertions(+), 14 deletions(-) diff --git a/arch/powerpc/perf/core-book3s.c b

[V5 01/11] powerpc, perf: Re-arrange BHRB processing

2014-02-05 Thread Anshuman Khandual
This patch cleans up some existing indentation problem and re-organizes the BHRB processing code with an helper function named `update_branch_entry` making it more readable. This patch does not change any functionality. Signed-off-by: Anshuman Khandual --- arch/powerpc/perf/core-book3s.c | 102

[V5 05/11] x86, perf: Add conditional branch filtering support

2014-02-05 Thread Anshuman Khandual
This patch adds conditional branch filtering support, enabling it for PERF_SAMPLE_BRANCH_COND in perf branch stack sampling framework by utilizing an available software filter X86_BR_JCC. Signed-off-by: Anshuman Khandual Reviewed-by: Stephane Eranian --- arch/x86/kernel/cpu

[V5 10/11] power8, perf: Adapt BHRB PMU configuration to work with SW filters

2014-02-05 Thread Anshuman Khandual
to meet those protocols. POWER8 PMU can only handle one HW based branch filter request at any point of time. For all other combinations PMU will pass it on to the SW. Signed-off-by: Anshuman Khandual --- arch/powerpc/perf/power8-pmu.c | 50 -- 1 file

[V5 08/11] powerpc, lib: Add new branch analysis support functions

2014-02-05 Thread Anshuman Khandual
Generic powerpc branch analysis support added in the code patching library which will help the subsequent patch on SW based filtering of branch records in perf. Signed-off-by: Anshuman Khandual --- arch/powerpc/include/asm/code-patching.h | 16 +++ arch/powerpc/lib/code-patching.c

[V5 07/11] powerpc, perf: Change the name of HW PMU branch filter tracking variable

2014-02-05 Thread Anshuman Khandual
lity. Signed-off-by: Anshuman Khandual --- arch/powerpc/perf/core-book3s.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/perf/core-book3s.c b/arch/powerpc/perf/core-book3s.c index 8a44dc1..468f58c 100644 --- a/arch/powerpc/perf/core-book3s.c +++ b/ar

[V5 06/11] perf, documentation: Description for conditional branch filter

2014-02-05 Thread Anshuman Khandual
Adding documentation support for conditional branch filter. Signed-off-by: Anshuman Khandual Reviewed-by: Stephane Eranian --- tools/perf/Documentation/perf-record.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/perf/Documentation/perf-record.txt b/tools/perf

[V5 04/11] perf, tool: Conditional branch filter 'cond' added to perf record

2014-02-05 Thread Anshuman Khandual
Adding perf record support for new branch stack filter criteria PERF_SAMPLE_BRANCH_COND. Signed-off-by: Anshuman Khandual Reviewed-by: Stephane Eranian --- tools/perf/builtin-record.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c

[V5 03/11] powerpc, perf: Re-arrange PMU based branch filter processing in POWER8

2014-02-05 Thread Anshuman Khandual
This patch does some code re-arrangements to make it clear that it ignores any separate privilege level branch filter request and does not support any combinations of HW PMU branch filters. Signed-off-by: Anshuman Khandual --- arch/powerpc/perf/power8-pmu.c | 21 +++-- 1 file

[V5 00/11] perf: New conditional branch filter

2014-02-05 Thread Anshuman Khandual
[.] __libc_memalign 0.01%cprog [unknown] [.] ld-2.11.2.so [.] malloc Please refer to the V4 version of the patchset to learn about the sample test case and it's makefile. Anshuman Khandual (11): powerpc, perf

Re: [PATCH V4 08/10] powerpc, perf: Enable SW filtering in branch stack sampling framework

2013-12-09 Thread Anshuman Khandual
hat's not enough. Please send a precursor patch which moves > this logic out into a helper function. Hey Michael, I believe this patch should be able to take care of this. commit d66d729715cabe0cfd8e34861a6afa8ad639ddf3 Author: Anshuman Khandual Date: Tue Dec 10 11:10:06 2013 +053

Re: [PATCH V4 07/10] powerpc, lib: Add new branch instruction analysis support functions

2013-12-09 Thread Anshuman Khandual
On 12/09/2013 11:51 AM, Michael Ellerman wrote: > On Wed, 2013-04-12 at 10:32:39 UTC, Anshuman Khandual wrote: >> Generic powerpc branch instruction analysis support added in the code >> patching library which will help the subsequent patch on SW based >> filtering of branch

Re: [PATCH V4 09/10] power8, perf: Change BHRB branch filter configuration

2013-12-17 Thread Anshuman Khandual
On 12/18/2013 05:38 AM, Michael Ellerman wrote: > On Fri, 2013-12-13 at 13:50 +0530, Anshuman Khandual wrote: >> On 12/09/2013 11:51 AM, Michael Ellerman wrote: >>> >>> As I said in my comments on version 3 which you ignored: >>> >>> I think it wo

Re: [PATCH V4 07/10] powerpc, lib: Add new branch instruction analysis support functions

2013-12-20 Thread Anshuman Khandual
On 12/10/2013 11:39 AM, Anshuman Khandual wrote: > On 12/09/2013 11:51 AM, Michael Ellerman wrote: >> On Wed, 2013-04-12 at 10:32:39 UTC, Anshuman Khandual wrote: >>> Generic powerpc branch instruction analysis support added in the code >>> patching library which will h

Re: [PATCH V4 08/10] powerpc, perf: Enable SW filtering in branch stack sampling framework

2013-12-20 Thread Anshuman Khandual
On 12/09/2013 11:51 AM, Michael Ellerman wrote: > On Wed, 2013-04-12 at 10:32:40 UTC, Anshuman Khandual wrote: >> This patch enables SW based post processing of BHRB captured branches >> to be able to meet more user defined branch filtration criteria in perf >> branch sta

Re: [PATCH V4 10/10] powerpc, perf: Cleanup SW branch filter list look up

2013-12-20 Thread Anshuman Khandual
On 12/09/2013 11:51 AM, Michael Ellerman wrote: > On Wed, 2013-04-12 at 10:32:42 UTC, Anshuman Khandual wrote: >> This patch adds enumeration for all available SW branch filters >> in powerpc book3s code and also streamlines the look for the >> SW branch filter entries while

Re: [PATCH V4 08/10] powerpc, perf: Enable SW filtering in branch stack sampling framework

2013-12-23 Thread Anshuman Khandual
On 12/24/2013 08:59 AM, Michael Ellerman wrote: > On Fri, 2013-12-20 at 16:31 +0530, Anshuman Khandual wrote: >> On 12/09/2013 11:51 AM, Michael Ellerman wrote: >>> On Wed, 2013-04-12 at 10:32:40 UTC, Anshuman Khandual wrote: >>>> + >>>> + if (bh

Re: [PATCH V3 0/3] Add new PowerPC specific ELF core notes

2014-10-07 Thread Anshuman Khandual
On 07/24/2014 12:22 PM, Sam Bobroff wrote: >> Outstanding Issues >> == >> (1) Running DSCR register value inside a transaction does not seem to be >> saved >> at thread.dscr when the process stops for ptrace examination. > > Since this is fixed by 96d016108640bc2b7fb0ee800737f

Re: [PATCH V10 00/28] Add new powerpc specific ELF core notes

2016-05-09 Thread Anshuman Khandual
On 05/06/2016 05:19 PM, Michael Ellerman wrote: > On Tue, 2016-02-16 at 14:29 +0530, Anshuman Khandual wrote: > >> >This patch series adds twelve new ELF core note sections which can >> > be used with existing ptrace request PTRACE_GETREGSET-SETREGSET for >

[PATCH V10 06/28] powerpc, ptrace: Adapt gpr32_get, gpr32_set functions for transaction

2016-02-16 Thread Anshuman Khandual
This patch splits gpr32_get, gpr32_set functions to accommodate in transaction ptrace requests implemented in patches later in the series. Signed-off-by: Anshuman Khandual --- arch/powerpc/kernel/ptrace.c | 64 +++- 1 file changed, 51 insertions(+), 13

[PATCH V10 01/28] elf: Add powerpc specific core note sections

2016-02-16 Thread Anshuman Khandual
sets, EBB related register set etc. Addition of these new ELF core note sections extends the existing ELF ABI on powerpc arch without affecting it in any manner. Signed-off-by: Anshuman Khandual --- include/uapi/linux/elf.h | 12 1 file changed, 12 insertions(+) diff --git a

[PATCH V10 02/28] powerpc, process: Add the function flush_tmregs_to_thread

2016-02-16 Thread Anshuman Khandual
This patch creates a function flush_tmregs_to_thread which will then be used by subsequent patches in this series. The function checks for self tracing ptrace interface attempts while in the TM context and logs appropriate warning message. Signed-off-by: Anshuman Khandual --- arch/powerpc

[PATCH V10 17/28] selftests, powerpc: Add ptrace tests for EBB

2016-02-16 Thread Anshuman Khandual
This patch adds ptrace interface test for EBB specific registers. This also adds some generic ptrace interface based helper functions to be used by other patches later on in the series. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/Makefile | 3 +- tools

[PATCH V10 19/28] selftests, powerpc: Add ptrace tests for GPR/FPR registers in TM

2016-02-16 Thread Anshuman Khandual
This patch adds ptrace interface test for GPR/FPR registers inside TM context. This adds ptrace interface based helper functions related to checkpointed GPR/FPR access. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/ptrace/Makefile| 3 +- .../selftests/powerpc/ptrace

[PATCH V10 21/28] selftests, powerpc: Add ptrace tests for TAR, PPR, DSCR registers

2016-02-16 Thread Anshuman Khandual
This patch adds ptrace interface test for TAR, PPR, DSCR registers. This also adds ptrace interface based helper functions related to TAR, PPR, DSCR register access. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/ptrace/Makefile| 3 +- .../testing/selftests/powerpc

[PATCH V10 12/28] powerpc, ptrace: Enable NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR

2016-02-16 Thread Anshuman Khandual
and REGSET_TM_CDSCR in powerpc corresponding to the ELF core note sections added. It implements the get, set and active functions for all these new register sets added. Signed-off-by: Anshuman Khandual --- arch/powerpc/kernel/ptrace.c | 178 +++ 1 file

[PATCH V10 24/28] selftests, powerpc: Add ptrace tests for VSX, VMX registers

2016-02-16 Thread Anshuman Khandual
This patch adds ptrace interface test for VSX, VMX registers. This also adds ptrace interface based helper functions related to VSX, VMX registers access. This also adds some assembly helper functions related to VSX and VMX registers. Signed-off-by: Anshuman Khandual --- tools/testing/selftests

[PATCH V10 26/28] selftests, powerpc: Add ptrace tests for VSX, VMX registers in suspended TM

2016-02-16 Thread Anshuman Khandual
This patch adds ptrace interface test for VSX, VMX registers inside suspended TM context. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/ptrace/Makefile| 3 +- .../selftests/powerpc/ptrace/ptrace-tm-spd-vsx.c | 212 + 2 files changed, 214

[PATCH V10 27/28] selftests, powerpc: Add ptrace tests for TM SPR registers

2016-02-16 Thread Anshuman Khandual
This patch adds ptrace interface test for TM SPR registers. This also adds ptrace interface based helper functions related to TM SPR registers access. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/ptrace/Makefile| 2 +- .../selftests/powerpc/ptrace/ptrace-tm-spr.c

[PATCH V10 28/28] selftests, powerpc: Add .gitignore file for ptrace executables

2016-02-16 Thread Anshuman Khandual
This patch adds a .gitignore file for all the executables in the ptrace test directory thus making invisible with git status query. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/ptrace/.gitignore | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 tools

[PATCH V10 25/28] selftests, powerpc: Add ptrace tests for VSX, VMX registers in TM

2016-02-16 Thread Anshuman Khandual
This patch adds ptrace interface test for VSX, VMX registers inside TM context. This also adds ptrace interface based helper functions related to chckpointed VSX, VMX registers access. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/ptrace/Makefile| 3

[PATCH V10 23/28] selftests, powerpc: Add ptrace tests for TAR, PPR, DSCR in suspended TM

2016-02-16 Thread Anshuman Khandual
This patch adds ptrace interface test for TAR, PPR, DSCR registers inside suspended TM context. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/ptrace/Makefile| 2 +- .../selftests/powerpc/ptrace/ptrace-tm-spd-tar.c | 184 + 2 files changed, 185

[PATCH V10 22/28] selftests, powerpc: Add ptrace tests for TAR, PPR, DSCR in TM

2016-02-16 Thread Anshuman Khandual
This patch adds ptrace interface test for TAR, PPR, DSCR registers inside TM context. This also adds ptrace interface based helper functions related to checkpointed TAR, PPR, DSCR register access. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/ptrace/Makefile| 2

[PATCH V10 20/28] selftests, powerpc: Add ptrace tests for GPR/FPR registers in suspended TM

2016-02-16 Thread Anshuman Khandual
This patch adds ptrace interface test for GPR/FPR registers inside suspended TM context. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/ptrace/Makefile| 2 +- .../selftests/powerpc/ptrace/ptrace-tm-spd-gpr.c | 319 + 2 files changed, 320

[PATCH V10 18/28] selftests, powerpc: Add ptrace tests for GPR/FPR registers

2016-02-16 Thread Anshuman Khandual
This patch adds ptrace interface test for GPR/FPR registers. This adds ptrace interface based helper functions related to GPR/FPR access and some assembly helper functions related to GPR/FPR registers. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/ptrace/Makefile| 3

[PATCH V10 15/28] selftests, powerpc: Move 'reg.h' file outside of 'ebb' sub directory

2016-02-16 Thread Anshuman Khandual
This patch moves 'reg.h' file from pmu 'ebb' sub directory to the powerpc root directory to make all the register definitions and instructions available for tests present in other subsystems. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/pmu/ebb/ebb.c

[PATCH V10 16/28] selftests, powerpc: Add more SPR numbers, TM & VMX instructions to 'reg.h'

2016-02-16 Thread Anshuman Khandual
This patch adds SPR number for TAR, PPR, DSCR special purpose registers. It also adds TM, VSX, VMX related instructions which will then be used by patches later in the series. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/reg.h | 21 + 1 file changed

[PATCH V10 13/28] powerpc, ptrace: Enable support for NT_PPPC_TAR, NT_PPC_PPR, NT_PPC_DSCR

2016-02-16 Thread Anshuman Khandual
corresponding to the ELF core note sections added in this regad. It implements the get, set and active functions for all these new register sets added. Signed-off-by: Anshuman Khandual --- arch/powerpc/kernel/ptrace.c | 117 +++ 1 file changed, 117

[PATCH V10 14/28] powerpc, ptrace: Enable support for EBB registers

2016-02-16 Thread Anshuman Khandual
. It also implements the get, set and active functions for this new register sets added. Signed-off-by: Anshuman Khandual --- arch/powerpc/include/uapi/asm/elf.h | 3 + arch/powerpc/kernel/ptrace.c| 147 2 files changed, 150 insertions(+) diff --git a

[PATCH V10 11/28] powerpc, ptrace: Enable support for TM SPR state

2016-02-16 Thread Anshuman Khandual
, set and active functions for this new register set added. Signed-off-by: Anshuman Khandual --- arch/powerpc/include/uapi/asm/elf.h | 1 + arch/powerpc/kernel/ptrace.c| 143 +++- 2 files changed, 143 insertions(+), 1 deletion(-) diff --git a/arch/powerpc

[PATCH V10 10/28] powerpc, ptrace: Enable support for NT_PPC_CVSX

2016-02-16 Thread Anshuman Khandual
the get, set and active functions for this new register set added. Signed-off-by: Anshuman Khandual --- arch/powerpc/include/uapi/asm/elf.h | 1 + arch/powerpc/kernel/ptrace.c| 129 2 files changed, 130 insertions(+) diff --git a/arch/powerpc/include

[PATCH V10 09/28] powerpc, ptrace: Enable support for NT_PPC_CVMX

2016-02-16 Thread Anshuman Khandual
the get, set and active functions for this new register set added. Signed-off-by: Anshuman Khandual --- arch/powerpc/include/uapi/asm/elf.h | 1 + arch/powerpc/kernel/ptrace.c| 158 2 files changed, 159 insertions(+) diff --git a/arch/powerpc/include

[PATCH V10 05/28] powerpc, ptrace: Enable in transaction NT_PPC_VSX ptrace requests

2016-02-16 Thread Anshuman Khandual
transaction is active. This patch makes these functions adapt to situations when the transaction is active. Signed-off-by: Anshuman Khandual --- arch/powerpc/kernel/ptrace.c | 64 1 file changed, 64 insertions(+) diff --git a/arch/powerpc/kernel/ptrace.c b/arch

[PATCH V10 04/28] powerpc, ptrace: Enable in transaction NT_PPC_VMX ptrace requests

2016-02-16 Thread Anshuman Khandual
is active. This patch makes these functions adapt to situations when the transaction is active. Signed-off-by: Anshuman Khandual --- arch/powerpc/kernel/ptrace.c | 90 ++-- 1 file changed, 87 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kernel

[PATCH V10 08/28] powerpc, ptrace: Enable support for NT_PPC_CFPR

2016-02-16 Thread Anshuman Khandual
the get, set and active functions for this new register set added. Signed-off-by: Anshuman Khandual --- arch/powerpc/kernel/ptrace.c | 126 +++ 1 file changed, 126 insertions(+) diff --git a/arch/powerpc/kernel/ptrace.c b/arch/powerpc/kernel/ptrace.c index

[PATCH V10 03/28] powerpc, ptrace: Enable in transaction NT_PRFPREG ptrace requests

2016-02-16 Thread Anshuman Khandual
transaction is active. This patch makes these functions adapt to situations when the transaction is active. Signed-off-by: Anshuman Khandual --- arch/powerpc/kernel/ptrace.c | 93 ++-- 1 file changed, 89 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/kernel

[PATCH V10 07/28] powerpc, ptrace: Enable support for NT_PPC_CGPR

2016-02-16 Thread Anshuman Khandual
the get, set and active functions for this new register set added. Signed-off-by: Anshuman Khandual --- arch/powerpc/kernel/ptrace.c | 222 +++ 1 file changed, 222 insertions(+) diff --git a/arch/powerpc/kernel/ptrace.c b/arch/powerpc/kernel/ptrace.c index

[PATCH V10 00/28] Add new powerpc specific ELF core notes

2016-02-16 Thread Anshuman Khandual
register set - Renamed flush_tmreg_to_thread as flush_tmregs_to_thread - Fixed 32 bit checkpointed GPR support - Changed commit messages accordingly Anshuman Khandual (28): elf: Add powerpc specific core note sections powerpc, process: Add the function flush_tmregs_to_thread powerpc, ptrace

Re: [PATCH V4 7/8] powerpc, ptrace: Enable support for miscellaneous debug registers

2014-11-13 Thread Anshuman Khandual
On 11/11/2014 10:56 AM, Anshuman Khandual wrote: > This patch enables get and set of miscellaneous debug registers through > ptrace PTRACE_GETREGSET-PTRACE_SETREGSET interface by implementing new > powerpc specific register set REGSET_MISC support corresponding to the > new E

[PATCH V6 5/9] powerpc, ptrace: Enable support for transactional memory register sets

2014-12-01 Thread Anshuman Khandual
core note types added previously in this regard. (1) NT_PPC_TM_SPR (2) NT_PPC_TM_CGPR (3) NT_PPC_TM_CFPR (4) NT_PPC_TM_CVMX Signed-off-by: Anshuman Khandual --- arch/powerpc/include/uapi/asm/elf.h | 2 + arch/powerpc/kernel/ptrace.c| 714

[PATCH V6 8/9] selftests, powerpc: Make GIT ignore all binaries related to TM

2014-12-01 Thread Anshuman Khandual
This patch includes all the TM test binaries into the .gitignore file listing in the same directory. This will make sure that GIT ignores all of them while displaying status. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/tm/.gitignore | 2 ++ 1 file changed, 2 insertions

[PATCH V6 2/9] powerpc, process: Add the function flush_tmregs_to_thread

2014-12-01 Thread Anshuman Khandual
This patch creates a function flush_tmregs_to_thread which will then be used by subsequent patches in this series. The function checks for self tracing ptrace interface attempts while in the TM context and logs appropriate warning message. Signed-off-by: Anshuman Khandual --- arch/powerpc

[PATCH V6 3/9] powerpc, ptrace: Enable fpr_(get/set) for transactional memory

2014-12-01 Thread Anshuman Khandual
This patch enables the fpr_get which gets the running value of all the FPR registers and the fpr_set which sets the running value of of all the FPR registers to accommodate in transaction ptrace interface based requests. Signed-off-by: Anshuman Khandual --- arch/powerpc/kernel/ptrace.c | 110

[PATCH V6 6/9] powerpc, ptrace: Enable support for miscellaneous debug registers

2014-12-01 Thread Anshuman Khandual
: Anshuman Khandual --- arch/powerpc/include/uapi/asm/elf.h | 1 + arch/powerpc/kernel/ptrace.c| 131 2 files changed, 132 insertions(+) diff --git a/arch/powerpc/include/uapi/asm/elf.h b/arch/powerpc/include/uapi/asm/elf.h index fdc8e2f..a41bd98 100644

[PATCH V6 9/9] selftests: Make GIT ignore all binaries in powerpc test suite

2014-12-01 Thread Anshuman Khandual
This patch includes all of the powerpc test binaries into the .gitignore file listing in their respective directories. This will make sure that GIT ignores all of these test binaries while displaying status. Signed-off-by: Anshuman Khandual --- .../testing/selftests/powerpc/copyloops/.gitignore

[PATCH V4 0/8] Add new PowerPC specific ELF core notes

2014-11-10 Thread Anshuman Khandual
PPR: 4 (PASSED) success: tm_ptrace Anshuman Khandual (8): elf: Add new PowerPC specifc core note sections powerpc, process: Add functions flush_tm_state, flush_tmregs_to_thread powerpc, process: Merge functions __switch_to_tm and tm_reclaim_task powerpc, ptrace: Enable fpr_(get

[PATCH V4 1/8] elf: Add new PowerPC specifc core note sections

2014-11-10 Thread Anshuman Khandual
This patch adds four new core note sections for PowerPC transactional memory and one core note section for general miscellaneous debug registers. These addition of new elf core note sections extends the existing elf ABI without affecting it in any manner. Signed-off-by: Anshuman Khandual

[PATCH V4 7/8] powerpc, ptrace: Enable support for miscellaneous debug registers

2014-11-10 Thread Anshuman Khandual
: Anshuman Khandual --- arch/powerpc/include/uapi/asm/elf.h | 1 + arch/powerpc/kernel/ptrace.c| 102 2 files changed, 103 insertions(+) diff --git a/arch/powerpc/include/uapi/asm/elf.h b/arch/powerpc/include/uapi/asm/elf.h index fdc8e2f..a41bd98 100644

[PATCH V4 4/8] powerpc, ptrace: Enable fpr_(get/set) for transactional memory

2014-11-10 Thread Anshuman Khandual
This patch enables the fpr_get which gets the running value of all the FPR registers and the fpr_set which sets the running value of of all the FPR registers to accommodate in transaction ptrace interface based requests. Signed-off-by: Anshuman Khandual --- arch/powerpc/kernel/ptrace.c | 103

[PATCH V4 8/8] selftests, powerpc: Add new test case for TM related ptrace interfaces

2014-11-10 Thread Anshuman Khandual
compares the received values against the expected values to verify whether it passed the test or not. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/tm/Makefile| 2 +- tools/testing/selftests/powerpc/tm/tm-ptrace.c | 529 + 2 files changed, 530

[PATCH V4 5/8] powerpc, ptrace: Enable vr_(get/set) for transactional memory

2014-11-10 Thread Anshuman Khandual
This patch enables the vr_get which gets the running value of all the VMX registers and the vr_set which sets the running value of of all the VMX registers to accommodate in transaction ptrace interface based requests. Signed-off-by: Anshuman Khandual --- arch/powerpc/kernel/ptrace.c | 94

[PATCH V4 3/8] powerpc, process: Merge functions __switch_to_tm and tm_reclaim_task

2014-11-10 Thread Anshuman Khandual
The function tm_reclaim_task is only called from the function __switch_to_tm. This patch merges these two functions to make it more readable without changing the functionality in any way. Signed-off-by: Anshuman Khandual --- arch/powerpc/kernel/process.c | 20 1 file

[PATCH V4 6/8] powerpc, ptrace: Enable support for transactional memory register sets

2014-11-10 Thread Anshuman Khandual
core note types added previously in this regard. (1) NT_PPC_TM_SPR (2) NT_PPC_TM_CGPR (3) NT_PPC_TM_CFPR (4) NT_PPC_TM_CVMX Signed-off-by: Anshuman Khandual --- arch/powerpc/include/uapi/asm/elf.h | 2 + arch/powerpc/kernel/ptrace.c| 666

[PATCH V4 2/8] powerpc, process: Add functions flush_tm_state, flush_tmregs_to_thread

2014-11-10 Thread Anshuman Khandual
This patch creates a new function called flush_tm_state to flush the existing transactional memory state from the thread. It also creates a function called flush_tmregs_to_thread which will then be used on subsequent patches in this series. Signed-off-by: Anshuman Khandual --- arch/powerpc

Re: [PATCH V4 7/8] powerpc, ptrace: Enable support for miscellaneous debug registers

2014-11-21 Thread Anshuman Khandual
On 11/14/2014 03:30 PM, Denis Kirjanov wrote: > On 11/13/14, Anshuman Khandual wrote: >> > On 11/11/2014 10:56 AM, Anshuman Khandual wrote: >>> >> This patch enables get and set of miscellaneous debug registers through >>> >> ptrace PTRACE_GETREGSET-PTRA

Re: [PATCH V4 6/8] powerpc, ptrace: Enable support for transactional memory register sets

2014-11-21 Thread Anshuman Khandual
On 11/19/2014 02:48 AM, Sukadev Bhattiprolu wrote: > Anshuman Khandual [khand...@linux.vnet.ibm.com] wrote: > | This patch enables get and set of transactional memory related register > | sets through PTRACE_GETREGSET-PTRACE_SETREGSET interface by implementing > | four new powe

Re: [PATCH V4 2/8] powerpc, process: Add functions flush_tm_state, flush_tmregs_to_thread

2014-11-21 Thread Anshuman Khandual
On 11/11/2014 10:56 AM, Anshuman Khandual wrote: > This patch creates a new function called flush_tm_state to flush > the existing transactional memory state from the thread. It also > creates a function called flush_tmregs_to_thread which will then > be used on subsequent patches in

Re: [PATCH V4 1/8] elf: Add new PowerPC specifc core note sections

2014-11-24 Thread Anshuman Khandual
On 11/22/2014 05:13 AM, Andrew Morton wrote: > On Tue, 11 Nov 2014 10:56:30 +0530 Anshuman Khandual > wrote: > >> This patch adds four new core note sections for PowerPC transactional >> memory and one core note section for general miscellaneous debug registers. >>

[V5 0/7] Add new powerpc specific ELF core notes

2014-11-25 Thread Anshuman Khandual
RN FPR[31]: 0 (PASSED) Testing TM running MISC debug registers: TM RN DSCR: 32 (PASSED) TM RN TAR: 3c (PASSED) TM RN PPR: 4 (PASSED) success: tm_ptrace Anshuman Khandual (7): elf: Add new powerpc specifc core note sections powerpc, process: Add the function flush_tmregs_to_thread

[V5 4/7] powerpc, ptrace: Enable vr_(get/set) for transactional memory

2014-11-25 Thread Anshuman Khandual
This patch enables the vr_get which gets the running value of all the VMX registers and the vr_set which sets the running value of of all the VMX registers to accommodate in transaction ptrace interface based requests. Signed-off-by: Anshuman Khandual --- arch/powerpc/kernel/ptrace.c | 94

<    3   4   5   6   7   8   9   10   11   12   >