[PATCH 0/2] selftests: fix for KBUILD_OUTPUT

2017-03-26 Thread Bamvor Jian Zhang
ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE -C tools/testing/selftests TARGETS=xxx make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE -C tools/testing/selftests TARGETS=xxx clean Bamvor Jian Zhang (2): selftests: fix the broken individual test for x86 selftests: net: support KBUILD_OUTPUT

[PATCH 0/2] selftests: fix for KBUILD_OUTPUT

2017-03-26 Thread Bamvor Jian Zhang
ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE -C tools/testing/selftests TARGETS=xxx make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE -C tools/testing/selftests TARGETS=xxx clean Bamvor Jian Zhang (2): selftests: fix the broken individual test for x86 selftests: net: support KBUILD_OUTPUT

[PATCH 2/2] selftests: net: support KBUILD_OUTPUT for reuseport_bpf_numa

2017-03-26 Thread Bamvor Jian Zhang
reuseport_bpf_numa is not supported by KBUILD_OUTPUT machanism in net subset. This patch fix this by adding $(OUTPUT) before the target. Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> --- tools/testing/selftests/net/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 de

[PATCH 2/2] selftests: net: support KBUILD_OUTPUT for reuseport_bpf_numa

2017-03-26 Thread Bamvor Jian Zhang
reuseport_bpf_numa is not supported by KBUILD_OUTPUT machanism in net subset. This patch fix this by adding $(OUTPUT) before the target. Signed-off-by: Bamvor Jian Zhang --- tools/testing/selftests/net/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing

[PATCH 1/2] selftests: fix the broken individual test for x86

2017-03-26 Thread Bamvor Jian Zhang
/kselftests.txt Reported-by: Andy Lutomirski <l...@amacapital.net> Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> --- Documentation/kselftest.txt | 6 ++ tools/testing/selftests/x86/Makefile | 23 ++- 2 files changed, 20 insertions(+), 9 deleti

[PATCH 1/2] selftests: fix the broken individual test for x86

2017-03-26 Thread Bamvor Jian Zhang
/kselftests.txt Reported-by: Andy Lutomirski Signed-off-by: Bamvor Jian Zhang --- Documentation/kselftest.txt | 6 ++ tools/testing/selftests/x86/Makefile | 23 ++- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/Documentation/kselftest.txt b

Re: [PATCH 12/18] arm64: ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2016-09-02 Thread Bamvor Jian Zhang
compat_sys_sync_file_range2_wrapper > +#define compat_sys_truncate64compat_sys_truncate64_wrapper When we test sync_file_range with our own testcase, we found that the parameter sequence is not correct for sync_file_range2 because glibc think kernel use the sync_file_range. So, in

Re: [PATCH 12/18] arm64: ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2016-09-02 Thread Bamvor Jian Zhang
mpat_sys_truncate64compat_sys_truncate64_wrapper When we test sync_file_range with our own testcase, we found that the parameter sequence is not correct for sync_file_range2 because glibc think kernel use the sync_file_range. So, in this patch we force to sync_file_range2. Is it mak

Re: [RFC2 nowrap: PATCH v7 00/18] ILP32 for ARM64

2016-09-02 Thread Bamvor Jian Zhang
Base on the off-list discussion, the community care about the performance regression of aarch64 LP64 and aarch32 after ILP32 is merged. Given that there is not big open issue in ILP32 in kernel part, I try to address this concern. It is reasonable that we should run lots of testsuite(such as LKP)

Re: [RFC2 nowrap: PATCH v7 00/18] ILP32 for ARM64

2016-09-02 Thread Bamvor Jian Zhang
Base on the off-list discussion, the community care about the performance regression of aarch64 LP64 and aarch32 after ILP32 is merged. Given that there is not big open issue in ILP32 in kernel part, I try to address this concern. It is reasonable that we should run lots of testsuite(such as LKP)

Re: [Y2038] [PATCH v2 2/2] ppdev: add support for compat ioctl

2016-01-06 Thread Bamvor Jian Zhang
Hi, Sudip On 01/04/2016 09:14 PM, Sudip Mukherjee wrote: > On Sat, Jan 02, 2016 at 11:40:51PM +0100, Arnd Bergmann wrote: >> On Saturday 02 January 2016 11:59:29 Sudip Mukherjee wrote: Just to be sure we are talking about the same thing: you mean running a 64-bit kernel in a

Re: [Y2038] [PATCH v2 2/2] ppdev: add support for compat ioctl

2016-01-06 Thread Bamvor Jian Zhang
Hi, Sudip On 01/04/2016 09:14 PM, Sudip Mukherjee wrote: > On Sat, Jan 02, 2016 at 11:40:51PM +0100, Arnd Bergmann wrote: >> On Saturday 02 January 2016 11:59:29 Sudip Mukherjee wrote: Just to be sure we are talking about the same thing: you mean running a 64-bit kernel in a

Re: [PATCH v3 0/2] Create specific kconfig for kselftest

2016-01-04 Thread Bamvor Jian Zhang
Hi, Michael On 01/04/2016 12:57 PM, Michael Ellerman wrote: [...] >> Do you mean "tools/testing/selftest/Makefile"? I try to do it but I could not >> get the objtree and srctree if it is called directly(objtree and srctree is >> defined in toplevel Makefile) > > No I meant Makefile, the very top

