Re: [PATCH 2/2] drm/tests: Flag slow tests as such

2023-09-12 Thread Daniel Vetter
On Mon, Sep 11, 2023 at 11:51:06AM +0200, Maxime Ripard wrote: > Kunit recently gained a speed attribute that allows to filter out slow > tests. A slow test is defined in the documentation as a test taking more > than a second to execute. > > Let's flag the few tests that are doing so on my machin

[PATCH] selftests: cgroup: fix test_zswap error path and meaningless check

2023-09-12 Thread Domenico Cerasuolo
Replace destruction paths with simple returns before the test cgroup is created, there is nothing to free or destroy at that point. Remove pointless check, stored_pages is a size_t and cannot be < 0. Fixes: a549f9f31561 ("selftests: cgroup: add test_zswap with no kmem bypass test") Reported-by:

kselftest/fixes build: 6 builds: 0 failed, 6 passed, 1 warning (v6.6-rc1-3-g7ab6fe6625c9)

2023-09-12 Thread kernelci.org bot
kselftest/fixes build: 6 builds: 0 failed, 6 passed, 1 warning (v6.6-rc1-3-g7ab6fe6625c9) Full Build Summary: https://kernelci.org/build/kselftest/branch/fixes/kernel/v6.6-rc1-3-g7ab6fe6625c9/ Tree: kselftest Branch: fixes Git Describe: v6.6-rc1-3-g7ab6fe6625c9 Git Commit: 7ab6fe6625c9bdcb8fa5f

Re: [PATCH v2 3/7] drivers/comedi: fix Python string escapes

2023-09-12 Thread Ian Abbott
On 12/09/2023 07:07, Benjamin Gray wrote: Python 3.6 introduced a DeprecationWarning for invalid escape sequences. This is upgraded to a SyntaxWarning in Python 3.12, and will eventually be a syntax error. Fix these now to get ahead of it before it's an error. Signed-off-by: Benjamin Gray ---

Re: [PATCH v2 5/7] tools/perf: fix Python string escapes

2023-09-12 Thread Adrian Hunter
On 12/09/23 09:07, Benjamin Gray wrote: > Python 3.6 introduced a DeprecationWarning for invalid escape sequences. > This is upgraded to a SyntaxWarning in Python 3.12, and will eventually > be a syntax error. > > Fix these now to get ahead of it before it's an error. > > Signed-off-by: Benjamin

kselftest/fixes kselftest-seccomp: 2 runs, 1 regressions (v6.6-rc1-3-g7ab6fe6625c9)

2023-09-12 Thread kernelci.org bot
kselftest/fixes kselftest-seccomp: 2 runs, 1 regressions (v6.6-rc1-3-g7ab6fe6625c9) Regressions Summary --- platform| arch | lab | compiler | defconfig | regressions +---+---+--+---

Re: [FIX PATCH v2] selftests: tracing: Fix to unmount tracefs for recovering environment

2023-09-12 Thread Mark Brown
On Tue, Sep 12, 2023 at 10:10:39AM +0900, Masami Hiramatsu (Google) wrote: > From: Masami Hiramatsu (Google) > > Fix to unmount the tracefs if the ftracetest mounted it for recovering > system environment. If the tracefs is already mounted, this does nothing. Reviewed-by: Mark Brown signature

Re: [linus:master] [selftests] 58e2847ad2: kernel-selftests.openat2.resolve_test.fail

2023-09-12 Thread Ryan Roberts
On 12/09/2023 07:17, kernel test robot wrote: > > > Hello, > > kernel test robot noticed "kernel-selftests.openat2.resolve_test.fail" on: > > commit: 58e2847ad2e6322a25dedf8b4549ff924baf8395 ("selftests: line buffer > test program's stdout") > https://git.kernel.org/cgit/linux/kernel/git/torva

[PATCH v1] selftests: Link libasan statically for tests with -fsanitize=address

