[RFC] COLO Proxy Module

2015-06-18 Thread Li Zhijian
Hi, all We are planning to implement a kernel module called COLO Proxy to buffer and compare packets. This module is one of the important component of COLO project and now it is still in early stage, so any comments and feedback are warmly welcomed, thanks in advance. = # RFC: COLO-Proxy

[PATCH] selftests: firmware/config: add FW_LOADER_USER_HELPER_FALLBACK

2017-03-09 Thread Li Zhijian
fw_fallback.sh requires FW_LOADER_USER_HELPER_FALLBACK Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.com> --- tools/testing/selftests/firmware/config | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/firmware/config b/tools/testing/selftests/firmware/config

[PATCH] tool/perf: fix perf compiling errors

2017-09-21 Thread Li Zhijian
rom util/c++/clang-test.cpp:2: /home/lizj/linux/tools/include/linux/list.h:107:14: error: invalid conversion from ‘void*’ to ‘list_head*’ [-fpermissive] -- Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.com> --- tools/perf/util/namespaces.h | 1 - 1 file changed, 1 deletion(-) d

[PATCH] tool/perf: fix perf compiling errors

2017-09-21 Thread Li Zhijian
From: Li Zhijian <lizhiij...@cn.fujitsu.com> since f045b8c, we failed to build perf with LIBCLANGLLVM=1, this patch is to fix the following compiling errors -- lizhijian@haswell-OptiPlex-9020:~/lkp/linux/tools/perf$ make LLVM_CONFIG=/usr/bin/llvm-config-3.9 LIBCLANGLLVM=1

[PATCH] perf test shell: trace+probe_libc_inet_pton.sh: be compatible with debian/ubuntu

2017-10-18 Thread Li Zhijian
/avg/max/mdev = 0.040/0.040/0.040/0.000 ms 0.000 probe_libc:inet_pton:(7f0e2db741c0)) __GI___inet_pton (/lib/x86_64-linux-gnu/libc-2.23.so) getaddrinfo (/lib/x86_64-linux-gnu/libc-2.23.so) [0xa9d40f34ff4d] (/bin/ping) --- Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.com> ---

[PATCH] perf test shell: trace+probe_libc_inet_pton.sh: force to use /bin/bash to load this script

2017-10-18 Thread Li Zhijian
for lizhijian: PING ::1(::1) 56 data bytes ./trace+probe_libc_inet_pton.sh: 30: ./trace+probe_libc_inet_pton.sh: Bad substitution ./trace+probe_libc_inet_pton.sh: 32: ./trace+probe_libc_inet_pton.sh: Bad substitution Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.com> --- tools/perf

Re: [PATCH] perf test shell: trace+probe_libc_inet_pton.sh: force to use /bin/bash to load this script

2017-10-18 Thread Li Zhijian
ignore this patch please, it will broken the test description which is read from the first line of this script Thanks On 10/19/2017 11:53 AM, Li Zhijian wrote: this script contains Array, but not all sh support Array. by default, dash provides sh at ubuntu/debian which can not support Array

perf test vfs_getname failed

2017-10-19 Thread Li Zhijian
Hi Arnaldo i encounter some problem when running perf test, the details arelike below: - [lizj@rhel71 perf]$ sudo ./perf test vfs_getname -v 61: Add vfs_getname probe to get syscall args filenames : --- start --- test child forked, pid 5958 Failed to find 'result'

[PATCH] perf test: use stat() to check type of file instead of readdir

2017-10-19 Thread Li Zhijian
handle a return of DT_UNKNOWN. - so if we run the perf test under xfs, all cases under tests/shell/ will not be covered previously. Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.com> --- tools/perf/tests/builtin-test.c | 22 -- 1 file changed, 16 insertions

Re: perf test vfs_getname failed

2017-10-23 Thread Li Zhijian
using perf trace + vfs_getname: Ok totally, i tested at 3 distro 1. fedora-26: OK 2. ubuntu 16.04: FAIL 3. rhel7.1 beta: FAIL Does it means that those cases are related to special distro(require special middle wares) ? Thanks On 10/19/2017 4:31 PM, Li Zhijian wrote: Hi Arnaldo i encounter some

Re: [PATCH] tools include: define READ_ONCE/WRITE_ONCE for C++