Re: [PATCH v3 0/2] Create specific kconfig for kselftest

2016-01-04 Thread Bamvor Jian Zhang
Hi, Michael On 01/04/2016 12:57 PM, Michael Ellerman wrote: [...] >> Do you mean "tools/testing/selftest/Makefile"? I try to do it but I could not >> get the objtree and srctree if it is called directly(objtree and srctree is >> defined in toplevel Makefile) > > No I meant Makefile, the very top

[PATCH v3 1/2] ppdev: convert to y2038 safe

2015-12-31 Thread Bamvor Jian Zhang
): 0x80107095 on 64-bit : 0x80107095 This patch define these two ioctl commands to support the 32bit and 64bit time_t application at the same time. And, introduce pp_set_timeout to remove some duplicated code. Signed-off-by: Bamvor Jian Zhang Reviewed-by: Arnd Bergmann Tested-by: Sudip

[PATCH v3 2/2] ppdev: add support for compat ioctl

2015-12-31 Thread Bamvor Jian Zhang
The arg of ioctl in ppdev is the pointer of integer except the timeval in PPSETTIME, PPGETTIME. Different size of timeval is already supported by the previous patches. So, it is safe to add compat support. Signed-off-by: Bamvor Jian Zhang Reviewed-by: Arnd Bergmann Tested-by: Sudip Mukherjee

[PATCH v3 0/2] Convert ppdev to y2038 safe

2015-12-31 Thread Bamvor Jian Zhang
for different size of timeval. Build successful on arm64, arm and x86_64. Changes since v2: 1. Fix the wrong parameter in copy_to_user. Changes since v1: 1. Fix the warning when build against x86_64. [1] https://lkml.org/lkml/2015/12/9/32 [2] https://lkml.org/lkml/2015/12/17/111 Bamvor Jian Zhang (2

[PATCH v3 1/2] ppdev: convert to y2038 safe

2015-12-31 Thread Bamvor Jian Zhang
): 0x80107095 on 64-bit : 0x80107095 This patch define these two ioctl commands to support the 32bit and 64bit time_t application at the same time. And, introduce pp_set_timeout to remove some duplicated code. Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> Reviewed-by

[PATCH v3 0/2] Convert ppdev to y2038 safe

2015-12-31 Thread Bamvor Jian Zhang
for different size of timeval. Build successful on arm64, arm and x86_64. Changes since v2: 1. Fix the wrong parameter in copy_to_user. Changes since v1: 1. Fix the warning when build against x86_64. [1] https://lkml.org/lkml/2015/12/9/32 [2] https://lkml.org/lkml/2015/12/17/111 Bamvor Jian Zhang (2

[PATCH v3 2/2] ppdev: add support for compat ioctl

2015-12-31 Thread Bamvor Jian Zhang
The arg of ioctl in ppdev is the pointer of integer except the timeval in PPSETTIME, PPGETTIME. Different size of timeval is already supported by the previous patches. So, it is safe to add compat support. Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> Reviewed-by: Arnd Be

[RFD] How to support KBUILD_OUTPUT for kselftest?

2015-12-30 Thread Bamvor Jian Zhang
Hi, I am trying to improve cross compiling support for kselftest recently. Right now I am stuck when I want to enable KBUILD_OUTPUT(O=xxx). It exist in wiki of kselftest[1]. Hope it is not a duplicated work. It seems that only perf tools(tools/perf) support it. And I could know that the

Re: [Y2038] [PATCH v2 2/2] ppdev: add support for compat ioctl

2015-12-30 Thread Bamvor Jian Zhang
Hi, Arnd On 12/30/2015 09:51 PM, Arnd Bergmann wrote: > On Wednesday 30 December 2015 21:24:21 Bamvor Jian Zhang wrote: >> diff --git a/drivers/char/ppdev.c b/drivers/char/ppdev.c >> index 31bc7b7..9e98d01 100644 >> --- a/drivers/char/ppdev.c >> +++ b/drivers/char/

Re: [PATCH v2 2/2] ppdev: add support for compat ioctl

2015-12-30 Thread Bamvor Jian Zhang
Hi, Sudip On 12/30/2015 07:16 PM, Sudip Mukherjee wrote: > On Fri, Dec 18, 2015 at 12:12:05AM +0100, Arnd Bergmann wrote: >> On Thursday 17 December 2015 17:58:52 Bamvor Jian Zhang wrote: >>> The arg of ioctl in ppdev is the pointer of integer except the >>> time

[RFD] How to support KBUILD_OUTPUT for kselftest?

2015-12-30 Thread Bamvor Jian Zhang
Hi, I am trying to improve cross compiling support for kselftest recently. Right now I am stuck when I want to enable KBUILD_OUTPUT(O=xxx). It exist in wiki of kselftest[1]. Hope it is not a duplicated work. It seems that only perf tools(tools/perf) support it. And I could know that the

Re: [Y2038] [PATCH v2 2/2] ppdev: add support for compat ioctl

