Re: [PATCH] selftests/mm: Add missing gitignore file

2025-04-05 Thread I Hsin Cheng
On Sat, Apr 05, 2025 at 05:19:13PM +0800, I Hsin Cheng wrote: > Add "guard-pages" binary file into .gitignore. > > Signed-off-by: I Hsin Cheng > --- > tools/testing/selftests/mm/.gitignore | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/testing/

[PATCH] selftests/mm: Add missing gitignore file

2025-04-05 Thread I Hsin Cheng
Add "guard-pages" binary file into .gitignore. Signed-off-by: I Hsin Cheng --- tools/testing/selftests/mm/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/mm/.gitignore b/tools/testing/selftests/mm/.gitignore index c5241b193db8..c9fd69ece95c 10

[PATCH v2] rust: sync: rcu: Mark Guard methods as inline

2025-03-18 Thread I Hsin Cheng
cuNtB2_5Guard6unlock 16 - -16 __pfx__RNvMNtNtCsaYBeKL739Xz_6kernel4sync3rcuNtB2_5Guard3new 16 - -16 Total: Before=23365955, After=23365823, chg -0.00% Link: https://github.com/Rust-for-Linux/linux/issues/1145 Signed-off-by: I Hsin Cheng --- Changelog: v1 -> v2: - Ma

Re: [PATCH] rust: sync: rcu: Mark Guard methods as inline

2025-03-14 Thread I Hsin Cheng
he way, should `read_lock()` be marked too? It just calls another > (now `#[inline]` one). I'll do it and fix the typo mentioned by Charalampos. I'll send v2 to you ASAP. Thanks ! Best regards, I Hsin Cheng

[PATCH] rust: sync: rcu: Mark Guard methods as inline

2025-03-12 Thread I Hsin Cheng
Xz_6kernel4sync3rcuNtB2_5Guard6unlock 16 - -16 __pfx__RNvMNtNtCsaYBeKL739Xz_6kernel4sync3rcuNtB2_5Guard3new 16 - -16 Total: Before=23385830, After=23385730, chg -0.00% Link: https://github.com/Rust-for-Linux/linux/issues/1145 Signed-off-by: I Hsin Cheng --- rust/kernel/sync/

Re: [PATCH] selftests: pidfd: Fix compiling errors and warning

2025-02-05 Thread I Hsin Cheng
On Wed, Feb 05, 2025 at 01:07:56PM +0100, Peter Seiderer wrote: > Hello *, > > On Wed, 5 Feb 2025 13:39:26 +0800, I Hsin Cheng > wrote: > > > When compiling selftests files under tools/testing/selftests/pidfd/ , > > some compiling errors and warnings wi

[PATCH] selftests: pidfd: Fix compiling errors and warning

2025-02-04 Thread I Hsin Cheng
(void)umount2("/proc", MNT_DETACH); |^~ make: *** [../lib.mk:222: \ ~/linux/tools/testing/selftests/pidfd/pidfd_fdinfo_test] Error 1 Solve these errors and warnings by including header file . Signed-off-by: I Hsin Cheng --- tools/testing/selftests/pidfd/pidf

[PATCH] selftests: pidfd: Fix compiling warning of pidfs_setns

2025-02-04 Thread I Hsin Cheng
->child_pidfd_derived_nsfds[i] = \ ioctl(self->pidfd, info->pidfd_ioctl, 0); It's caused by wrong import of header file , fix it to . Signed-off-by: I Hsin Cheng --- tools/testing/selftests/pidfd/pidfd_setns_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/s

[RESEND PATCH v4] list: test: Check the size of every lists for list_cut_position*()

2024-10-08 Thread I Hsin Cheng
Check the total number of elements in both resultant lists are correct within list_cut_position*(). Previously, only the first list's size was checked. so additional elements in the second list would not have been caught. Signed-off-by: I Hsin Cheng --- change in v4: Amen

[RESEND PATCH v4] list: test: Check the size of every lists for list_cut_position*()

2024-10-08 Thread I Hsin Cheng
Check the total number of elements in both resultant lists are correct within list_cut_position*(). Previously, only the first list's size was checked. wo additional elements in the second list would not have been caught. Signed-off-by: I Hsin Cheng --- change in v4: Amen

Re: [RESEND PATCH v3] list: test: Mending tests for list_cut_position()

2024-10-07 Thread I Hsin Cheng
Thu, Oct 03, 2024 at 02:49:15PM +0800, David Gow wrote: > On Tue, 1 Oct 2024 at 01:06, I Hsin Cheng wrote: > > > > Mending test for list_cut_position*() for the missing check of integer > > "i" after the second loop. The variable should be checked for second > &g

[RESEND PATCH v3] list: test: Mending tests for list_cut_position()

2024-09-30 Thread I Hsin Cheng
Mending test for list_cut_position*() for the missing check of integer "i" after the second loop. The variable should be checked for second time to make sure both lists after the cut operation are formed as expected. Signed-off-by: I Hsin Cheng --- lib/list-test.c | 4 1 file

[RESEND PATCH v2] list: test: Mending tests for list_cut_position()

2024-09-09 Thread I Hsin Cheng
Mending test for list_cut_position*() for the missing check of integer "i" after the second loop. The variable should be checked for second time to make sure both lists after the cut operation are formed as expected. Signed-off-by: I Hsin Cheng --- lib/list-test.c | 6 ++ 1 file

[PATCH] list: test: Mending tests for list_cut_position()

2024-09-09 Thread I Hsin Cheng
Mending test for list_cut_position*() for the missing check of integer "i" after the second loop. The variable should be checked for second time to make sure both lists after the cut operation are formed as expected. Signed-off-by: I Hsin Cheng --- lib/list-test.c | 6 ++ 1 file

[PATCH] list: test: Increasing coverage of list_test_list_replace*()

2024-09-09 Thread I Hsin Cheng
Increase the test coverage of list_test_list_replace*() by adding the checks to compare the pointer of "a_new.next" and "a_new.prev" to make sure a perfect circular doubly linked list is formed after the replacement. Signed-off-by: I Hsin Cheng --- lib/list-test.c | 4 +++