2017-11-28 Thread Li Zhijian
On 11/28/2017 07:30 PM, Mark Rutland wrote: Hi, [Fixed acme's address and added more Ccs] thanks On Tue, Nov 28, 2017 at 02:13:42PM +0800, Li Zhijian wrote: since 6aa7de0, we failed to build perf with C++(clang) to fix the following compile errors Sorry about this. With llvm-config

[PATCH v2] tools include: define READ_ONCE/WRITE_ONCE for C++

2017-11-29 Thread Li Zhijian
^ LD tests/perf-in.o ... ---------- Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.com> --- tools/include/linux/compiler.h | 5 + 1 file changed, 5 insertions(+) diff --git a/tools/include/linux/compiler.h b/tools/include/linux/compiler.h index 07fd03c..d6675c5 100644 --- a/tools/in

[PATCH] tools include: define READ_ONCE/WRITE_ONCE for C++

2017-11-27 Thread Li Zhijian
^ LD tests/perf-in.o ... ---------- Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.com> --- tools/include/linux/compiler.h | 5 + 1 file changed, 5 insertions(+) diff --git a/tools/include/linux/compiler.h b/tools/include/linux/compiler.h index 07fd03c..e4c8a0d 100644 --- a/tools/in

Re: [PATCH] tools include: define READ_ONCE/WRITE_ONCE for C++

2017-11-27 Thread Li Zhijian
add Arnaldo Carvalho de Melo <a...@redhat.com> On 11/28/2017 02:13 PM, Li Zhijian wrote: since 6aa7de0, we failed to build perf with C++(clang) to fix the following compile errors -- lizhijian@haswell-OptiPlex-9020:~/lkp/linux/tools/perf$ make LLVM_CONFIG=/usr/bin/llvm-conf

Re: [PATCH v2] tools include: define READ_ONCE/WRITE_ONCE for C++

2017-12-14 Thread Li Zhijian
ping On 11/30/2017 09:36 AM, Li Zhijian wrote: since 6aa7de0, we failed to build perf with C++(clang) to fix the following compile errors -- lizhijian@haswell-OptiPlex-9020:~/lkp/linux/tools/perf$ make LLVM_CONFIG=/usr/bin/llvm-config-3.9 LIBCLANGLLVM=1 ... CC util/probe

Re: [lkp-robot] [perf/x86] a5df70c354: perf-sanity-tests.Parse_event_definition_strings.fail

2017-10-29 Thread Li Zhijian
erms invpcid cqm xsaveopt cqm_llc cqm_occup_llc dtherm ida arat pln pts --- Thanks Zhijian On 10/28/2017 4:44 AM, Andi Kleen wrote: On Fri, Oct 27, 2017 at 04:11:09PM +0800, Li Zhijian wrote: + members of perf test ping add more results on different platforms

Re: [PATCH] perf test shell: Add -D to check dynamic symbols for ubuntu/debian

2018-05-09 Thread Li Zhijian
ping On 12/27/2017 04:50 PM, Li Zhijian wrote: On Ubuntu and Debian, we can't find any symbol including "inet_pton" from 'nm -g' root@vm-lkp-nex04-8G-5 ~# nm -g /lib/x86_64-linux-gnu/libc-2.25.so | grep inet_pton nm: /lib/x86_64-linux-gnu/libc-2.25.so: no symbols it looks l

[PATCH v2] perf test shell: Add -D to check dynamic symbols for ubuntu/debian

2018-05-09 Thread Li Zhijian
aldo Carvalho de Melo <a...@redhat.com> Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.com> --- tools/perf/tests/shell/record+probe_libc_inet_pton.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/tests/shell/record+probe_libc_inet_pton.sh b/t

Re: [PATCH] perf test shell: Add -D to check dynamic symbols for ubuntu/debian

2018-05-09 Thread Li Zhijian
Sorry, just noticed this path is out-of-date i will rebase it On 05/09/2018 03:36 PM, Li Zhijian wrote: ping On 12/27/2017 04:50 PM, Li Zhijian wrote: On Ubuntu and Debian, we can't find any symbol including "inet_pton" from 'nm -g' root@vm-lkp-nex04-8G-5 ~# nm -g /lib/x86_64

[PATCH 2/2] tools/testing/selftests/x86: fix error: conflicting types for 'pkey_get|pkey_set'

2018-05-08 Thread Li Zhijian
/usr/include/sys/mman.h:41, from protection_keys.c:37: /usr/include/bits/mman-shared.h:60:5: note: previous declaration of 'pkey_set' was here int pkey_set (int __key, unsigned int __access_rights) __THROW; ^ Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.

[PATCH 1/2] tools/testing/selftests/x86: fix warning: "SEGV_PKUERR|SEGV_BNDERR" redefined

2018-05-08 Thread Li Zhijian
evious definition # define SEGV_PKUERR SEGV_PKUERR ^ --- Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.com> --- tools/testing/selftests/x86/protection_keys.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/x86/pr

Re: [PATCH v2] perf test shell: Add -D to check dynamic symbols for ubuntu/debian

2018-05-09 Thread Li Zhijian
ill doesn't work for this case. Thanks Zhijian On 05/10/2018 05:41 AM, Kim Phillips wrote: On Wed, 9 May 2018 15:45:29 +0800 Li Zhijian <lizhij...@cn.fujitsu.com> wrote: On Ubuntu and Debian, we can't find any symbol including "inet_pton" from 'nm -g' root@vm-lkp-nex04-8G-5 ~

Re: [PATCH] perf test record+probe_libc_inet_pton: expect [unknown] for ping as well

2018-06-30 Thread Li Zhijian
On 06/29/2018 11:17 PM, Arnaldo Carvalho de Melo wrote: Em Thu, Jun 28, 2018 at 03:16:00PM +0800, Li Zhijian escreveu: On system which has not installed debuginfo of iputils(ping) will fail like: ~/lkp/linux/tools/perf$ sudo ./perf test ping -v I think that we should try to check

[PATCH 2/3] selftests/android: initialize heap_type to avoid compiling warning

2018-07-01 Thread Li Zhijian
_size: %ld\n", heap_type, heap_size); ^~~~ CC: Shuah Khan CC: Pintu Agarwal Signed-off-by: Li Zhijian --- tools/testing/selftests/android/ion/ionapp_export.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/tools/testing

[PATCH 0/3] fix selftests compiling errors and warnings

2018-07-01 Thread Li Zhijian
Li Zhijian (3): selftests/android: fix compiling error selftests/android: initialize heap_type to avoid compiling warning selftests/gpio: unset OUTPUT for build tools/gpio tools/testing/selftests/android/ion/Makefile| 5 - tools/testing/selftests/android/ion/ionapp_export.c

[PATCH 1/3] selftests/android: fix compiling error

2018-07-01 Thread Li Zhijian
: fatal error: linux/dma-buf.h: No such file or directory compilation terminated. : recipe for target 'ionmap_test' failed make: *** [ionmap_test] Error 1 It requires headers_install to $TOP/usr CC: Shuah Khan CC: Pintu Agarwal Signed-off-by: Li Zhijian --- tools/testing/selftests/android/ion

[PATCH 3/3] selftests/gpio: unset OUTPUT for build tools/gpio

2018-07-01 Thread Li Zhijian
]: *** [gpio-mockup-chardev] Error 1 make[1]: Leaving directory '/home/lizj/linux/tools/testing/selftests/gpio' Makefile:84: recipe for target 'all' failed make: *** [all] Error 2 CC: Bamvor Jian Zhang CC: Bartosz Golaszewski CC: Shuah Khan CC: linux-g...@vger.kernel.org Signed-off-by: Li