2015-12-30 Thread Bamvor Jian Zhang
Hi, Arnd On 12/30/2015 09:51 PM, Arnd Bergmann wrote: > On Wednesday 30 December 2015 21:24:21 Bamvor Jian Zhang wrote: >> diff --git a/drivers/char/ppdev.c b/drivers/char/ppdev.c >> index 31bc7b7..9e98d01 100644 >> --- a/drivers/char/ppdev.c >> +++ b/drivers/char/

Re: [PATCH v2 2/2] ppdev: add support for compat ioctl

2015-12-30 Thread Bamvor Jian Zhang
Hi, Sudip On 12/30/2015 07:16 PM, Sudip Mukherjee wrote: > On Fri, Dec 18, 2015 at 12:12:05AM +0100, Arnd Bergmann wrote: >> On Thursday 17 December 2015 17:58:52 Bamvor Jian Zhang wrote: >>> The arg of ioctl in ppdev is the pointer of integer except the >>> time

[PATCH] arm64: compat: fix wrong dependency

2015-12-29 Thread Bamvor Jian Zhang
With the patches of ILP32, COMPAT is not equivalent to AARCH32 in EL0. This patch fix this by updating the dependency from COMPAT to AARCH32_EL0 for ARMV8_DEPRECATED and ARM64_ERRATUM_845719. Signed-off-by: Bamvor Jian Zhang --- arch/arm64/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH] arm64: compat: fix wrong dependency

2015-12-29 Thread Bamvor Jian Zhang
With the patches of ILP32, COMPAT is not equivalent to AARCH32 in EL0. This patch fix this by updating the dependency from COMPAT to AARCH32_EL0 for ARMV8_DEPRECATED and ARM64_ERRATUM_845719. Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> --- arch/arm64/Kconfig | 4 ++--

> diff --git a/arch/arm64/kernel/Makefile b/arch/arm64/kernel/Makefile

2015-12-28 Thread Bamvor Jian Zhang
I feel we need something like this to avoid the failure of compiling when build with ARM64_ILP32(which will select COMPAT) and ARMV8_DEPRECATED (which depends on the opcodes.o). >From f8b8ffdb449491ecf8ba465238bbdb4625a74ac0 Mon Sep 17 00:00:00 2001 From: Bamvor Jian Zhang Date: Mon, 28 Dec 2

> diff --git a/arch/arm64/kernel/Makefile b/arch/arm64/kernel/Makefile

2015-12-28 Thread Bamvor Jian Zhang
I feel we need something like this to avoid the failure of compiling when build with ARM64_ILP32(which will select COMPAT) and ARMV8_DEPRECATED (which depends on the opcodes.o). >From f8b8ffdb449491ecf8ba465238bbdb4625a74ac0 Mon Sep 17 00:00:00 2001 From: Bamvor Jian Zhang <bamvor.

[PATCH v3 0/2] Create specific kconfig for kselftest

2015-12-17 Thread Bamvor Jian Zhang
according to the suggestion from Michael. [1] http://www.spinics.net/lists/linux-api/msg15533.html [2] http://www.spinics.net/lists/linux-api/msg15593.html Bamvor Jian Zhang (2): selftests: create test-specific kconfig fragments scripts/kconfig/Makefile: add kselftest-mergeconfig scripts

[PATCH v2 1/2] ppdev: convert to y2038 safe

2015-12-17 Thread Bamvor Jian Zhang
): 0x80107095 on 64-bit : 0x80107095 This patch define these two ioctl commands to support the 32bit and 64bit time_t application at the same time. And, introduce pp_set_timeout to remove some duplicated code. Signed-off-by: Bamvor Jian Zhang Reviewed-by: Arnd Bergmann --- drivers/char

[PATCH v2 2/2] ppdev: add support for compat ioctl

2015-12-17 Thread Bamvor Jian Zhang
The arg of ioctl in ppdev is the pointer of integer except the timeval in PPSETTIME, PPGETTIME. Different size of timeval is already supported by the previous patches. So, it is safe to add compat support. Signed-off-by: Bamvor Jian Zhang --- drivers/char/ppdev.c | 12 1 file

[PATCH v2 0/2] Convert ppdev to y2038 safe

2015-12-17 Thread Bamvor Jian Zhang
of timeval. Build successful on arm64, arm and x86_64. Changes since v1: 1. Fix the warning when build against x86_64. [1] https://lkml.org/lkml/2015/12/9/32 Bamvor Jian Zhang (2): ppdev: convert to y2038 safe ppdev: add support for compat ioctl drivers/char/ppdev.c | 87

[PATCH v3 1/2] selftests: create test-specific kconfig fragments

