[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] 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 a

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'

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

2017-10-29 Thread Li Zhijian
3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl

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 '/usr/src/linux-selftests-x86_64-rhel-7.2-8bb2610bc4967f19672444a7b040736

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 l

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 a

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 a

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

2018-11-15 Thread Li Zhijian
-initrd ./concate-initr.cgz -serial stdio -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 deleti

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 if the

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

2018-07-01 Thread Li Zhijian
zed] printf("heap_type: %ld, heap_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 i

[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/a

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

2018-07-01 Thread Li Zhijian
up-chardev' failed make[1]: *** [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

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
zed] printf("heap_type: %ld, heap_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 insertio

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

2018-06-27 Thread Li Zhijian
the huge 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 ch

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

2018-06-28 Thread Li Zhijian
: Thomas Richter 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

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: [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 linux/tc_act/tc_b

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 &

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 /data/fs/linux-next/build2/arch/x

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] vdpa: Convert sprintf/snprintf to sysfs_emit

2024-03-14 Thread Li Zhijian
have. Generally, this patch is generated by make coccicheck M= MODE=patch \ COCCI=scripts/coccinelle/api/device_attr_show.cocci No functional change intended CC: "Michael S. Tsirkin" CC: Jason Wang CC: Xuan Zhuo CC: virtualizat...@lists.linux.dev Signed-off-by: Li Zhijian --- This

[PATCH] nvdimm: Fix devs leaks in scan_labels()

2024-06-03 Thread Li Zhijian
_async_device_register+0xe/0x50 [libnvdimm] [<3f4c52a4>] async_run_entry_fn+0x2e/0x110 [<e201f4b0>] process_one_work+0x1ee/0x600 [<6d90d5a9>] worker_thread+0x183/0x350 Fixes: 1b40e09a1232 ("libnvdimm: blk labels and namespace instantiation") Signed-o

[PATCH v2 2/2] nvdimm: Remove dead code for ENODEV checking in scan_labels()

2024-07-18 Thread Li Zhijian
(), it's safe to remove the 'return -ENODEV' branch. Signed-off-by: Li Zhijian --- V2: new patch. It's found when I'm Reviewing/tracing the return values of create_namespace_pmem() --- drivers/nvdimm/namespace_devs.c | 9 - 1 file changed, 9 deletion

[PATCH v2 1/2] nvdimm: Fix devs leaks in scan_labels()

2024-07-18 Thread Li Zhijian
ng Cc: Ira Weiny Fixes: 1b40e09a1232 ("libnvdimm: blk labels and namespace instantiation") Signed-off-by: Li Zhijian --- Cc: Ira Weiny > From what I can tell create_namespace_pmem() must be returning EAGAIN > which leaves devs allocated but fails to increment count. Thus there

[PATCH v3 1/2] nvdimm: Fix devs leaks in scan_labels()

2024-08-18 Thread Li Zhijian
e/0x600 [<6d90d5a9>] worker_thread+0x183/0x350 Cc: Dave Jiang Cc: Ira Weiny Fixes: 1b40e09a1232 ("libnvdimm: blk labels and namespace instantiation") Suggested-by: Dan Williams Signed-off-by: Li Zhijian Reviewed-by: Dan Williams --- V3: update commit log and all

[PATCH v3 2/2] nvdimm: Remove dead code for ENODEV checking in scan_labels()

2024-08-18 Thread Li Zhijian
(), it's safe to remove the 'return -ENODEV' branch. Signed-off-by: Li Zhijian --- V2: new patch. It's found when I'm Reviewing/tracing the return values of create_namespace_pmem() --- drivers/nvdimm/namespace_devs.c | 9 - 1 file changed, 9 deletion

Re: RDMA/rpma + fsdax(ext4) was broken since 36f30e486d

2021-08-27 Thread Li, Zhijian
on 2021/8/27 20:10, Jason Gunthorpe wrote: On Fri, Aug 27, 2021 at 08:15:40AM +, lizhij...@fujitsu.com wrote: i looked over the change-log of hmm_vma_handle_pte(), and found that before 4055062 ("mm/hmm: add missing call to hmm_pte_need_fault in HMM_PFN_SPECIAL handling") hmm_vma_handle_

Re: RDMA/rpma + fsdax(ext4) was broken since 36f30e486d

2021-08-27 Thread Li, Zhijian
on 2021/8/27 21:16, Jason Gunthorpe wrote: On Fri, Aug 27, 2021 at 09:05:21PM +0800, Li, Zhijian wrote: Yes, can you send a proper patch and include the mm mailing list? Of course, my pleasure Thanks

Re: [RFC PATCH rdma-next 01/10] RDMA: mr: Introduce is_pmem

2022-01-14 Thread Li, Zhijian
Copied to nvdimm list Thanks Zhijian on 2022/1/6 14:12, Li Zhijian wrote: Add Dan to the party :) May i know whether there is any existing APIs to check whether a va/page backs to a nvdimm/pmem ? On 06/01/2022 08:21, Jason Gunthorpe wrote: On Tue, Dec 28, 2021 at 04:07:08PM +0800, Li

Re: [RFC PATCH 0/7] RDMA/rxe: On-Demand Paging on SoftRoCE

2022-09-08 Thread Li Zhijian
Daisuke Great job. I love this feature, before starting reviewing you patches, i tested it with QEMU(with fsdax memory-backend) migration over RDMA where it worked for MLX5 before. This time, with you ODP patches, it works on RXE though ibv_advise_mr may be not yet ready. Thanks Zhijian O

[PATCH] nvdimm: nvdimm_bus_register: Avoid adding device to the unregistered bus

2023-03-16 Thread Li Zhijian
bus_add_driver+0x1ac/0x200 driver_register+0x8f/0xf0 nfit_init+0x164/0xff0 [nfit] do_one_initcall+0x5b/0x320 do_init_module+0x4c/0x1f0 __do_sys_finit_module+0xb4/0x130 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x72/0xdc Signed-off-by: Li Zhijian --- drivers/nvdimm/bus.c | 7

[RFC] COLO Proxy Module

2015-06-17 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 Mod

[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

[PATCH] selftests/gpio: fix compiling errors

2018-09-21 Thread Li Zhijian
e: *** [all] Error 2 in this patch - correct target name 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/tes

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

2018-03-03 Thread Li Zhijian
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: [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 symb

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

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

2018-05-09 Thread Li Zhijian
-format=FORMATUse 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

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

2018-05-09 Thread Li Zhijian
debug library, it still 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-n

[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
an.h:45, from /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:

[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 --- 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 index c8137f7..965ed11 100644 --- a

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") https:/

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: [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 00

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

[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 '

[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]- [ 111

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 to

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: [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 '

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
-format=FORMATUse 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

[PATCH] tool/perf: fix perf compiling errors

2017-09-20 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'

[PATCH] tool/perf: fix perf compiling errors

2017-09-20 Thread Li Zhijian
from 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/to

[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-confi

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

[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

[PATCH 1/3] selftests: Add a few missing gitignore files

2024-10-14 Thread Li Zhijian
ler_tests_32 mm/pkey_sighandler_tests_64 net/netfilter/conntrack_reverse_clash Signed-off-by: Li Zhijian --- tools/testing/selftests/alsa/.gitignore | 2 ++ tools/testing/selftests/filesystems/statmount/.gitignore | 1 + tools/testing/selftests/mm/.gitignore

[PATCH 3/3] selftests: ignore output files and clean them in Makefile

2024-10-14 Thread Li Zhijian
Signed-off-by: Li Zhijian --- tools/testing/selftests/cpufreq/.gitignore | 1 + tools/testing/selftests/cpufreq/Makefile | 1 + tools/testing/selftests/zram/.gitignore| 1 + 3 files changed, 3 insertions(+) create mode 100644 tools/testing/selftests/cpufreq/.gitignore create mode 100644 too

[PATCH 2/3] selftests/net: Fix ./ns-XXXXXX not cleanup

2024-10-14 Thread Li Zhijian
: Jakub Kicinski Cc: Paolo Abeni Signed-off-by: Li Zhijian --- Cc: net...@vger.kernel.org --- tools/testing/selftests/net/veth.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/net/veth.sh b/tools/testing/selftests/net/veth.sh index 4f1edbafb946.

[PATCH for-next 3/3] selftests/watchdog: Add run_watchdog-test.sh to run watchdog tests

2024-10-24 Thread Li Zhijian
#x27; not ok 1 selftests: watchdog: run_watchdog-test.sh # exit=1 Signed-off-by: Li Zhijian --- tools/testing/selftests/watchdog/Makefile | 3 +- .../selftests/watchdog/run_watchdog-test.sh | 41 +++ 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100755

[PATCH for-next 2/3] selftests/watchdog: exit watchdog-test with error code

2024-10-24 Thread Li Zhijian
So that we can check its exit code to judge whether it succeeds or not. Signed-off-by: Li Zhijian --- .../testing/selftests/watchdog/watchdog-test.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/tools/testing/selftests/watchdog/watchdog-test.c b/tools

[PATCH v3] selftests/net: Add missing gitignore file

2024-10-29 Thread Li Zhijian
er" Cc: Eric Dumazet Cc: Jakub Kicinski Cc: Paolo Abeni Cc: Shuah Khan Signed-off-by: Li Zhijian --- Cc: netfilter-de...@vger.kernel.org Cc: coret...@netfilter.org Cc: net...@vger.kernel.org --- Hello, Cover letter is here. This patch set aims to make 'git status' clear after &#

[PATCH v3] selftests/net: Fix ./ns-XXXXXX not cleanup

2024-10-29 Thread Li Zhijian
this whole time and everything worked, it's fine to remove these 2 lines completely Cc: "David S. Miller" Cc: Eric Dumazet Cc: Jakub Kicinski Cc: Paolo Abeni Signed-off-by: Li Zhijian --- Cc: net...@vger.kernel.org --- V3: Remove these 2 lines rather than fixing the filename -

[PATCH] selftests/watchdog-test: Fix system accidentally reset after watchdog-test

2024-10-28 Thread Li Zhijian
d not stop! ``` Fix it by registering more signals(including SIGTERM) in watchdog-test, where its signal handler will stop the watchdog. After that # timeout 1 ./watchdog-test Watchdog Ticking Away! . Stopping watchdog ticks... Signed-off-by: Li Zhijian --- tools/testing/selftests/watchdog/watch

[PATCH for-next 6/7] selftests/zram: gitignore output file

2024-10-24 Thread Li Zhijian
After `make run_tests`, the git status complains: Untracked files: (use "git add ..." to include in what will be committed) zram/err.log This file will be cleaned up when execute 'make clean' Cc: Shuah Khan Signed-off-by: Li Zhijian --- Hello, Cover letter is h

[PATCH for-next 1/3] selftests/watchdog: add count parameter for watchdog-test

2024-10-24 Thread Li Zhijian
he OS in silent. 2. kselftests gets an timeout exit code, and judge watchdog-test as 'not ok' This patch is prepare to fix above 2 issues Signed-off-by: Li Zhijian --- Hey, Cover letter is here. It's notice that a OS reboot was triggerred after ran the watchdog-test in kself

[PATCH for-next 1/7] selftests/alsa: Add a few missing gitignore files

2024-10-24 Thread Li Zhijian
Compiled binary files should be added to .gitignore 'git status' complains: Untracked files: (use "git add ..." to include in what will be committed) alsa/global-timer alsa/utimer-test Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Shuah Khan Signe

[PATCH for-next 3/7] selftests/mm: Add a few missing gitignore files

2024-10-24 Thread Li Zhijian
ew Morton Cc: Shuah Khan Signed-off-by: Li Zhijian --- Cc: linux...@kvack.org --- Hello, Cover letter is here. This patch set aims to make 'git status' clear after 'make' and 'make run_tests' for kselftests. --- V2: split as seperate patch from a small one

[PATCH for-next 5/7] selftests/cpufreq: gitignore output files and clean them in make clean

2024-10-24 Thread Li Zhijian
J. Wysocki" Cc: Viresh Kumar Cc: Shuah Khan Signed-off-by: Li Zhijian --- Cc: linux...@vger.kernel.org --- Hello, Cover letter is here. This patch set aims to make 'git status' clear after 'make' and 'make run_tests' for kselftests. --- V2: split as

[PATCH for-next 4/7] selftests/net: Add missing gitignore file

2024-10-24 Thread Li Zhijian
er" Cc: Eric Dumazet Cc: Jakub Kicinski Cc: Paolo Abeni Cc: Shuah Khan Signed-off-by: Li Zhijian --- Cc: netfilter-de...@vger.kernel.org Cc: coret...@netfilter.org Cc: net...@vger.kernel.org --- Hello, Cover letter is here. This patch set aims to make 'git status' clear after &#

[PATCH for-next 7/7] selftests/net: Fix ./ns-XXXXXX not cleanup

2024-10-24 Thread Li Zhijian
: Jakub Kicinski Cc: Paolo Abeni Signed-off-by: Li Zhijian --- Cc: net...@vger.kernel.org --- Hello, Cover letter is here. This patch set aims to make 'git status' clear after 'make' and 'make run_tests' for kselftests. --- V2: nothing change --- tools/testing

[PATCH for-next 2/7] selftests/filesystems: Add missing gitignore file

2024-10-24 Thread Li Zhijian
Compiled binary files should be added to .gitignore 'git status' complains: Untracked files: (use "git add ..." to include in what will be committed) filesystems/statmount/statmount_test_ns Cc: Shuah Khan Cc: Christian Brauner Cc: Miklos Szeredi Cc: Josef Bacik Signe

[PATCH for-next v3] selftests/alsa: Add a few missing gitignore files

2024-11-21 Thread Li Zhijian
Compiled binary files should be added to .gitignore 'git status' complains: Untracked files: (use "git add ..." to include in what will be committed) alsa/global-timer alsa/utimer-test Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Shuah Khan Signe

[PATCH for-next v3] selftests/mm: Add a few missing gitignore files

2024-11-21 Thread Li Zhijian
ew Morton Cc: Shuah Khan Signed-off-by: Li Zhijian --- Cc: linux...@kvack.org --- Hello, Cover letter is here. This patch set aims to make 'git status' clear after 'make' and 'make run_tests' for kselftests. --- V3: nothing change, just resend it (This .git

[PATCH for-next v3] selftests/zram: gitignore output file

2024-11-21 Thread Li Zhijian
After `make run_tests`, the git status complains: Untracked files: (use "git add ..." to include in what will be committed) zram/err.log This file will be cleaned up when execute 'make clean' Cc: Shuah Khan Signed-off-by: Li Zhijian --- Hello, Cover letter is h

[PATCH for-next v3] selftests/cpufreq: gitignore output files and clean them in make clean

2024-11-21 Thread Li Zhijian
J. Wysocki" Cc: Viresh Kumar Cc: Shuah Khan Signed-off-by: Li Zhijian --- Cc: linux...@vger.kernel.org --- Hello, Cover letter is here. This patch set aims to make 'git status' clear after 'make' and 'make run_tests' for kselftests. --- V3: add Copyright descir

[PATCH for-next v3] selftests/filesystems: Add missing gitignore file

2024-11-21 Thread Li Zhijian
Compiled binary files should be added to .gitignore 'git status' complains: Untracked files: (use "git add ..." to include in what will be committed) filesystems/statmount/statmount_test_ns Cc: Shuah Khan Cc: Christian Brauner Cc: Miklos Szeredi Cc: Josef Bacik Signe

[PATCH for-next v4] selftests/mm: Add a few missing gitignore files

2024-11-24 Thread Li Zhijian
ew Morton Cc: Shuah Khan Signed-off-by: Li Zhijian Reviewed-by: John Hubbard --- Cc: linux...@kvack.org --- Hey John, I added your Reviewed-by tag in this revision which have a minor updates. Feel free to let me know if you feel this is unsuitable. Hello, Cover letter is here. This patch s

[PATCH v4] selftests/zram: gitignore output file

2024-12-10 Thread Li Zhijian
After `make run_tests`, the git status complains: Untracked files: (use "git add ..." to include in what will be committed) zram/err.log This file will be cleaned up when execute 'make clean' Cc: Shuah Khan Signed-off-by: Li Zhijian --- Hello, Cover letter is h

[PATCH v4] selftests/filesystems: Add missing gitignore file

2024-12-10 Thread Li Zhijian
Reviewed-by: Charlie Jenkins Tested-by: Charlie Jenkins Signed-off-by: Li Zhijian --- Hello, Cover letter is here. This patch set aims to make 'git status' clear after 'make' and 'make run_tests' for kselftests. --- V4: Collect Reviewed-by and Tested-by from Charlie

[PATCH RFC] Makefile: Export absolute srctree path for out-of-tree builds

2024-12-16 Thread Li Zhijian
n performing an out-of-tree build. This ensures that all sub-Makefiles have the correct path to the source tree, preventing directory resolution errors. Signed-off-by: Li Zhijian --- Request for Additional Testing We welcome all contributors and CI systems to test this change thoroughly. In theor

[PATCH for-next] selftests/alsa: Fix circular dependency involving global-timer

2024-12-17 Thread Li Zhijian
sela Cc: Takashi Iwai Cc: Shuah Khan Signed-off-by: Li Zhijian --- Cc: linux-so...@vger.kernel.org Cc: linux-kselft...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- tools/testing/selftests/alsa/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing

[PATCH for-next 2/2] selftests/Makefile: add INSTALL_DEP_TARGETS to run_tests

2024-12-19 Thread Li Zhijian
: xfrm_policy.sh # lib.sh: line 5: $O/kselftest/net/lib/sh/defer.sh: No such file or directory Signed-off-by: Li Zhijian --- tools/testing/selftests/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile index

[PATCH for-next 0/2] selftests: Fix run_tests and install for net TARGET

2024-12-19 Thread Li Zhijian
This patch set intends to fix the errors in install and run_tests when 'O=' is specified. such as `make O=/path/to/build TARGETS=net kselftest-install` Li Zhijian (2): selftests/Makefile: Create BUILD_TARGET directory for INSTALL_DEP_TARGETS selftests/Makefile: add INSTALL_DEP_

[PATCH for-next 1/2] selftests/Makefile: Create BUILD_TARGET directory for INSTALL_DEP_TARGETS

2024-12-19 Thread Li Zhijian
. /usr/bin/ld: cannot open output file $O/kselftest/net/lib/csum: No such file or directory Signed-off-by: Li Zhijian --- tools/testing/selftests/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile index 24

[PATCH for-next v2] selftests/Makefile: override the srctree for out-of-tree builds

2024-12-23 Thread Li Zhijian
of-tree build. This ensures that all sub-Makefiles have the correct path to the source tree, preventing directory resolution errors. Signed-off-by: Li Zhijian --- Cc: Masahiro Yamada V2: - handle srctree in selftests itself rather than the linux' top Makefile # Masahiro Yamada V1

[PATCH bpf-next v3] selftests/Makefile: override the srctree for out-of-tree builds

2025-01-14 Thread Li Zhijian
of-tree build. This ensures that all sub-Makefiles have the correct path to the source tree, preventing directory resolution errors. Cc: Andrii Nakryiko Signed-off-by: Li Zhijian Tested-by: Quentin Monnet --- Cc: Masahiro Yamada V3: collected Tested-by and rebased on bpf-next V2: - handle

  1   2   >