test_syscall_vdso_32 [FAIL]

2018-06-25 Thread Li Zhijian
Hi Intel 0Day noticed that test_syscall_vdso_32 failed since 8bb2610bc4967f19672444a7b0407367f1540028(x86/entry/64/compat: Preserve r8-r11 in int $0x80) 2018-06-25 14:23:00 make run_tests -C x86 make: Entering directory

Re: [PATCH] x86/entry/64/compat: Fix "x86/entry/64/compat: Preserve r8-r11 in int $0x80"

2018-06-27 Thread Li Zhijian
uge offset. Reported-by: zhijianx...@intel.com Fixes: 8bb2610bc496 ("x86/entry/64/compat: Preserve r8-r11 in int $0x80") Cc: sta...@vger.kernel.org Signed-off-by: Andy Lutomirski Tested-by: Li Zhijian --- arch/x86/entry/entry_64_compat.S | 16 1 file changed

[kselftests] compaction_test is blocked

2018-02-08 Thread Li Zhijian
Hi kselftests is integrated Intel 0Day project. Sometimes we found compaction_test is blocked for more than 1 hours until i kill it. Try to figure out where it is running, i added some log to this case. the test log is like: --- [ 111.750543] main: 248 [ 111.750544]- [

Re: [kselftests] compaction_test is blocked

2018-02-12 Thread Li Zhijian
On 2018年02月12日 11:26, Li Zhijian wrote: On 2018年02月11日 13:44, Li Zhijian wrote: On 02/10/2018 05:11 AM, Dan Rue wrote: On Fri, Feb 09, 2018 at 03:53:59PM +0800, Li Zhijian wrote: Hi kselftests is integrated Intel 0Day project. Sometimes we found compaction_test is blocked for more than

[PATCH] selftests/bpf/test_maps: exit child process without error in ENOMEM case

2018-02-12 Thread Li Zhijian
From: Li Zhijian <zhijianx...@intel.com> test_maps contains a series of stress tests, and previously it will break the reset tests when it failed to alloc memory. --- Failed to create hashmap key=8 value=262144 'Cannot allocate memory' Failed to create hashmap key=16

Re: [kselftests] compaction_test is blocked

2018-02-10 Thread Li Zhijian
On 02/10/2018 05:11 AM, Dan Rue wrote: On Fri, Feb 09, 2018 at 03:53:59PM +0800, Li Zhijian wrote: Hi kselftests is integrated Intel 0Day project. Sometimes we found compaction_test is blocked for more than 1 hours until i kill it. Try to figure out where it is running, i added some log

Re: [kselftests] compaction_test is blocked

2018-02-11 Thread Li Zhijian
On 2018年02月11日 13:44, Li Zhijian wrote: On 02/10/2018 05:11 AM, Dan Rue wrote: On Fri, Feb 09, 2018 at 03:53:59PM +0800, Li Zhijian wrote: Hi kselftests is integrated Intel 0Day project. Sometimes we found compaction_test is blocked for more than 1 hours until i kill it. Try to figure

[PATCH v2] selftests/bpf/test_maps: exit child process without error in ENOMEM case

2018-02-21 Thread Li Zhijian
From: Li Zhijian <zhijianx...@intel.com> test_maps contains a series of stress tests, and previously it will break the rest tests when it failed to alloc memory. --- Failed to create hashmap key=8 value=262144 'Cannot allocate memory' Failed to create hashmap key=16

[PATCH] perf test shell: Add -D to check dynamic symbols for ubuntu/debian

2017-12-27 Thread Li Zhijian
aldo Carvalho de Melo <a...@redhat.com> Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.com> --- tools/perf/tests/shell/trace+probe_libc_inet_pton.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/tests/shell/trace+probe_libc_inet_pton.sh b/

Re: [PATCH 0/3] fix selftests compiling errors and warnings

2018-07-10 Thread Li Zhijian
ping On 07/02/2018 11:53 AM, Li Zhijian wrote: Li Zhijian (3): selftests/android: fix compiling error selftests/android: initialize heap_type to avoid compiling warning selftests/gpio: unset OUTPUT for build tools/gpio tools/testing/selftests/android/ion/Makefile| 5

Re: [PATCH 0/3] fix selftests compiling errors and warnings

2018-07-10 Thread Li Zhijian
On 07/10/2018 10:08 PM, Shuah Khan wrote: On 07/10/2018 02:38 AM, Li Zhijian wrote: ping On 07/02/2018 11:53 AM, Li Zhijian wrote: Li Zhijian (3):    selftests/android: fix compiling error    selftests/android: initialize heap_type to avoid compiling warning    selftests/gpio: unset

[PATCH v2] selftests/android: initialize heap_type to avoid compiling warning

2018-07-10 Thread Li Zhijian
_size: %ld\n", heap_type, heap_size); ^~~~ CC: Shuah Khan CC: Pintu Agarwal Signed-off-by: Li Zhijian --- tools/testing/selftests/android/ion/ionapp_export.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftes

kernel_selftests.x86.mpx-mini-test_32.fail on skylake platform

2018-03-08 Thread Li Zhijian
Hi all 0Day noticed that kernel_selftests.x86.mpx-mini-test_32.fail at recent upstream kernel a. v4.11 Good b. v4.12 and later: Bad And the 64bit application kernel_selftests.x86.mpx-mini-test_64 is always good. 0Day robot tried to bisect the FBC, but it failed at last. But anyway i want to

Re: kernel_selftests.x86.mpx-mini-test_32.fail on skylake platform

2018-03-22 Thread Li Zhijian
Sorry to reply so late. On 3/13/2018 1:34 AM, Dave Hansen wrote: On 03/08/2018 05:24 PM, Li Zhijian wrote: 0Day robot tried to bisect the FBC, but it failed at last. But anyway i want to let you know we had this issue. Can you please bisect this, manually if necessary? Let me know if you

[PATCH v2] selftests/vm/run_vmtests: adjust hugetlb size accroding to nr_cpus

2018-03-03 Thread Li Zhijian
ize is often 2M, so when host cpus > 64, it requires more than 128M. Changes since v1: - update changelog/comments and variable name to make code more easier to read/understand(stolen from Mike Kravetz) Link: http://lkml.kernel.org/r/20180302024356.83359-1-zhijianx...@intel.com Signed-off-

[PATCH] selftests/vm/run_vmtests: adjust hugetlb size accroding to nr_cpus

2018-03-01 Thread Li Zhijian
t;nr_cpus * hugepage_size hugepage_size is often 2M, so when host cpus > 64, it requires more than 128M. Signed-off-by: Li Zhijian <zhijianx...@intel.com> --- tools/testing/selftests/vm/run_vmtests | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tools/te

[PATCH] perf test record+probe_libc_inet_pton: expect [unknown] for ping as well

2018-06-28 Thread Li Zhijian
ichter Reported-by: kernel test robot Signed-off-by: Li Zhijian --- tools/perf/tests/shell/record+probe_libc_inet_pton.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/tests/shell/record+probe_libc_inet_pton.sh b/tools/perf/tests/shell/record+probe_libc_inet

[PATCH] initramfs: clean old path before creating a hardlink

2018-11-15 Thread Li Zhijian
o -nodefaults In this case, sys_link(2) will fail and return -EEXIST, so we can only get the rc.local at rootfs.cgz instead of rc-local.cgz CC: Philip Li Signed-off-by: Li Zhijian --- init/initramfs.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init/initramfs

Re: [LKP] [tools/bpf] f6f3bac08f: stderr.failed_to_prepare_for_bpf

2018-11-06 Thread Li Zhijian
On 11/6/2018 9:47 AM, Yonghong Song wrote: I cannot reproduce in my local fc28 system with the attached steps. The netlink_dumper.c file, could you confirm whether the following header files are missing form you rhel-7.2 host? #include #include I suspect you probably miss

Re: [PATCH] selftests/gpio: fix compiling errors

2018-10-10 Thread Li Zhijian
On 10/11/2018 04:25 AM, Shuah Khan wrote: On 10/07/2018 08:32 AM, Li Zhijian wrote: ping On 09/21/2018 06:00 PM, Li Zhijian wrote: lizhijian@haswell-OptiPlex-9020:/home/lizj/linux/tools/testing/selftests$ make [...snip...] make ARCH=x86 CROSS_COMPILE= -C ../../../gpio make[2]: Entering

Re: [PATCH] selftests/gpio: fix compiling errors

2018-10-07 Thread Li Zhijian
ping On 09/21/2018 06:00 PM, Li Zhijian wrote: lizhijian@haswell-OptiPlex-9020:/home/lizj/linux/tools/testing/selftests$ make [...snip...] make ARCH=x86 CROSS_COMPILE= -C ../../../gpio make[2]: Entering directory '/home/lizj/linux/tools/gpio' [...snip...] make[3]: Leaving directory '/home/lizj

[PATCH] selftests/gpio: fix compiling errors

2018-09-21 Thread Li Zhijian
to $OUTPUTgpio-utils.o - pass OUTPUT to tools/gpio/Makefile - support cleanup ../gpiogpio-hammer.o CC: Bamvor Jian Zhang CC: Bartosz Golaszewski CC: Shuah Khan CC: linux-g...@vger.kernel.org Signed-off-by: Li Zhijian --- tools/testing/selftests/gpio/Makefile | 8 1 file changed, 4

Re: [PATCH] initramfs: clean old path before creating a hardlink

2018-11-21 Thread Li Zhijian
ping This patch is to fix initrd cannot be extracted properly in some cases. Thanks On 11/16/2018 03:12 PM, Li Zhijian wrote: Previously, sys_link() will fail due to the new path is already existed. this case ofen appears when we use a concated initrd, below is an sample: 1) prepare