2015-12-17 Thread Bamvor Jian Zhang
\ tools/testing/selftests/xxx/config Enable configs for all testcases: (export ARCH=xxx #for cross compiling) ./scripts/kconfig/merge_config.sh .config \ tools/testing/selftests/*/config Signed-off-by: Bamvor Jian Zhang Reviewed-by: Shuah Khan --- tools/testing

[PATCH v3 2/2] scripts/kconfig/Makefile: add kselftest-mergeconfig

2015-12-17 Thread Bamvor Jian Zhang
Add kselftest-mergeconfig to enable the dependencies of kernel config for all the kselftest testcases. User could call it after create the kernel configuration(.config), eg: $ make kselftest-mergeconfig Signed-off-by: Bamvor Jian Zhang --- scripts/kconfig/Makefile | 9 + 1 file changed

[PATCH v3 0/2] Create specific kconfig for kselftest

2015-12-17 Thread Bamvor Jian Zhang
according to the suggestion from Michael. [1] http://www.spinics.net/lists/linux-api/msg15533.html [2] http://www.spinics.net/lists/linux-api/msg15593.html Bamvor Jian Zhang (2): selftests: create test-specific kconfig fragments scripts/kconfig/Makefile: add kselftest-mergeconfig scripts

[PATCH v3 0/2] Create specific kconfig for kselftest

2015-12-17 Thread Bamvor Jian Zhang
according to the suggestion from Michael. [1] http://www.spinics.net/lists/linux-api/msg15533.html [2] http://www.spinics.net/lists/linux-api/msg15593.html Bamvor Jian Zhang (2): selftests: create test-specific kconfig fragments scripts/kconfig/Makefile: add kselftest-mergeconfig scripts

[PATCH v2 0/2] Convert ppdev to y2038 safe

2015-12-17 Thread Bamvor Jian Zhang
of timeval. Build successful on arm64, arm and x86_64. Changes since v1: 1. Fix the warning when build against x86_64. [1] https://lkml.org/lkml/2015/12/9/32 Bamvor Jian Zhang (2): ppdev: convert to y2038 safe ppdev: add support for compat ioctl drivers/char/ppdev.c | 87

[PATCH v3 1/2] selftests: create test-specific kconfig fragments

2015-12-17 Thread Bamvor Jian Zhang
\ tools/testing/selftests/xxx/config Enable configs for all testcases: (export ARCH=xxx #for cross compiling) ./scripts/kconfig/merge_config.sh .config \ tools/testing/selftests/*/config Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> Reviewed-by:

[PATCH v3 2/2] scripts/kconfig/Makefile: add kselftest-mergeconfig

2015-12-17 Thread Bamvor Jian Zhang
Add kselftest-mergeconfig to enable the dependencies of kernel config for all the kselftest testcases. User could call it after create the kernel configuration(.config), eg: $ make kselftest-mergeconfig Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> --- scripts/kconfig/Ma

[PATCH v2 2/2] ppdev: add support for compat ioctl

2015-12-17 Thread Bamvor Jian Zhang
The arg of ioctl in ppdev is the pointer of integer except the timeval in PPSETTIME, PPGETTIME. Different size of timeval is already supported by the previous patches. So, it is safe to add compat support. Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> --- drivers/char/p

[PATCH v2 1/2] ppdev: convert to y2038 safe

2015-12-17 Thread Bamvor Jian Zhang
): 0x80107095 on 64-bit : 0x80107095 This patch define these two ioctl commands to support the 32bit and 64bit time_t application at the same time. And, introduce pp_set_timeout to remove some duplicated code. Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> Reviewed-by

[PATCH v3 0/2] Create specific kconfig for kselftest

2015-12-17 Thread Bamvor Jian Zhang
according to the suggestion from Michael. [1] http://www.spinics.net/lists/linux-api/msg15533.html [2] http://www.spinics.net/lists/linux-api/msg15593.html Bamvor Jian Zhang (2): selftests: create test-specific kconfig fragments scripts/kconfig/Makefile: add kselftest-mergeconfig scripts

[PATCH 1/2] ppdev: convert to y2038 safe

2015-12-08 Thread Bamvor Jian Zhang
): 0x80107095 on 64-bit : 0x80107095 This patch define these two ioctl commands to support the 32bit and 64bit time_t application at the same time. And, introduce pp_set_timeout to remove some duplicated code. Signed-off-by: Bamvor Jian Zhang --- drivers/char/ppdev.c | 75

[PATCH 2/2] ppdev: add support for compat ioctl

2015-12-08 Thread Bamvor Jian Zhang
The arg of ioctl in ppdev is the pointer of integer except the timeval in PPSETTIME, PPGETTIME. Different size of timeval is already supported by the previous patches. So, it is safe to add compat support. Signed-off-by: Bamvor Jian Zhang --- drivers/char/ppdev.c | 11 +++ 1 file

[PATCH 0/2] Convert ppdev to y2038 safe

2015-12-08 Thread Bamvor Jian Zhang
command for different size of timeval. Build successful on arm64 and arm. [1] https://lists.linaro.org/pipermail/y2038/ Bamvor Jian Zhang (2): ppdev: convert to y2038 safe ppdev: add support for compat ioctl drivers/char/ppdev.c | 86 1 file

[PATCH 0/2] Convert ppdev to y2038 safe

2015-12-08 Thread Bamvor Jian Zhang
command for different size of timeval. Build successful on arm64 and arm. [1] https://lists.linaro.org/pipermail/y2038/ Bamvor Jian Zhang (2): ppdev: convert to y2038 safe ppdev: add support for compat ioctl drivers/char/ppdev.c | 86 1 file