2023-09-12 Thread Ryan Roberts
When dynamically linking, Address Sanitizer requires its library to be the first one to be loaded; this is apparently to ensure that every call to malloc is intercepted. If using LD_PRELOAD, those listed libraries will be loaded before the libraries listed in the program's ELF and will therefore vi

Re: [linus:master] [selftests] 58e2847ad2: kernel-selftests.openat2.resolve_test.fail

2023-09-12 Thread Ryan Roberts
On 12/09/2023 13:16, Ryan Roberts wrote: > On 12/09/2023 07:17, kernel test robot wrote: >> >> >> Hello, >> >> kernel test robot noticed "kernel-selftests.openat2.resolve_test.fail" on: >> >> commit: 58e2847ad2e6322a25dedf8b4549ff924baf8395 ("selftests: line buffer >> test program's stdout") >> ht

[PATCH net] selftests: tls: swap the TX and RX sockets in some tests

2023-09-12 Thread Sabrina Dubroca
tls.sendmsg_large and tls.sendmsg_multiple are trying to send through the self->cfd socket (only configured with TLS_RX) and to receive through the self->fd socket (only configured with TLS_TX), so they're not using kTLS at all. Swap the sockets. Fixes: 7f657d5bf507 ("selftests: tls: add selftests

Re: [PATCH v2 1/7] ia64: fix Python string escapes

2023-09-12 Thread Nick Desaulniers
On Mon, Sep 11, 2023 at 11:08 PM Benjamin Gray wrote: > > Python 3.6 introduced a DeprecationWarning for invalid escape sequences. > This is upgraded to a SyntaxWarning in Python 3.12, and will eventually > be a syntax error. > > Fix these now to get ahead of it before it's an error. > > Signed-of

Re: [FIX PATCH v2] selftests: tracing: Fix to unmount tracefs for recovering environment

2023-09-12 Thread Shuah Khan
On 9/11/23 19:24, Steven Rostedt wrote: On Tue, 12 Sep 2023 10:10:39 +0900 "Masami Hiramatsu (Google)" wrote: From: Masami Hiramatsu (Google) Fix to unmount the tracefs if the ftracetest mounted it for recovering system environment. If the tracefs is already mounted, this does nothing. Sugg

Re: [PATCH RESEND v3 1/2] selftests/resctrl: Fix schemata write error check

2023-09-12 Thread Reinette Chatre
Hi Maciej, On 9/11/2023 11:32 PM, Maciej Wieczór-Retman wrote: > On 2023-09-11 at 09:59:06 -0700, Reinette Chatre wrote: >> Hi Maciej, >> When I build the tests with this applied I encounter the following: >> >> resctrlfs.c: In function ‘write_schemata’: >> resctrlfs.c:475:14: warning: implicit de

Re: [GIT PULL] Kselftest fixes update for Linux 6.6-rc2

2023-09-12 Thread pr-tracker-bot
The pull request you sent on Mon, 11 Sep 2023 11:24:02 -0600: > git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest > tags/linux-kselftest-next-6.6-rc2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/a747acc0b752f6c3911be539a2d3ca42b4424844 Thank you!

Re: [GIT PULL] KUnit fixes update for Linux 6.6-rc2

2023-09-12 Thread pr-tracker-bot
The pull request you sent on Mon, 11 Sep 2023 10:20:43 -0600: > git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest > tags/linux-kselftest-kunit-6.6-rc2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/fb52c87a06324e3a9223bf7bb3b087557524f96e Thank you!

Re: [PATCH v2] selftests/user_events: Fix failures when user_events is not installed

2023-09-12 Thread Beau Belgrave
On Fri, Sep 08, 2023 at 09:27:12PM -0400, Steven Rostedt wrote: > On Sat, 9 Sep 2023 00:33:05 +0100 > Mark Brown wrote: > > > On Fri, Sep 08, 2023 at 08:19:16PM +, Beau Belgrave wrote: > > > > > Add common methods to detect if tracefs and user_events is enabled. If > > > either is not enable