Re: [PATCH] initramfs: clean old path before creating a hardlink

2018-11-26 Thread Li Zhijian
On 11/27/2018 07:34 AM, Andrew Morton wrote: On Fri, 16 Nov 2018 15:12:48 +0800 Li Zhijian wrote: Previously, sys_link() will fail due to the new path is already existed. this case ofen appears when we use a concated initrd, below is an sample: 1) prepare a basic rootfs, it contains

Re: [LKP] [ipc] 61224adcd2: general_protection_fault:#[##]

2018-09-18 Thread Li Zhijian
On 9/18/2018 3:23 PM, David Howells wrote: Still not sure what I'm meant to be seeing. Note that there are a number of "Not found" and "No such file or directory" errors appearing. I've attached the console log for you. David --- warthog>sudo bin/lkp qemu -k

Re: [LKP] [ipc] 61224adcd2: general_protection_fault:#[##]

2018-09-18 Thread Li Zhijian
On 9/18/2018 6:20 PM, David Howells wrote: Li Zhijian wrote: this is not expected. could you list/home/dhowells/.lkp/cache final_initrd initrd-concatenated lkp/ lkp-x86_64-ad88cb1a437a_.cgz osimage/ Note that ~/.lkp is a symlink to somewhere that I don't mind clobbering. Does