[PATCH 1/2] ppdev: convert to y2038 safe

2015-12-08 Thread Bamvor Jian Zhang
): 0x80107095 on 64-bit : 0x80107095 This patch define these two ioctl commands to support the 32bit and 64bit time_t application at the same time. And, introduce pp_set_timeout to remove some duplicated code. Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> --- driver

[PATCH 2/2] ppdev: add support for compat ioctl

2015-12-08 Thread Bamvor Jian Zhang
The arg of ioctl in ppdev is the pointer of integer except the timeval in PPSETTIME, PPGETTIME. Different size of timeval is already supported by the previous patches. So, it is safe to add compat support. Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> --- drivers/char/p

[PATCH V2 2/2] scripts/kconfig/Makefile: add kselftest-mergeconfig

2015-11-17 Thread Bamvor Jian Zhang
Add kselftest-mergeconfig to enable the dependencies of kernel config for all the kselftest testcases. User could call it after create the kernel configuration(.config), eg: $ make kselftest-mergeconfig Signed-off-by: Bamvor Jian Zhang --- scripts/kconfig/Makefile | 9 + 1 file changed

[PATCH V2 0/2] Create specific kconfig for kselftest

2015-11-17 Thread Bamvor Jian Zhang
(kselftest-mergeconfig) in make file as a helper to merge all the test config dependecies to .config. Changes since v1[1]: 1. Add kselftest-mergeconfig in scripts/kconfig/Makefile according to the suggestion from Michael. [1] http://www.spinics.net/lists/linux-api/msg15533.html Bamvor Jian Zhang

[PATCH V2 1/2] selftests: create test-specific kconfig fragments

