[PATCH] selftests/powerpc: Fix uninitialized variable warning

2020-12-01 Thread Harish
t;Bad - no SEGV! (%c)\n", x); ^ cc1: all warnings being treated as errors Signed-off-by: Harish --- tools/testing/selftests/powerpc/mm/bad_accesses.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/powerpc/mm/bad_accesses.c b/tools/testing

[PATCH v3] selftests: powerpc: Fix CPU affinity for child process

2020-06-09 Thread Harish
: 00b7ec5c9cf3 ("selftests/powerpc: Import Anton's context_switch2 benchmark") Reported-by: Shirisha Ganta Signed-off-by: Sandipan Das Signed-off-by: Harish --- v2: https://lore.kernel.org/linuxppc-dev/20200609034005.520137-1-har...@linux.ibm.com/ Changes from v2: - Interchanged size

[PATCH v2] selftests: powerpc: Fix CPU affinity for child process

2020-06-08 Thread Harish
: 00b7ec5c9cf3 ("selftests/powerpc: Import Anton's context_switch2 benchmark") Reported-by: Shirisha Ganta Signed-off-by: Harish Signed-off-by: Sandipan Das --- .../powerpc/benchmarks/context_switch.c| 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --g

[PATCH] selftests: powerpc: Fix online CPU selection

2020-06-08 Thread Harish
Signed-off-by: Harish Signed-off-by: Sandipan Das --- .../powerpc/benchmarks/context_switch.c| 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/tools/testing/selftests/powerpc/benchmarks/context_switch.c b/tools/testing/selftests/powerpc/benchmarks

[RESEND][PATCH] selftests/vm: Fix vm tests build and run

2020-02-09 Thread Harish
A recent change overrides the ARCH env variable and hence runs using make fails with the following. $ make -C vm/ make: Entering directory '/home/harish/linux/tools/testing/selftests/vm' make --no-builtin-rules ARCH=ppc64le -C ../../../.. headers_install make[1]: Entering directory '/home/harish

[PATCH] Fix vm selftest to run tests with make

2019-12-12 Thread Harish
The last patch overrides the ARCH env variable and hence runs using make fails with the following. $ make -C vm/ make: Entering directory '/home/harish/linux/tools/testing/selftests/vm' make --no-builtin-rules ARCH=ppc64le -C ../../../.. headers_install make[1]: Entering directory '/home/harish

[RESEND PATCH] selftests/powerpc: Handle Makefile for unrecognized option

2019-11-13 Thread Harish
On older distributions like Sles12SP5 gcc does not recognize -no-pie option making the powerpc selftests build to fail Fixes the following: gcc: error: unrecognized command line option ‘-no-pie’ Signed-off-by: Harish --- tools/testing/selftests/powerpc/pmu/ebb/Makefile | 7 ++- 1 file

[PATCH] selftests/powerpc: Handle Makefile for unrecognized option

2019-09-23 Thread Harish
On older distributions like Sles12SP5 gcc does not recognize -no-pie option making the powerpc selftests build to fail Fixes the following: gcc: error: unrecognized command line option ‘-no-pie’ Signed-off-by: Harish --- tools/testing/selftests/powerpc/pmu/ebb/Makefile | 7 ++- 1 file

[PATCH] selftests/powerpc: Fix: use ucontext_t instead of struct ucontext

2018-02-12 Thread Harish
’: alignment_handler.c:68:5: error: dereferencing pointer to incomplete type ‘struct ucontext’ ucp->uc_mcontext.gp_regs[PT_NIP] += 4; ^~ Signed-off-by: Harish <har...@linux.vnet.ibm.com> --- tools/testing/selftests/powerpc/alignment/alignment_handler.c | 2 +- 1 file changed, 1 insertion(+), 1