[PATCH] selftests/vm/run_vmtests: adjust hugetlb size accroding to nr_cpus

2018-03-01 Thread Li Zhijian
t;nr_cpus * hugepage_size hugepage_size is often 2M, so when host cpus > 64, it requires more than 128M. Signed-off-by: Li Zhijian --- tools/testing/selftests/vm/run_vmtests | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/vm/run_vmtests b/t

Re: kernel_selftests.x86.mpx-mini-test_32.fail on skylake platform

2018-03-22 Thread Li Zhijian
Sorry to reply so late. On 3/13/2018 1:34 AM, Dave Hansen wrote: On 03/08/2018 05:24 PM, Li Zhijian wrote: 0Day robot tried to bisect the FBC, but it failed at last. But anyway i want to let you know we had this issue. Can you please bisect this, manually if necessary? Let me know if you

kernel_selftests.x86.mpx-mini-test_32.fail on skylake platform

2018-03-08 Thread Li Zhijian
Hi all 0Day noticed that kernel_selftests.x86.mpx-mini-test_32.fail at recent upstream kernel a. v4.11 Good b. v4.12 and later: Bad And the 64bit application kernel_selftests.x86.mpx-mini-test_64 is always good. 0Day robot tried to bisect the FBC, but it failed at last. But anyway i want to

[PATCH v2] selftests/bpf/test_maps: exit child process without error in ENOMEM case

2018-02-21 Thread Li Zhijian
From: Li Zhijian test_maps contains a series of stress tests, and previously it will break the rest tests when it failed to alloc memory. --- Failed to create hashmap key=8 value=262144 'Cannot allocate memory' Failed to create hashmap key=16 value=262144 'Cannot allocate

Re: [PATCH v2] perf test shell: Add -D to check dynamic symbols for ubuntu/debian

2018-05-09 Thread Li Zhijian
ill doesn't work for this case. Thanks Zhijian On 05/10/2018 05:41 AM, Kim Phillips wrote: On Wed, 9 May 2018 15:45:29 +0800 Li Zhijian wrote: On Ubuntu and Debian, we can't find any symbol including "inet_pton" from 'nm -g' root@vm-lkp-nex04-8G-5 ~# nm -g /lib/x86_64-linux-gnu

[PATCH 1/2] tools/testing/selftests/x86: fix warning: "SEGV_PKUERR|SEGV_BNDERR" redefined

2018-05-08 Thread Li Zhijian
evious definition # define SEGV_PKUERR SEGV_PKUERR ^ --- Signed-off-by: Li Zhijian --- tools/testing/selftests/x86/protection_keys.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/x86/protection_keys.c b/tools/testing/selftests/x86/

[PATCH 2/2] tools/testing/selftests/x86: fix error: conflicting types for 'pkey_get|pkey_set'

2018-05-08 Thread Li Zhijian
/usr/include/sys/mman.h:41, from protection_keys.c:37: /usr/include/bits/mman-shared.h:60:5: note: previous declaration of 'pkey_set' was here int pkey_set (int __key, unsigned int __access_rights) __THROW; ^ Signed-off-by: Li Zhijian --- tools/testing/selftests

Re: [PATCH] perf test shell: Add -D to check dynamic symbols for ubuntu/debian

2018-05-09 Thread Li Zhijian
ping On 12/27/2017 04:50 PM, Li Zhijian wrote: On Ubuntu and Debian, we can't find any symbol including "inet_pton" from 'nm -g' root@vm-lkp-nex04-8G-5 ~# nm -g /lib/x86_64-linux-gnu/libc-2.25.so | grep inet_pton nm: /lib/x86_64-linux-gnu/libc-2.25.so: no symbols it looks l

Re: [PATCH] perf test shell: Add -D to check dynamic symbols for ubuntu/debian

2018-05-09 Thread Li Zhijian
Sorry, just noticed this path is out-of-date i will rebase it On 05/09/2018 03:36 PM, Li Zhijian wrote: ping On 12/27/2017 04:50 PM, Li Zhijian wrote: On Ubuntu and Debian, we can't find any symbol including "inet_pton" from 'nm -g' root@vm-lkp-nex04-8G-5 ~# nm -g /lib/x86_64

[PATCH v2] perf test shell: Add -D to check dynamic symbols for ubuntu/debian