2015-11-17 Thread Bamvor Jian Zhang
\ tools/testing/selftests/xxx/config Enable configs for all testcases: (export ARCH=xxx #for cross compiling) ./scripts/kconfig/merge_config.sh .config \ tools/testing/selftests/*/config Signed-off-by: Bamvor Jian Zhang --- tools/testing/selftests/cpu-hotplug/config

[PATCH V2 0/2] Create specific kconfig for kselftest

2015-11-17 Thread Bamvor Jian Zhang
(kselftest-mergeconfig) in make file as a helper to merge all the test config dependecies to .config. Changes since v1[1]: 1. Add kselftest-mergeconfig in scripts/kconfig/Makefile according to the suggestion from Michael. [1] http://www.spinics.net/lists/linux-api/msg15533.html Bamvor Jian Zhang

[PATCH V2 1/2] selftests: create test-specific kconfig fragments

2015-11-17 Thread Bamvor Jian Zhang
\ tools/testing/selftests/xxx/config Enable configs for all testcases: (export ARCH=xxx #for cross compiling) ./scripts/kconfig/merge_config.sh .config \ tools/testing/selftests/*/config Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> --- tools/t

[PATCH V2 2/2] scripts/kconfig/Makefile: add kselftest-mergeconfig

2015-11-17 Thread Bamvor Jian Zhang
Add kselftest-mergeconfig to enable the dependencies of kernel config for all the kselftest testcases. User could call it after create the kernel configuration(.config), eg: $ make kselftest-mergeconfig Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> --- scripts/kconfig/Ma

[PATCH v3 5/5] selftests: exec: revert to default emit rule

2015-09-09 Thread Bamvor Jian Zhang
y: Michael Ellerman Signed-off-by: Bamvor Jian Zhang --- tools/testing/selftests/exec/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/testing/selftests/exec/Makefile b/tools/testing/selftests/exec/Makefile index 6b76bfd..4e400eb 100644 --- a/tools/testing

[PATCH v3 2/5] selftests: mqueue: allow extra cflags

2015-09-09 Thread Bamvor Jian Zhang
Change from = to += in order to allows the user to pass whatever CFLAGS they wish(E.g. pass the proper headers and librareis (popt.h and libpopt.so) in cross-compiling) Suggested-by: Michael Ellermani Signed-off-by: Bamvor Jian Zhang Acked-by: Michael Ellermani --- tools/testing/selftests

[PATCH v3 4/5] selftests: change install command to rsync

2015-09-09 Thread Bamvor Jian Zhang
The command of install could not handle the special files in exec testcases, change the default rule to rsync to fix this. The installation is unchanged after this commit. Suggested-by: Michael Ellerman Signed-off-by: Bamvor Jian Zhang --- tools/testing/selftests/ftrace/Makefile | 2

[PATCH v3 0/5] kselftest improvement and cleanup

2015-09-09 Thread Bamvor Jian Zhang
d to rsync 82775ac selftests: exec: Revert to default emit rule "c" means committed by Shuah Khan "a" means acked by Shuah Khan or Michael Ellermani Bamvor Jian Zhang (5): selftests: rename jump label to static_keys selftests: mqueue: allow extra cflags selftests:

[PATCH v3 1/5] selftests: rename jump label to static_keys

2015-09-09 Thread Bamvor Jian Zhang
t position to keep the list alphabetically sorted. Fixes: 2bf9e0ab08c6 ("locking/static_keys: Provide a selftest") Signed-off-by: Bamvor Jian Zhang Acked-by: Shuah Khan Acked-by: Michael Ellerman --- tools/testing/selftests/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH v3 3/5] selftests: mqueue: simplify the Makefile

2015-09-09 Thread Bamvor Jian Zhang
Use make's implict rule for building simple C programs. Suggested-by: Michael Ellermani Signed-off-by: Bamvor Jian Zhang --- tools/testing/selftests/mqueue/Makefile | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tools/testing/selftests/mqueue/Makefile b/tools

[PATCH v3 2/5] selftests: mqueue: allow extra cflags

2015-09-09 Thread Bamvor Jian Zhang
Change from = to += in order to allows the user to pass whatever CFLAGS they wish(E.g. pass the proper headers and librareis (popt.h and libpopt.so) in cross-compiling) Suggested-by: Michael Ellermani <m...@ellerman.id.au> Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.o

[PATCH v3 4/5] selftests: change install command to rsync

2015-09-09 Thread Bamvor Jian Zhang
The command of install could not handle the special files in exec testcases, change the default rule to rsync to fix this. The installation is unchanged after this commit. Suggested-by: Michael Ellerman <m...@ellerman.id.au> Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@l

[PATCH v3 5/5] selftests: exec: revert to default emit rule

2015-09-09 Thread Bamvor Jian Zhang
y: Michael Ellerman <m...@ellerman.id.au> Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> --- tools/testing/selftests/exec/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/testing/selftests/exec/Makefile b/tools/testing/selftests/exec/

[PATCH v3 0/5] kselftest improvement and cleanup

2015-09-09 Thread Bamvor Jian Zhang
d to rsync 82775ac selftests: exec: Revert to default emit rule "c" means committed by Shuah Khan <shua...@osg.samsung.com> "a" means acked by Shuah Khan <shua...@osg.samsung.com> or Michael Ellermani <m...@ellerman.id.au> Bamvor Jian Zhang (5): selftests: rena

[PATCH v3 1/5] selftests: rename jump label to static_keys

2015-09-09 Thread Bamvor Jian Zhang
t position to keep the list alphabetically sorted. Fixes: 2bf9e0ab08c6 ("locking/static_keys: Provide a selftest") Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> Acked-by: Shuah Khan <shua...@osg.samsung.com> Acked-by: Michael Ellerman <m...@ellerman.id.au>

[PATCH v3 3/5] selftests: mqueue: simplify the Makefile

2015-09-09 Thread Bamvor Jian Zhang
Use make's implict rule for building simple C programs. Suggested-by: Michael Ellermani <m...@ellerman.id.au> Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> --- tools/testing/selftests/mqueue/Makefile | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-)

[PATCH v2 6/6] selftests: exec: simpification the Makefile

2015-09-07 Thread Bamvor Jian Zhang
Suggested-by: Michael Ellerman Signed-off-by: Bamvor Jian Zhang --- tools/testing/selftests/exec/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/testing/selftests/exec/Makefile b/tools/testing/selftests/exec/Makefile index 6b76bfd..4e400eb 100644 --- a/tools/testing

[PATCH v2 5/6] selftests: change install command to rsync

2015-09-07 Thread Bamvor Jian Zhang
The command of install could not handle the special files in exec testcases, change the default rule to rsync to fix this. The result of installation is unchanged after this commit. Suggested-by: Michael Ellerman Signed-off-by: Bamvor Jian Zhang --- tools/testing/selftests/ftrace/Makefile | 2

[PATCH v2 1/6] selftests: rename jump label to static_keys

2015-09-07 Thread Bamvor Jian Zhang
commit "2bf9e0a locking/static_keys: Provide a selftest" rename jump_label directory to static_keys. Signed-off-by: Bamvor Jian Zhang --- tools/testing/selftests/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/Makefile b/too

[PATCH v2 2/6] selftests: only compile userfaultfd for x86 and powperpc

2015-09-07 Thread Bamvor Jian Zhang
Check it before compiling to avoid the failure of building and installation. Signed-off-by: Bamvor Jian Zhang --- tools/testing/selftests/vm/Makefile | 12 1 file changed, 12 insertions(+) diff --git a/tools/testing/selftests/vm/Makefile b/tools/testing/selftests/vm/Makefile

[PATCH v2 3/6] selftests: mqueue: allow extra cflags

2015-09-07 Thread Bamvor Jian Zhang
change from = to += in order to pass the proper headers and librareis (popt.h and libpopt.so) in order to build successful in cross compiling. Suggested-by: Michael Ellermani Signed-off-by: Bamvor Jian Zhang --- tools/testing/selftests/mqueue/Makefile | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v2 4/6] selftests: mqueue: simpification the Makefile

2015-09-07 Thread Bamvor Jian Zhang
Suggested-by: Michael Ellermani Signed-off-by: Bamvor Jian Zhang --- tools/testing/selftests/mqueue/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/mqueue/Makefile b/tools/testing/selftests/mqueue/Makefile index ca8327f..9f51aaa 100644

[PATCH v2 0/6] kselftest improvement and cleanup