Re: [PATCH] selftests: cgroup: fix test_zswap error path and meaningless check

2023-09-12 Thread Andrew Morton
On Tue, 12 Sep 2023 10:38:00 +0200 Domenico Cerasuolo wrote: > Replace destruction paths with simple returns before the test cgroup is > created, there is nothing to free or destroy at that point. > > Remove pointless check, stored_pages is a size_t and cannot be < 0. > > ... > > @@ -208,8 +20

Re: [PATCH v2] selftests/user_events: Fix failures when user_events is not installed

2023-09-12 Thread Steven Rostedt
On Tue, 12 Sep 2023 10:12:34 -0700 Beau Belgrave wrote: > > I guess I was wrong and some people do care ;-) > > > > -- Steve > > It looks like this change got applied [1] to the fixes branch of > linux-kselftest. I can either send a V3 with this addressed or build a > patch based upon the fi

kselftest/fixes build: 3 builds: 0 failed, 3 passed, 1 warning (v6.6-rc1-4-g7e021da80f48)

2023-09-12 Thread kernelci.org bot
kselftest/fixes build: 3 builds: 0 failed, 3 passed, 1 warning (v6.6-rc1-4-g7e021da80f48) Full Build Summary: https://kernelci.org/build/kselftest/branch/fixes/kernel/v6.6-rc1-4-g7e021da80f48/ Tree: kselftest Branch: fixes Git Describe: v6.6-rc1-4-g7e021da80f48 Git Commit: 7e021da80f48582171029

Re: [PATCH] kselftest/alsa: Mark test plan as skipped when no cards are available

2023-09-12 Thread Nícolas F . R . A . Prado
On Mon, Sep 11, 2023 at 03:29:00PM +0100, Mark Brown wrote: > On Mon, Sep 11, 2023 at 08:35:37AM -0400, Nícolas F. R. A. Prado wrote: > > On Sat, Sep 09, 2023 at 12:08:22AM +0100, Mark Brown wrote: > > > > Why? > > > To better reflect the actual test plan status. If 0 tests were run, it > > does

Re: [PATCH v2 2/7] Documentation/sphinx: fix Python string escapes

2023-09-12 Thread Jonathan Corbet
Benjamin Gray writes: > Python 3.6 introduced a DeprecationWarning for invalid escape sequences. > This is upgraded to a SyntaxWarning in Python 3.12, and will eventually > be a syntax error. > > Fix these now to get ahead of it before it's an error. > > Signed-off-by: Benjamin Gray > --- > Doc

[PATCH] selftests/rseq: fix kselftest Clang build warnings

2023-09-12 Thread Justin Stitt
When building with Clang, I am getting many warnings from the selftests/rseq tree. Here's one such example from rseq tree: | param_test.c:1234:10: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid) | 1234 | while (!atomi

Re: [PATCH 1/5] selftests/resctrl: Extend signal handler coverage to unmount on receiving signal

2023-09-12 Thread Reinette Chatre
Hi Ilpo, On 9/11/2023 4:19 AM, Ilpo Järvinen wrote: > Unmounting resctrl FS has been moved into the per test functions in > resctrl_tests.c by commit caddc0fbe495 ("selftests/resctrl: Move > resctrl FS mount/umount to higher level"). In case a signal (SIGINT, > SIGTERM, or SIGHUP) is received, the

Re: [PATCH 2/5] selftests/resctrl: Remove duplicate feature check from CMT test

2023-09-12 Thread Reinette Chatre
Hi Ilpo, On 9/11/2023 4:19 AM, Ilpo Järvinen wrote: > The test runner run_cmt_test() in resctrl_tests.c checks for CMT > feature and does not run cmt_resctrl_val() if CMT is not supported. > Then cmt_resctrl_val() also check is CMT is supported. > > Remove the duplicated feature check for CMT fro

Re: [PATCH 3/5] selftests/resctrl: Refactor feature check to use resource and feature name