2018-05-09 Thread Li Zhijian
MATUse the output format FORMAT. FORMAT can be `bsd', `sysv' or `posix'. The default is `bsd' -g, --extern-only Display only external symbols I tested both debian/ubuntu and RHEL, they work as expected CC: Thomas Richter CC: Arnaldo Carvalho de Melo Signed-

[PATCH] perf test shell: trace+probe_libc_inet_pton.sh: be compatible with debian/ubuntu

2017-10-18 Thread Li Zhijian
/avg/max/mdev = 0.040/0.040/0.040/0.000 ms 0.000 probe_libc:inet_pton:(7f0e2db741c0)) __GI___inet_pton (/lib/x86_64-linux-gnu/libc-2.23.so) getaddrinfo (/lib/x86_64-linux-gnu/libc-2.23.so) [0xa9d40f34ff4d] (/bin/ping) --- Signed-off-by: Li Zhijian --- tools/perf/tests/shell/trace

[PATCH] tools include: define READ_ONCE/WRITE_ONCE for C++

2017-11-27 Thread Li Zhijian
^ LD tests/perf-in.o ... ---------- Signed-off-by: Li Zhijian --- tools/include/linux/compiler.h | 5 + 1 file changed, 5 insertions(+) diff --git a/tools/include/linux/compiler.h b/tools/include/linux/compiler.h index 07fd03c..e4c8a0d 100644 --- a/tools/include/linux/compiler.h +++ b/to

Re: [PATCH] tools include: define READ_ONCE/WRITE_ONCE for C++

2017-11-27 Thread Li Zhijian
add Arnaldo Carvalho de Melo On 11/28/2017 02:13 PM, Li Zhijian wrote: since 6aa7de0, we failed to build perf with C++(clang) to fix the following compile errors -- lizhijian@haswell-OptiPlex-9020:~/lkp/linux/tools/perf$ make LLVM_CONFIG=/usr/bin/llvm-config-3.9 LIBCLANGLLVM=1

Re: [PATCH] tools include: define READ_ONCE/WRITE_ONCE for C++

2017-11-28 Thread Li Zhijian
On 11/28/2017 07:30 PM, Mark Rutland wrote: Hi, [Fixed acme's address and added more Ccs] thanks On Tue, Nov 28, 2017 at 02:13:42PM +0800, Li Zhijian wrote: since 6aa7de0, we failed to build perf with C++(clang) to fix the following compile errors Sorry about this. With llvm-config

Re: [PATCH v2] tools include: define READ_ONCE/WRITE_ONCE for C++

2017-12-14 Thread Li Zhijian
ping On 11/30/2017 09:36 AM, Li Zhijian wrote: since 6aa7de0, we failed to build perf with C++(clang) to fix the following compile errors -- lizhijian@haswell-OptiPlex-9020:~/lkp/linux/tools/perf$ make LLVM_CONFIG=/usr/bin/llvm-config-3.9 LIBCLANGLLVM=1 ... CC util/probe

[PATCH] perf test shell: Add -D to check dynamic symbols for ubuntu/debian

2017-12-27 Thread Li Zhijian
MATUse the output format FORMAT. FORMAT can be `bsd', `sysv' or `posix'. The default is `bsd' -g, --extern-only Display only external symbols I tested both debian/ubuntu and RHEL, they work as expected CC: Thomas Richter CC: Arnaldo Carvalho de Melo Signed-

Re: [lkp-robot] [perf/x86] a5df70c354: perf-sanity-tests.Parse_event_definition_strings.fail

2017-10-29 Thread Li Zhijian
erms invpcid cqm xsaveopt cqm_llc cqm_occup_llc dtherm ida arat pln pts --- Thanks Zhijian On 10/28/2017 4:44 AM, Andi Kleen wrote: On Fri, Oct 27, 2017 at 04:11:09PM +0800, Li Zhijian wrote: + members of perf test ping add more results on different platforms

[PATCH] tool/perf: fix perf compiling errors

2017-09-21 Thread Li Zhijian
From: Li Zhijian since f045b8c, we failed to build perf with LIBCLANGLLVM=1, this patch is to fix the following compiling errors -- lizhijian@haswell-OptiPlex-9020:~/lkp/linux/tools/perf$ make LLVM_CONFIG=/usr/bin/llvm-config-3.9 LIBCLANGLLVM=1 BUILD: Doing 'make -j8' parallel

[PATCH] tool/perf: fix perf compiling errors

2017-09-21 Thread Li Zhijian
rom util/c++/clang-test.cpp:2: /home/lizj/linux/tools/include/linux/list.h:107:14: error: invalid conversion from ‘void*’ to ‘list_head*’ [-fpermissive] -- Signed-off-by: Li Zhijian --- tools/perf/util/namespaces.h | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/perf/u

[PATCH v2] selftests/vm/run_vmtests: adjust hugetlb size accroding to nr_cpus

2018-03-03 Thread Li Zhijian
ize is often 2M, so when host cpus > 64, it requires more than 128M. Changes since v1: - update changelog/comments and variable name to make code more easier to read/understand(stolen from Mike Kravetz) Link: http://lkml.kernel.org/r/20180302024356.83359-1-zhijianx...@intel.com Signed-off-

Re: [kselftests] compaction_test is blocked

2018-02-12 Thread Li Zhijian
On 2018年02月12日 11:26, Li Zhijian wrote: On 2018年02月11日 13:44, Li Zhijian wrote: On 02/10/2018 05:11 AM, Dan Rue wrote: On Fri, Feb 09, 2018 at 03:53:59PM +0800, Li Zhijian wrote: Hi kselftests is integrated Intel 0Day project. Sometimes we found compaction_test is blocked for more than

[PATCH] selftests/bpf/test_maps: exit child process without error in ENOMEM case

2018-02-12 Thread Li Zhijian
From: Li Zhijian test_maps contains a series of stress tests, and previously it will break the reset tests when it failed to alloc memory. --- Failed to create hashmap key=8 value=262144 'Cannot allocate memory' Failed to create hashmap key=16 value=262144 'Cannot allocate