2015-09-07 Thread Bamvor Jian Zhang
"a" means acked by Shuah Khan [1] http://www.spinics.net/lists/kernel/msg2056987.html Bamvor Jian Zhang (6): selftests: rename jump label to static_keys selftests: only compile userfaultfd for x86 and powperpc selftests: mqueue: allow extra cflags selftests: mqueue: simpif

[PATCH v2 2/6] selftests: only compile userfaultfd for x86 and powperpc

2015-09-07 Thread Bamvor Jian Zhang
Check it before compiling to avoid the failure of building and installation. Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> --- tools/testing/selftests/vm/Makefile | 12 1 file changed, 12 insertions(+) diff --git a/tools/testing/selftests/vm/Makefile b

[PATCH v2 3/6] selftests: mqueue: allow extra cflags

2015-09-07 Thread Bamvor Jian Zhang
change from = to += in order to pass the proper headers and librareis (popt.h and libpopt.so) in order to build successful in cross compiling. Suggested-by: Michael Ellermani <m...@ellerman.id.au> Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> --- tools/testing/self

[PATCH v2 4/6] selftests: mqueue: simpification the Makefile

2015-09-07 Thread Bamvor Jian Zhang
Suggested-by: Michael Ellermani <m...@ellerman.id.au> Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> --- tools/testing/selftests/mqueue/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/mqueue/Makefile b/t

[PATCH v2 1/6] selftests: rename jump label to static_keys

2015-09-07 Thread Bamvor Jian Zhang
commit "2bf9e0a locking/static_keys: Provide a selftest" rename jump_label directory to static_keys. Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> --- tools/testing/selftests/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/t

[PATCH v2 6/6] selftests: exec: simpification the Makefile

2015-09-07 Thread Bamvor Jian Zhang
Suggested-by: Michael Ellerman <m...@ellerman.id.au> Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@linaro.org> --- tools/testing/selftests/exec/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/testing/selftests/exec/Makefile b/tools/testing/selftes

[PATCH v2 5/6] selftests: change install command to rsync

2015-09-07 Thread Bamvor Jian Zhang
The command of install could not handle the special files in exec testcases, change the default rule to rsync to fix this. The result of installation is unchanged after this commit. Suggested-by: Michael Ellerman <m...@ellerman.id.au> Signed-off-by: Bamvor Jian Zhang <bamvor.zhangj...@l

[PATCH v2 0/6] kselftest improvement and cleanup

2015-09-07 Thread Bamvor Jian Zhang
Khan <shua...@osg.samsung.com> "a" means acked by Shuah Khan <shua...@osg.samsung.com> [1] http://www.spinics.net/lists/kernel/msg2056987.html Bamvor Jian Zhang (6): selftests: rename jump label to static_keys selftests: only compile userfaultfd for x86 and powperpc selft

[PATCH 6/7] selftests: only compile userfaultfd for x86 and powperpc

2015-08-14 Thread Bamvor Jian Zhang
Signed-off-by: Bamvor Jian Zhang --- tools/testing/selftests/vm/Makefile | 12 1 file changed, 12 insertions(+) diff --git a/tools/testing/selftests/vm/Makefile b/tools/testing/selftests/vm/Makefile index bb888c6..4dd6e4f 100644 --- a/tools/testing/selftests/vm/Makefile +++ b

[PATCH 5/7] selftests: disable seccomp for arm64

2015-08-14 Thread Bamvor Jian Zhang
Currently, seccomp need the __NR_poll which is not supported by arm64(There is only __NR_ppoll). I am not sure we should skip this test testcase or update the seccomp without __NR_poll. Signed-off-by: Bamvor Jian Zhang --- tools/testing/selftests/seccomp/Makefile | 6 ++ 1 file changed, 6

[PATCH 7/7] selftests: breakpoints: fix installing error on the architecture except x86

2015-08-14 Thread Bamvor Jian Zhang
Signed-off-by: Bamvor Jian Zhang --- tools/testing/selftests/breakpoints/Makefile | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/tools/testing/selftests/breakpoints/Makefile b/tools/testing/selftests/breakpoints/Makefile index 1822356..d27108b 100644

[PATCH 3/7] selftests: exec: fix for running and installing

2015-08-14 Thread Bamvor Jian Zhang
"Makefile" in line 346, otherwise it will be ENOENT instead of EACCES. Signed-off-by: Bamvor Jian Zhang --- tools/testing/selftests/exec/Makefile | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/exec/Makefile b/tools/te

[PATCH 4/7] selftests: check before install

2015-08-14 Thread Bamvor Jian Zhang
When the test cases is not supported by the current architecture the install files(TEST_PROGS, TEST_PROGS_EXTENDED and TEST_FILES) will be empty. Check it before installation to dismiss a failure reported by install program. Signed-off-by: Bamvor Jian Zhang --- tools/testing/selftests/Makefile

[PATCH 2/7] selftests: add CFLAGS_EXTRA

2015-08-14 Thread Bamvor Jian Zhang
One may pass the "-I /path/to/headers -L /path/to/lib" through CFLAGS_EXTRA for cross compiling. mqueue could compile pass in this way when we provide the popt.h and libpopt.so. And kdbus could compile pass with sys/capability and libcap.so Sed-off-by: Bamvor Jian Zhang -- Original

