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 for
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
.
And also mention this use case in Documentation/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 deleti
_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
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)
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 k
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
): 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
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
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
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
following
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/
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
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
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
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
): 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
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
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
\
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
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
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
): 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
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
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
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
(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
\
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
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
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
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
ommand 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
selft
osition 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(-)
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/
ggested-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
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
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
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
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
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
"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
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
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
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
--- a
"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
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
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
--
Originally,
h 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
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
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
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/
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 Marinas wrote:
>>> On Tue, Feb 10, 2015 at 10:10:11AM +, Zhang Jian(Bamvor) wrote:
...
> The native sigval_t is also a union but
On 2015/2/10 20:27, Catalin Marinas wrote:
> cc'ing linux-arch as well.
>
> On Tue, Feb 10, 2015 at 10:10:11AM +, Zhang Jian(Bamvor) wrote:
>> In 64bit architecture, sigval_int is the high 32bit of sigval_ptr in
>> big endian kernel compare with low 32bit of sigval_ptr in little
>> endian kern
53 matches
Mail list logo