[PATCH v2] tools include: define READ_ONCE/WRITE_ONCE for C++

2017-11-29 Thread Li Zhijian
^ LD tests/perf-in.o ... ---------- Signed-off-by: Li Zhijian --- tools/include/linux/compiler.h | 5 + 1 file changed, 5 insertions(+) diff --git a/tools/include/linux/compiler.h b/tools/include/linux/compiler.h index 07fd03c..d6675c5 100644 --- a/tools/include/linux/compiler.h +++ b/to

Re: [LKP] Re: 28307d938f ("percpu: make pcpu_alloc() aware of current gfp .."): BUG: kernel reboot-without-warning in boot stage

2020-06-01 Thread Li Zhijian
Hi Filipe, LKP checked blow dmesg as the indicator in this problem [0.144174] RAMDISK: [mem 0x7fa2e000-0x7fff] [0.144559] ACPI: Early table checksum verification disabled [0.144985] ACPI: RSDP 0x000F5850 14 (v00 BOCHS ) [0.145424] ACPI: RSDT 0xBFFE15C9

[PATCH] perf test shell: trace+probe_libc_inet_pton.sh: force to use /bin/bash to load this script

2017-10-18 Thread Li Zhijian
for lizhijian: PING ::1(::1) 56 data bytes ./trace+probe_libc_inet_pton.sh: 30: ./trace+probe_libc_inet_pton.sh: Bad substitution ./trace+probe_libc_inet_pton.sh: 32: ./trace+probe_libc_inet_pton.sh: Bad substitution Signed-off-by: Li Zhijian --- tools/perf/tests/shell/trace

Re: [PATCH] perf test shell: trace+probe_libc_inet_pton.sh: force to use /bin/bash to load this script

2017-10-18 Thread Li Zhijian
ignore this patch please, it will broken the test description which is read from the first line of this script Thanks On 10/19/2017 11:53 AM, Li Zhijian wrote: this script contains Array, but not all sh support Array. by default, dash provides sh at ubuntu/debian which can not support Array

[PATCH] perf test: use stat() to check type of file instead of readdir

2017-10-19 Thread Li Zhijian
handle a return of DT_UNKNOWN. - so if we run the perf test under xfs, all cases under tests/shell/ will not be covered previously. Signed-off-by: Li Zhijian --- tools/perf/tests/builtin-test.c | 22 -- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git

perf test vfs_getname failed

2017-10-19 Thread Li Zhijian
Hi Arnaldo i encounter some problem when running perf test, the details arelike below: - [lizj@rhel71 perf]$ sudo ./perf test vfs_getname -v 61: Add vfs_getname probe to get syscall args filenames : --- start --- test child forked, pid 5958 Failed to find 'result'

[kselftests] compaction_test is blocked

