| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
selftests: ntsync: Add some tests for semaphore state. [ Upstream commit 7f853a252cdefa9f574c2dce4f9f38a7c10d6b5a ] Wine has tests for its synchronization primitives, but these are more accessible to kernel developers, and also allow us to test some edge cases that Wine does not care about. This patch adds tests for semaphore-specific ioctls NTSYNC_IOC_SEM_POST and NTSYNC_IOC_SEM_READ, and waiting on semaphores. Signed-off-by: Elizabeth Figura <zfigura@codeweavers.com> Link: https://lore.kernel.org/r/20241213193511.457338-17-zfigura@codeweavers.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> [ Backport from v6.14 ] Signed-off-by: WangYuli <wangyuli@uniontech.com> | 1 年前 | |
selftests: ntsync: Add some tests for semaphore state. [ Upstream commit 7f853a252cdefa9f574c2dce4f9f38a7c10d6b5a ] Wine has tests for its synchronization primitives, but these are more accessible to kernel developers, and also allow us to test some edge cases that Wine does not care about. This patch adds tests for semaphore-specific ioctls NTSYNC_IOC_SEM_POST and NTSYNC_IOC_SEM_READ, and waiting on semaphores. Signed-off-by: Elizabeth Figura <zfigura@codeweavers.com> Link: https://lore.kernel.org/r/20241213193511.457338-17-zfigura@codeweavers.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> [ Backport from v6.14 ] Signed-off-by: WangYuli <wangyuli@uniontech.com> | 1 年前 | |
selftests: ntsync: correct CONFIG_NTSYNC name mainline inclusion from mainline-v7.2-rc5 category: bugfix The config fragment for these tests defines CONFIG_WINESYNC, which refers to an earlier name for the ntsync driver before it was merged [1]. Correct it to define CONFIG_NTSYNC instead. [1] https://lore.kernel.org/all/f4cc1a38-1441-62f8-47e4-0c67f5ad1d43@codeweavers.com/ Fixes: 7f853a252cde ("selftests: ntsync: Add some tests for semaphore state.") Cc: stable <stable@kernel.org> Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com> Reviewed-by: Elizabeth Figura <zfigura@codeweavers.com> Link: https://patch.msgid.link/20260609175505.19632-1-enelsonmoore@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit f97752cfe511c1ed9933057455c73aaac07d6517) Signed-off-by: Wentao Guan <guanwentao@uniontech.com> | 4 天前 | |
selftests: ntsync: Add a stress test for contended waits. [ Upstream commit a22860e57b54e9b55028243764f7899fe7c4ae4b ] Test a more realistic usage pattern, and one with heavy contention, in order to actually exercise ntsync's internal synchronization. This test has several threads in a tight loop acquiring a mutex, modifying some shared data, and then releasing the mutex. At the end we check if the data is consistent. Signed-off-by: Elizabeth Figura <zfigura@codeweavers.com> Link: https://lore.kernel.org/r/20241213193511.457338-28-zfigura@codeweavers.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> [ Backport from v6.14 ] Signed-off-by: WangYuli <wangyuli@uniontech.com> | 1 年前 |