[PATCH 0/7] Improvement kselftest support for arm and arm64

2015-08-14 Thread Bamvor Jian Zhang
Patch 5, 6 and 7 check the architecture before build and install. Bamvor Jian Zhang (7): selftests: rename jump label to static_keys selftests: add CFLAGS_EXTRA selftests: exec: fix for running and installing selftests: check before install selftests: disable seccomp for arm64 selftests: on

[PATCH 1/7] selftests: rename jump label to static_keys

2015-08-14 Thread Bamvor Jian Zhang
commit "2bf9e0a locking/static_keys: Provide a selftest" rename jump_label directory to static_keys. Signed-off-by: Bamvor Jian Zhang --- tools/testing/selftests/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/Makefile b/too

[PATCH 2/7] selftests: add CFLAGS_EXTRA

2015-08-14 Thread Bamvor Jian Zhang
One may pass the -I /path/to/headers -L /path/to/lib through CFLAGS_EXTRA for cross compiling. mqueue could compile pass in this way when we provide the popt.h and libpopt.so. And kdbus could compile pass with sys/capability and libcap.so Sed-off-by: Bamvor Jian Zhang bamvor.zhangj...@linaro.org

[PATCH 4/7] selftests: check before install

2015-08-14 Thread Bamvor Jian Zhang
When the test cases is not supported by the current architecture the install files(TEST_PROGS, TEST_PROGS_EXTENDED and TEST_FILES) will be empty. Check it before installation to dismiss a failure reported by install program. Signed-off-by: Bamvor Jian Zhang bamvor.zhangj...@linaro.org --- tools

[PATCH 3/7] selftests: exec: fix for running and installing

2015-08-14 Thread Bamvor Jian Zhang
in line 346, otherwise it will be ENOENT instead of EACCES. Signed-off-by: Bamvor Jian Zhang bamvor.zhangj...@linaro.org --- tools/testing/selftests/exec/Makefile | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/exec/Makefile b/tools

[PATCH 0/7] Improvement kselftest support for arm and arm64

2015-08-14 Thread Bamvor Jian Zhang
check the architecture before build and install. Bamvor Jian Zhang (7): selftests: rename jump label to static_keys selftests: add CFLAGS_EXTRA selftests: exec: fix for running and installing selftests: check before install selftests: disable seccomp for arm64 selftests: only compile

[PATCH 1/7] selftests: rename jump label to static_keys

2015-08-14 Thread Bamvor Jian Zhang
commit 2bf9e0a locking/static_keys: Provide a selftest rename jump_label directory to static_keys. Signed-off-by: Bamvor Jian Zhang bamvor.zhangj...@linaro.org --- tools/testing/selftests/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests

[PATCH 7/7] selftests: breakpoints: fix installing error on the architecture except x86

2015-08-14 Thread Bamvor Jian Zhang
Signed-off-by: Bamvor Jian Zhang bamvor.zhangj...@linaro.org --- tools/testing/selftests/breakpoints/Makefile | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/tools/testing/selftests/breakpoints/Makefile b/tools/testing/selftests/breakpoints/Makefile index

[PATCH 5/7] selftests: disable seccomp for arm64

2015-08-14 Thread Bamvor Jian Zhang
Currently, seccomp need the __NR_poll which is not supported by arm64(There is only __NR_ppoll). I am not sure we should skip this test testcase or update the seccomp without __NR_poll. Signed-off-by: Bamvor Jian Zhang bamvor.zhangj...@linaro.org --- tools/testing/selftests/seccomp/Makefile | 6

[PATCH 6/7] selftests: only compile userfaultfd for x86 and powperpc

2015-08-14 Thread Bamvor Jian Zhang
Signed-off-by: Bamvor Jian Zhang bamvor.zhangj...@linaro.org --- tools/testing/selftests/vm/Makefile | 12 1 file changed, 12 insertions(+) diff --git a/tools/testing/selftests/vm/Makefile b/tools/testing/selftests/vm/Makefile index bb888c6..4dd6e4f 100644 --- a/tools/testing

Re: [PATCH] compat: Fix endian issue in union sigval

2015-02-16 Thread Bamvor Jian Zhang
On 2015/2/13 18:44, Catalin Marinas wrote: > On Fri, Feb 13, 2015 at 04:00:43PM +0800, Bamvor Jian Zhang wrote: >> On 2015/2/11 23:40, Catalin Marinas wrote: >>> On Wed, Feb 11, 2015 at 07:22:08PM +0800, Bamvor Jian Zhang wrote: >>>> On 2015/2/10 20:27, Catalin Marin

Re: [PATCH] compat: Fix endian issue in union sigval

2015-02-16 Thread Bamvor Jian Zhang
On 2015/2/14 19:22, Catalin Marinas wrote: > On Fri, Feb 13, 2015 at 04:56:29PM -0500, Chris Metcalf wrote: >> On 2/13/2015 5:44 AM, Catalin Marinas wrote: >>> On Fri, Feb 13, 2015 at 04:00:43PM +0800, Bamvor Jian Zhang wrote: >>>> diff --git a/arch/arm64/kernel/

  1   2   >