2018-02-08 Thread Li Zhijian
Hi kselftests is integrated Intel 0Day project. Sometimes we found compaction_test is blocked for more than 1 hours until i kill it. Try to figure out where it is running, i added some log to this case. the test log is like: --- [ 111.750543] main: 248 [ 111.750544]- [

Re: [kselftests] compaction_test is blocked

2018-02-10 Thread Li Zhijian
On 02/10/2018 05:11 AM, Dan Rue wrote: On Fri, Feb 09, 2018 at 03:53:59PM +0800, Li Zhijian wrote: Hi kselftests is integrated Intel 0Day project. Sometimes we found compaction_test is blocked for more than 1 hours until i kill it. Try to figure out where it is running, i added some log

Re: [kselftests] compaction_test is blocked

2018-02-11 Thread Li Zhijian
On 2018年02月11日 13:44, Li Zhijian wrote: On 02/10/2018 05:11 AM, Dan Rue wrote: On Fri, Feb 09, 2018 at 03:53:59PM +0800, Li Zhijian wrote: Hi kselftests is integrated Intel 0Day project. Sometimes we found compaction_test is blocked for more than 1 hours until i kill it. Try to figure

Re: perf test vfs_getname failed

2017-10-23 Thread Li Zhijian
using perf trace + vfs_getname: Ok totally, i tested at 3 distro 1. fedora-26: OK 2. ubuntu 16.04: FAIL 3. rhel7.1 beta: FAIL Does it means that those cases are related to special distro(require special middle wares) ? Thanks On 10/19/2017 4:31 PM, Li Zhijian wrote: Hi Arnaldo i encounter some

Re: [LKP] Re: [pipe] f2af7d90e2: xfstests.btrfs.052.fail

2020-05-10 Thread Li Zhijian
Hi Matthew with a quick look into the dmesg looks this commit broke the preparation of LKP tests [   32.677588] install debs round two: dpkg -i --force-confdef --force-depends /opt/deb/gawk_1%3a4.1.4+dfsg-1_amd64.deb [ 32.677593]- [   32.697180] tar: ./control: Cannot write: Invalid argument

Re: [PATCH] selftests:mptcp: fix empty optstring

2020-05-10 Thread Li Zhijian
ping On 4/2/20 2:52 PM, Li Zhijian wrote: From: Li Zhijian Signed-off-by: Li Zhijian --- tools/testing/selftests/net/mptcp/pm_netlink.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/testing/selftests/net/mptcp/pm_netlink.sh b/tools/testing/selftests/net

Re: [kmemleak] b751c52bb5: BUG:kernel_hang_in_boot_stage

2020-06-10 Thread Li Zhijian
On 6/10/20 6:56 PM, Catalin Marinas wrote: On Wed, Jun 10, 2020 at 03:51:56PM +0800, kernel test robot wrote: FYI, we noticed the following commit (built with gcc-7): commit: b751c52bb587ae66f773b15204ef7a147467f4c7 ("kmemleak: increase DEBUG_KMEMLEAK_EARLY_LOG_SIZE default to 16K")

Re: [LKP] Re: 28307d938f ("percpu: make pcpu_alloc() aware of current gfp .."): BUG: kernel reboot-without-warning in boot stage

2020-06-02 Thread Li Zhijian
On 6/2/20 8:18 PM, Filipe Manana wrote: On 02/06/20 05:37, Li Zhijian wrote: Hi Filipe, LKP checked blow dmesg as the indicator in this problem [    0.144174] RAMDISK: [mem 0x7fa2e000-0x7fff] [    0.144559] ACPI: Early table checksum verification disabled [    0.144985] ACPI: RSDP

Re: [PATCH 0/3] fix selftests compiling errors and warnings

2018-07-10 Thread Li Zhijian
ping On 07/02/2018 11:53 AM, Li Zhijian wrote: Li Zhijian (3): selftests/android: fix compiling error selftests/android: initialize heap_type to avoid compiling warning selftests/gpio: unset OUTPUT for build tools/gpio tools/testing/selftests/android/ion/Makefile| 5

Re: [PATCH 0/3] fix selftests compiling errors and warnings

2018-07-10 Thread Li Zhijian
On 07/10/2018 10:08 PM, Shuah Khan wrote: On 07/10/2018 02:38 AM, Li Zhijian wrote: ping On 07/02/2018 11:53 AM, Li Zhijian wrote: Li Zhijian (3):    selftests/android: fix compiling error    selftests/android: initialize heap_type to avoid compiling warning    selftests/gpio: unset

[PATCH v2] selftests/android: initialize heap_type to avoid compiling warning

2018-07-10 Thread Li Zhijian
_size: %ld\n", heap_type, heap_size); ^~~~ CC: Shuah Khan CC: Pintu Agarwal Signed-off-by: Li Zhijian --- tools/testing/selftests/android/ion/ionapp_export.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftes

test_syscall_vdso_32 [FAIL]

2018-06-25 Thread Li Zhijian
Hi Intel 0Day noticed that test_syscall_vdso_32 failed since 8bb2610bc4967f19672444a7b0407367f1540028(x86/entry/64/compat: Preserve r8-r11 in int $0x80) 2018-06-25 14:23:00 make run_tests -C x86 make: Entering directory

Re: [PATCH] x86/entry/64/compat: Fix "x86/entry/64/compat: Preserve r8-r11 in int $0x80"

2018-06-27 Thread Li Zhijian
uge offset. Reported-by: zhijianx...@intel.com Fixes: 8bb2610bc496 ("x86/entry/64/compat: Preserve r8-r11 in int $0x80") Cc: sta...@vger.kernel.org Signed-off-by: Andy Lutomirski Tested-by: Li Zhijian --- arch/x86/entry/entry_64_compat.S | 16 1 file changed

[PATCH] perf test record+probe_libc_inet_pton: expect [unknown] for ping as well

2018-06-28 Thread Li Zhijian
ichter Reported-by: kernel test robot Signed-off-by: Li Zhijian --- tools/perf/tests/shell/record+probe_libc_inet_pton.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/tests/shell/record+probe_libc_inet_pton.sh b/tools/perf/tests/shell/record+probe_libc_inet

Re: [PATCH] perf test record+probe_libc_inet_pton: expect [unknown] for ping as well

2018-06-30 Thread Li Zhijian
On 06/29/2018 11:17 PM, Arnaldo Carvalho de Melo wrote: Em Thu, Jun 28, 2018 at 03:16:00PM +0800, Li Zhijian escreveu: On system which has not installed debuginfo of iputils(ping) will fail like: ~/lkp/linux/tools/perf$ sudo ./perf test ping -v I think that we should try to check

[PATCH 2/3] selftests/android: initialize heap_type to avoid compiling warning

2018-07-01 Thread Li Zhijian
_size: %ld\n", heap_type, heap_size); ^~~~ CC: Shuah Khan CC: Pintu Agarwal Signed-off-by: Li Zhijian --- tools/testing/selftests/android/ion/ionapp_export.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/tools/testing

[PATCH 0/3] fix selftests compiling errors and warnings

2018-07-01 Thread Li Zhijian
Li Zhijian (3): selftests/android: fix compiling error selftests/android: initialize heap_type to avoid compiling warning selftests/gpio: unset OUTPUT for build tools/gpio tools/testing/selftests/android/ion/Makefile| 5 - tools/testing/selftests/android/ion/ionapp_export.c

[PATCH 1/3] selftests/android: fix compiling error

2018-07-01 Thread Li Zhijian
: fatal error: linux/dma-buf.h: No such file or directory compilation terminated. : recipe for target 'ionmap_test' failed make: *** [ionmap_test] Error 1 It requires headers_install to $TOP/usr CC: Shuah Khan CC: Pintu Agarwal Signed-off-by: Li Zhijian --- tools/testing/selftests/android/ion

[PATCH 3/3] selftests/gpio: unset OUTPUT for build tools/gpio

2018-07-01 Thread Li Zhijian
]: *** [gpio-mockup-chardev] Error 1 make[1]: Leaving directory '/home/lizj/linux/tools/testing/selftests/gpio' Makefile:84: recipe for target 'all' failed make: *** [all] Error 2 CC: Bamvor Jian Zhang CC: Bartosz Golaszewski CC: Shuah Khan CC: linux-g...@vger.kernel.org Signed-off-by: Li

  1   2   >