2023-09-12 Thread Reinette Chatre
Hi Ilpo, On 9/11/2023 4:19 AM, Ilpo Järvinen wrote: > Feature check in validate_resctrl_feature_request() takes in the test > name string and maps that to what to check per test. > > Pass resource and feature names to validate_resctrl_feature_request() > directly rather than deriving them from th

Re: [PATCH 5/5] selftests/resctrl: Reduce failures due to outliers in MBA/MBM tests

2023-09-12 Thread Reinette Chatre
Hi Ilpo, On 9/11/2023 4:19 AM, Ilpo Järvinen wrote: > 5% difference upper bound for success is a bit on the low side for the "a bit on the low side" is very vague. > MBA and MBM tests. Some platforms produce outliers that are slightly > above that, typically 6-7%. > > Relaxing the MBA/MBM succe

Re: [RFC v3 1/2] powerpc/cpuidle: cpuidle wakeup latency based on IPI and timer events

2023-09-12 Thread Michael Ellerman
Aboorva Devarajan writes: > From: Pratik R. Sampat > > Introduce a mechanism to fire directed IPIs from a source CPU to a > specified target CPU and measure the time incurred on waking up the > target CPU in response. > > Also, introduce a mechanism to queue a hrtimer on a specified CPU and > sub

Re: [PATCH v2 5/7] tools/perf: fix Python string escapes

2023-09-12 Thread Benjamin Gray
On 12/9/23 8:56 pm, Adrian Hunter wrote: On 12/09/23 09:07, Benjamin Gray wrote: diff --git a/tools/perf/pmu-events/jevents.py b/tools/perf/pmu-events/jevents.py index a7e88332276d..980f080a5a2c 100755 --- a/tools/perf/pmu-events/jevents.py +++ b/tools/perf/pmu-events/jevents.py @@ -83,7 +83,7 @

Re: [PATCH V6 1/7] x86: Drop CPU_SUP_INTEL from SCHED_MC_PRIO for the expansion.

2023-09-12 Thread kernel test robot
Hi Meng, kernel test robot noticed the following build errors: [auto build test ERROR on rafael-pm/linux-next] [also build test ERROR on tip/x86/core linus/master v6.6-rc1 next-20230912] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest

Re: [FIX PATCH v2] selftests: tracing: Fix to unmount tracefs for recovering environment

2023-09-12 Thread Google
On Tue, 12 Sep 2023 09:35:58 -0600 Shuah Khan wrote: > On 9/11/23 19:24, Steven Rostedt wrote: > > On Tue, 12 Sep 2023 10:10:39 +0900 > > "Masami Hiramatsu (Google)" wrote: > > > >> From: Masami Hiramatsu (Google) > >> > >> Fix to unmount the tracefs if the ftracetest mounted it for recovering

Re: [PATCH v2 5/7] tools/perf: fix Python string escapes

2023-09-12 Thread Adrian Hunter
On 13/09/23 03:26, Benjamin Gray wrote: > On 12/9/23 8:56 pm, Adrian Hunter wrote: >> On 12/09/23 09:07, Benjamin Gray wrote: >>> diff --git a/tools/perf/pmu-events/jevents.py >>> b/tools/perf/pmu-events/jevents.py >>> index a7e88332276d..980f080a5a2c 100755 >>> --- a/tools/perf/pmu-events/jevents

Re: [PATCH RESEND v3 1/2] selftests/resctrl: Fix schemata write error check

2023-09-12 Thread Maciej Wieczór-Retman
On 2023-09-12 at 09:00:28 -0700, Reinette Chatre wrote: >Hi Maciej, > >On 9/11/2023 11:32 PM, Maciej Wieczór-Retman wrote: >> On 2023-09-11 at 09:59:06 -0700, Reinette Chatre wrote: >>> Hi Maciej, >>> When I build the tests with this applied I encounter the following: >>> >>> resctrlfs.c: In functi