[PATCH v2 25/27] perf tests: Support 'Convert perf time to TSC' test for hybrid

2021-03-10 Thread Jin Yao
Since for "cycles:u' on hybrid platform, it creates two "cycles". So the second evsel in evlist also needs initialization. With this patch, root@otcpl-adl-s-2:~# ./perf test 71 71: Convert perf time to TSC: Ok Signed-off-by: Jin Yao --- t

[PATCH v2 26/27] perf tests: Skip 'perf stat metrics (shadow stat) test' for hybrid

2021-03-10 Thread Jin Yao
/instructions/ 841,158,734 cpu_atom/instructions/ 1.002644773 seconds time elapsed Now there is no shadow stat 'insn per cycle' reported. We will support it later and now just skip the 'perf stat metrics (shadow stat) test'. Signed-off-by: Jin Yao --- tools/perf/tests/shell

[PATCH v2 19/27] perf tests: Add hybrid cases for 'Parse event definition strings' test

2021-03-10 Thread Jin Yao
Add basic hybrid test cases for 'Parse event definition strings' test. root@otcpl-adl-s-2:~# ./perf test 6 6: Parse event definition strings : Ok Signed-off-by: Jin Yao --- tools/perf/tests/parse-events.c | 171 1 file changed

[PATCH v2 21/27] perf tests: Skip 'Setup struct perf_event_attr' test for hybrid

2021-03-10 Thread Jin Yao
For hybrid, kernel introduces new perf type PERF_TYPE_HARDWARE_PMU (6) and it's assigned to hybrid hardware events. root@otcpl-adl-s-2:~# ./perf test 17 -vvv ... compare matching [event:base-stat] to [event-6-17179869184-4] [cpu] * 0 [flags] 0|8 8 [type] 0 6

[PATCH v2 24/27] perf tests: Support 'Session topology' test for hybrid

2021-03-10 Thread Jin Yao
Force to create one event "cpu_core/cycles/" by default, otherwise in evlist__valid_sample_type, the checking of 'if (evlist->core.nr_entries == 1)' would be failed. root@otcpl-adl-s-2:~# ./perf test 41 41: Session topology: Ok Signe

[PATCH v2 23/27] perf tests: Support 'Parse and process metrics' test for hybrid

2021-03-10 Thread Jin Yao
Some events are not supported. Only pick up some cases for hybrid. root@otcpl-adl-s-2:~# ./perf test 67 67: Parse and process metrics : Ok Signed-off-by: Jin Yao --- tools/perf/tests/parse-metric.c | 11 --- 1 file changed, 8 insertions(+), 3

[PATCH v2 20/27] perf tests: Add hybrid cases for 'Roundtrip evsel->name' test

2021-03-10 Thread Jin Yao
d by 2. root@otcpl-adl-s-2:~# ./perf test 14 14: Roundtrip evsel->name : Ok Signed-off-by: Jin Yao --- tools/perf/tests/evsel-roundtrip-name.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/tools/perf/te

[PATCH v2 22/27] perf tests: Support 'Track with sched_switch' test for hybrid

2021-03-10 Thread Jin Yao
Since for "cycles:u' on hybrid platform, it creates two "cycles". So the number of events in evlist is not expected in next test steps. Now we just use one event "cpu_core/cycles:u/" for hybrid. root@otcpl-adl-s-2:~# ./perf test 35 35

TEST - please ignore

2021-03-10 Thread Rahul Tanwar

[PATCH v6 08/10] perf: arm64: Add test for userspace counter access on heterogeneous systems

2021-03-10 Thread Rob Herring
Userspace counter access only works on heterogeneous systems with some restrictions. The userspace process must be pinned to a homogeneous subset of CPUs and must open the corresponding PMU for those CPUs. This commit adds a test implementing these requirements. Signed-off-by: Rob Herring --- v6

[PATCH 3/3] perf test: Add 30s timeout for wait for daemon start.

2021-03-10 Thread Ian Rogers
Retry the ping loop upto 600 times, or approximately 30 seconds, to make sure the test does hang at start up. Signed-off-by: Ian Rogers --- tools/perf/tests/shell/daemon.sh | 7 +++ 1 file changed, 7 insertions(+) diff --git a/tools/perf/tests/shell/daemon.sh b/tools/perf/tests/shell

[PATCH 1/3] perf test: Remove unused argument

2021-03-10 Thread Ian Rogers
r signals and 1 for perf record finished count=`ls ${base}/session-test/ | grep perf.data | wc -l` @@ -420,7 +419,7 @@ EOF fi # stop daemon - daemon_exit ${base} ${config} + daemon_exit ${config} rm -rf ${base} rm -f ${config} @@ -457,7 +456,7 @

[PATCH 2/3] perf test: Cleanup daemon if test is interrupted.

2021-03-10 Thread Ian Rogers
head -1` - local pid=`echo "${line}" | awk 'BEGIN { FS = ":" } ; { print $1 }'` - - # stop daemon - perf daemon stop --config ${config} - - # ... and wait for the pid to go away - tail --pid=${pid} -f /dev/null -} - test_list() { echo "test daemon list" -- 2.30.1.766.gb4fecdf3b7-goog

Re: [PATCH v11 05/10] ecdsa: Register NIST P384 and extend test suite

2021-03-10 Thread Jarkko Sakkinen
On Fri, Mar 05, 2021 at 03:59:51PM -0500, Stefan Berger wrote: > From: Saulo Alessandre > > Register NIST P384 as an akcipher and extend the testmgr with > NIST P384-specific test vectors. > > Summary of changes: > > * crypto/ecdsa.c > - add ecdsa_nist_p

[PATCH] kbuild: remove LLVM=1 test from HAS_LTO_CLANG

2021-03-10 Thread Masahiro Yamada
@@ config HAS_LTO_CLANG def_bool y # Clang >= 11: https://github.com/ClangBuiltLinux/linux/issues/510 depends on CC_IS_CLANG && CLANG_VERSION >= 11 && LD_IS_LLD - depends on $(success,test $(LLVM) -eq 1) depends on $(success,test $(LLVM_IAS) -eq

[PATCH v8 8/8] kselftests: Add test to check for rlimit changes in different user namespaces

2021-03-10 Thread Alexey Gladkov
XITSTATUS(wstatus[i])); + else if (WIFSIGNALED(wstatus[i])) + warnx("(pid=%d): pid %d killed by signal %d", + pid, -child[i], WTERMSIG(wstatus[i])); + + if (WIFSIGNALED(wstatus[i]) && WTERMSIG(wstatus[i]) == SIGUSR1) + continue; + + warnx("(pid=%d): Test failed", pid); + exit(EXIT_FAILURE); + } + + warnx("(pid=%d): Test passed", pid); + exit(EXIT_SUCCESS); +} -- 2.29.2

[PATCH v1, RFC] docs: reporting-issues.rst: tone down 'test vanilla mainline' a little

2021-03-09 Thread Thorsten Leemhuis
bugs, even if they can't test vanilla mainline kernel. Signed-off-by: Thorsten Leemhuis CC: Randy Dunlap --- With this I try to get rid of the last remaining parts that have a 'this needs discussion' box that's in the text. I hope I've found a middle ground that everybody can live with. v1, RFC

[PATCH v3 11/11] selftests: gpio: add test cases for gpio-sim

2021-03-09 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Add a set of tests for the new gpio-sim module. This is a pure shell test-suite and uses the helper programs available in the gpio selftests directory. These test-cases only test the functionalities exposed by the gpio-sim driver, not those handled by core gpiolib code

Re: [PATCH 1/4] kbuild: remove LLVM=1 test from HAS_LTO_CLANG

2021-03-08 Thread Sami Tolvanen
eries seem more related to > DWARFv5 cleanups; this patch seems orthogonal while those are a > visible progression). > > > > > Non-zero return code is all treated as failure anyway. > > > > So, $(success,test $(LLVM) -eq 1) and $(success,test "$(LLVM)" = 1)

[PATCH 5.10 27/42] of: unittest: Add test for of_dma_get_max_cpu_address()

2021-03-08 Thread Greg Kroah-Hartman
From: Nicolas Saenz Julienne commit 07d13a1d6120d453c3c1f020578693d072deded5 upstream Introduce a test for of_dma_get_max_cup_address(), it uses the same DT data as the rest of dma-ranges unit tests. Signed-off-by: Nicolas Saenz Julienne Reviewed-by: Rob Herring Link: https://lore.kernel.org

Re: [PATCH v1 1/1] device property: Add test cases for fwnode_property_count_*() APIs

2021-03-08 Thread Andy Shevchenko
On Fri, Feb 12, 2021 at 06:25:39PM +0200, Andy Shevchenko wrote: > Add test cases for fwnode_property_count_*() APIs. > > While at it, modify the arrays of integers to be size of non-power-of-2 > for better test coverage and decreasing stack usage. Any comments on this? > Sign

[PATCH v5 16/21] selftests/resctrl: Modularize resctrl test suite main() function

2021-03-07 Thread Fenghua Yu
Resctrl test suite main() function does the following things 1. Parses command line arguments passed by user 2. Some setup checks 3. Logic that calls into each unit test 4. Print result and clean up after running each unit test Introduce wrapper functions for steps 3 and 4 to modularize the main

[PATCH v5 17/21] selftests/resctrl: Skip the test if requested resctrl feature is not supported

2021-03-07 Thread Fenghua Yu
There could be two reasons why a resctrl feature might not be enabled on the platform 1. H/W might not support the feature 2. Even if the H/W supports it, the user might have disabled the feature through kernel command line arguments Hence, any resctrl unit test (like cmt, cat, mbm and mba

[PATCH v5 07/21] selftests/resctrl: Rename CQM test as CMT test

2021-03-07 Thread Fenghua Yu
CMT (Cache Monitoring Technology) [1] is a H/W feature that reports cache occupancy of a process. resctrl selftest suite has a unit test to test CMT for LLC but the test is named as CQM (Cache Quality Monitoring). Furthermore, the unit test source file is named as cqm_test.c and several functions

[PATCH v5 08/21] selftests/resctrl: Call kselftest APIs to log test results

2021-03-07 Thread Fenghua Yu
Call kselftest APIs instead of using printf() to log test results for cleaner code and better future extension. Suggested-by: Shuah Khan Signed-off-by: Fenghua Yu --- Change Log: v5: - Add this patch (Shuah) tools/testing/selftests/resctrl/cat_test.c| 37 +++ tools/testing

Re: qemu meltdown test failure was Re: [PATCH 4.4 00/30] 4.4.260-rc1 review

2021-03-07 Thread Pavel Machek
ceived signal: TEST_CASE_ID=CVE-2018-3639 RESULT=fail > > > > > > Testcase name is spectre-meltdown-checker... Failing on qemu? Somehow > > > strange, but it looks like real test failure. This is pointer to the pipeline: https://gitlab.com/cip-project/cip-testing/linux-s

qemu meltdown test failure was Re: [PATCH 4.4 00/30] 4.4.260-rc1 review

2021-03-06 Thread Pavel Machek
t; > Testcase name is spectre-meltdown-checker... Failing on qemu? Somehow > > strange, but it looks like real test failure. First let me try 7d472e4a11d6a2fb1c492b02c7d7dacd3297bbf4 -- v4.4.257-cip54. That is https://gitlab.com/cip-project/cip-kernel/linux-cip/-/pipelines/266532179 ... Qe

Re: [PATCH bpf-next] selftests_bpf: extend test_tc_tunnel test with vxlan

2021-03-05 Thread Daniel Borkmann
encapsulates the ethernet as the inner l2 header. Update a vxlan encapsulation test case. Signed-off-by: Xuesen Huang Signed-off-by: Li Wang Signed-off-by: Willem de Bruijn Please don't add my signed off by without asking. Agree, I can remove it if you prefer while applying and only keep the ack

[PATCH v11 05/10] ecdsa: Register NIST P384 and extend test suite

2021-03-05 Thread Stefan Berger
From: Saulo Alessandre Register NIST P384 as an akcipher and extend the testmgr with NIST P384-specific test vectors. Summary of changes: * crypto/ecdsa.c - add ecdsa_nist_p384_init_tfm - register and unregister P384 tfm * crypto/testmgr.c - add test vector for P384 on vector of tests

Re: [PATCH 1/2] perf tests: Remove duplicate bitmap test

2021-03-05 Thread Jiri Olsa
On Fri, Mar 05, 2021 at 06:41:57PM +0300, Denis Efremov wrote: > test_bitmap("1,3-6,8-10,24,35-37") called twice in a row. > Remove the second test. > > Signed-off-by: Denis Efremov for both patches Acked-by: Jiri Olsa thanks, jirka > --- > tools/perf/te

Re: [PATCH v10 4/9] ecdsa: Register NIST P384 and extend test suite

2021-03-05 Thread Stefan Berger
On 3/5/21 12:10 PM, Jarkko Sakkinen wrote: On Thu, Mar 04, 2021 at 07:51:58PM -0500, Stefan Berger wrote: From: Saulo Alessandre * crypto/ecdsa.c - add ecdsa_nist_p384_init_tfm - register and unregister P384 tfm * crypto/testmgr.c - add test vector for P384 on vector of tests

Re: [PATCH v10 4/9] ecdsa: Register NIST P384 and extend test suite

2021-03-05 Thread Jarkko Sakkinen
On Thu, Mar 04, 2021 at 07:51:58PM -0500, Stefan Berger wrote: > From: Saulo Alessandre > > * crypto/ecdsa.c > - add ecdsa_nist_p384_init_tfm > - register and unregister P384 tfm > > * crypto/testmgr.c > - add test vector for P384 on vector of tests > > * c

Re: [PATCH bpf-next] selftests_bpf: extend test_tc_tunnel test with vxlan

2021-03-05 Thread Willem de Bruijn
sting tests which > >> encapsulates the ethernet as the inner l2 header. > >> > >> Update a vxlan encapsulation test case. > >> > >> Signed-off-by: Xuesen Huang > >> Signed-off-by: Li Wang > >> Signed-off-by: Willem de Bruijn > > &

Re: [PATCH bpf-next] selftests_bpf: extend test_tc_tunnel test with vxlan

2021-03-05 Thread Daniel Borkmann
On 3/5/21 4:08 PM, Willem de Bruijn wrote: On Fri, Mar 5, 2021 at 7:34 AM Xuesen Huang wrote: From: Xuesen Huang Add BPF_F_ADJ_ROOM_ENCAP_L2_ETH flag to the existing tests which encapsulates the ethernet as the inner l2 header. Update a vxlan encapsulation test case. Signed-off-by: Xuesen

[PATCH 1/2] perf tests: Remove duplicate bitmap test

2021-03-05 Thread Denis Efremov
test_bitmap("1,3-6,8-10,24,35-37") called twice in a row. Remove the second test. Signed-off-by: Denis Efremov --- tools/perf/tests/bitmap.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/perf/tests/bitmap.c b/tools/perf/tests/bitmap.c index 96c137360918..332061340

[PATCH 2/2] perf tests: Remove duplicate cpumap test

2021-03-05 Thread Denis Efremov
cpu_map_print("1,3-6,8-10,24,35-37") called twice in a row. Remove the second test. Signed-off-by: Denis Efremov --- tools/perf/tests/cpumap.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/perf/tests/cpumap.c b/tools/perf/tests/cpumap.c index 29c793ac7d10..f906633ea

Re: [PATCH bpf-next] selftests_bpf: extend test_tc_tunnel test with vxlan

2021-03-05 Thread Willem de Bruijn
On Fri, Mar 5, 2021 at 7:34 AM Xuesen Huang wrote: > > From: Xuesen Huang > > Add BPF_F_ADJ_ROOM_ENCAP_L2_ETH flag to the existing tests which > encapsulates the ethernet as the inner l2 header. > > Update a vxlan encapsulation test case. > > Signed-off-by: Xuesen Huan

[PATCH bpf-next] selftests_bpf: extend test_tc_tunnel test with vxlan

2021-03-05 Thread Xuesen Huang
From: Xuesen Huang Add BPF_F_ADJ_ROOM_ENCAP_L2_ETH flag to the existing tests which encapsulates the ethernet as the inner l2 header. Update a vxlan encapsulation test case. Signed-off-by: Xuesen Huang Signed-off-by: Li Wang Signed-off-by: Willem de Bruijn --- tools/testing/selftests/bpf

[PATCH 5.10 090/102] remoteproc/mediatek: Fix kernel test robot warning

2021-03-05 Thread Greg Kroah-Hartman
From: Souptick Joarder commit cca21000261b2364991ecdb0d9e66b26ad9c4b4e upstream. Kernel test robot throws below warning -> >> drivers/remoteproc/mtk_scp.c:755:37: warning: unused variable >> 'mt8183_of_data' [-Wunused-const-variable] static const struct mtk_scp_of_data

Re: [PATCH] selftests_bpf: extend test_tc_tunnel test with vxlan

2021-03-05 Thread Xuesen Huang
> 2021年3月4日 下午10:02,Willem de Bruijn 写道: > > On Thu, Mar 4, 2021 at 1:42 AM Xuesen Huang wrote: >> >> From: Xuesen Huang >> >> Add BPF_F_ADJ_ROOM_ENCAP_L2_ETH flag to the existing tests which >> encapsulates the ethernet as the inner l2 header. &

Re: [PATCH 1/4] kbuild: remove LLVM=1 test from HAS_LTO_CLANG

2021-03-04 Thread Masahiro Yamada
k, which would cause a merge conflict. > > > > Non-zero return code is all treated as failure anyway. > > > > So, $(success,test $(LLVM) -eq 1) and $(success,test "$(LLVM)" = 1) > > works equivalently in the sense that both are expanded to 'n' if LLVM > >

[PATCH v10 4/9] ecdsa: Register NIST P384 and extend test suite

2021-03-04 Thread Stefan Berger
From: Saulo Alessandre * crypto/ecdsa.c - add ecdsa_nist_p384_init_tfm - register and unregister P384 tfm * crypto/testmgr.c - add test vector for P384 on vector of tests * crypto/testmgr.h - add test vector params for P384(sha1, sha224, sha256, sha384 and sha512) Signed-off

Re: [PATCH] selftests_bpf: extend test_tc_tunnel test with vxlan

2021-03-04 Thread Willem de Bruijn
On Thu, Mar 4, 2021 at 1:42 AM Xuesen Huang wrote: > > From: Xuesen Huang > > Add BPF_F_ADJ_ROOM_ENCAP_L2_ETH flag to the existing tests which > encapsulates the ethernet as the inner l2 header. > > Update a vxlan encapsulation test case. > > Signed-off-by: Xuesen Huan

[PATCH v2 12/12] selftests: gpio: add test cases for gpio-sim

2021-03-04 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Add a set of tests for the new gpio-sim module. This is a pure shell test-suite and uses the helper programs available in the gpio selftests directory. These test-cases only test the functionalities exposed by the gpio-sim driver, not those handled by core gpiolib code

[PATCH] selftests_bpf: extend test_tc_tunnel test with vxlan

2021-03-03 Thread Xuesen Huang
From: Xuesen Huang Add BPF_F_ADJ_ROOM_ENCAP_L2_ETH flag to the existing tests which encapsulates the ethernet as the inner l2 header. Update a vxlan encapsulation test case. Signed-off-by: Xuesen Huang Signed-off-by: Li Wang Signed-off-by: Willem de Bruijn --- tools/testing/selftests/bpf

Re: [PATCH 3/3] crypto: hisilicon/sec - fixes shash test error

2021-03-03 Thread Herbert Xu
On Sat, Feb 20, 2021 at 05:51:22PM +0800, liulongfang wrote: . > Since patch3 is an unnecessary patch, > can you just remove it and merge patch1 and patch2? Please repost. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key:

Re: [PATCH 3/3] crypto: hisilicon/sec - fixes shash test error

2021-03-03 Thread liulongfang
On 2021/3/4 12:41, Herbert Xu wrote: > On Sat, Feb 20, 2021 at 05:51:22PM +0800, liulongfang wrote: > . >> Since patch3 is an unnecessary patch, >> can you just remove it and merge patch1 and patch2? > > Please repost. > > Thanks, > Ok. Thanks, Longfang

[PATCH v7 4/4] perf test: Add test for event name starting with a number

2021-03-03 Thread Shunsuke Nakamura
From: Shunsuke Nakamura Add test for event name starting with a number. This test pattern checks that event names starting with a number do not result in a 'parse error'. Committer notes: Testing arm64 and x86: # ./perf test fake 10: PMU events

[RFC PATCH v2 11/13] selftests: futex2: Add requeue test

2021-03-03 Thread André Almeida
Add testing for futex_requeue(). The first test just requeue from one waiter to another one, and wake it. The second performs both wake and requeue, and we check return values to see if the operation woke/requeued the expected number of waiters. Signed-off-by: André Almeida --- .../selftests

[RFC PATCH v2 10/13] selftests: futex2: Add waitv test

2021-03-03 Thread André Almeida
Create a new file to test the waitv mechanism. Test both private and shared futexes. Wake the last futex in the array, and check if the return value from futex_waitv() is the right index. Signed-off-by: André Almeida --- .../selftests/futex/functional/.gitignore | 1 + .../selftests/futex

[RFC PATCH v2 09/13] selftests: futex2: Add wouldblock test

2021-03-03 Thread André Almeida
Adapt existing futex wait wouldblock file to test the same mechanism for futex2. Signed-off-by: André Almeida --- .../futex/functional/futex_wait_wouldblock.c | 33 --- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/futex/functional

[RFC PATCH v2 07/13] selftests: futex2: Add wake/wait test

2021-03-03 Thread André Almeida
Add a simple file to test wake/wait mechanism using futex2 interface. Test three scenarios: using a common local int variable as private futex, a shm futex as shared futex and a file-backed shared memory as a shared futex. This should test all branches of futex_get_key(). Create helper files so

[RFC PATCH v2 08/13] selftests: futex2: Add timeout test

2021-03-03 Thread André Almeida
Adapt existing futex wait timeout file to test the same mechanism for futex2. futex2 accepts only absolute 64bit timers, but supports both monotonic and realtime clocks. Signed-off-by: André Almeida --- .../futex/functional/futex_wait_timeout.c | 58 --- 1 file changed, 49

[PATCH kcsan 2/4] kcsan: Make test follow KUnit style recommendations

2021-03-03 Thread paulmck
From: Marco Elver Per recently added KUnit style recommendations at Documentation/dev-tools/kunit/style.rst, make the following changes to the KCSAN test: 1. Rename 'kcsan-test.c' to 'kcsan_test.c'. 2. Rename suite name 'kcsan-test' to 'kcsan'. 3. Rename

[PATCH tip/core/rcu 22/28] torture: Add kvm-again.sh to rerun a previous torture-test

2021-03-03 Thread paulmck
From: "Paul E. McKenney" This commit adds a kvm-again.sh script that, given the results directory of a torture-test run, re-runs that test. This means that the kernels need not be rebuilt, but it also is a step towards running torture tests on remote systems. This commit also adds a

[PATCH tip/core/rcu 06/28] refscale: Disable verbose torture-test output

2021-03-03 Thread paulmck
From: "Paul E. McKenney" Given large numbers of threads, the quantity of torture-test output is sufficient to sometimes result in RCU CPU stall warnings. The probability of these stall warnings was greatly reduced by batching the output, but the warnings were not eliminated

[PATCH tip/core/rcu 16/28] torture: Record kvm-test-1-run.sh and kvm-test-1-run-qemu.sh PIDs

2021-03-03 Thread paulmck
From: "Paul E. McKenney" This commit records the process IDs of the kvm-test-1-run.sh and kvm-test-1-run-qemu.sh scripts to ease monitoring of remotely running instances of these scripts. Signed-off-by: Paul E. McKenney --- tools/testing/selftests/rcutorture/bin/kvm-test-1-run-q

[PATCH tip/core/rcu 14/28] torture: Extract kvm-test-1-run-qemu.sh from kvm-test-1-run.sh

2021-03-03 Thread paulmck
From: "Paul E. McKenney" Currently, kvm-test-1-run.sh both builds and runs an rcutorture kernel, which is inconvenient when it is necessary to re-run an old run or to carry out a run on a remote system. This commit therefore extracts the portion of kvm-test-1-run.sh that invoke qemu t

[PATCH tip/core/rcu 05/28] rcuscale: Disable verbose torture-test output

2021-03-03 Thread paulmck
From: "Paul E. McKenney" Given large numbers of threads, the quantity of torture-test output is sufficient to sometimes result in RCU CPU stall warnings. The probability of these stall warnings was greatly reduced by batching the output, but the warnings were not eliminated

[PATCH tip/core/rcu 0/28] Torture-test scripting updates for v5.13

2021-03-03 Thread Paul E. McKenney
Hello! This series contains updates to the torture-test scripting, perhaps most notably the addition of kvm-again.sh, which allows rerunning an earlier test without having to rebuild all the kernels. 1. Don't rerun failed rcutorture builds. 2. Allow 1G of memory for torture.sh kvfree

[PATCH tip/core/rcu 0/2] Torture-test updates for v5.13

2021-03-03 Thread Paul E. McKenney
Hello! This series contains a couple of torture-test updates: 1. Replace torture_init_begin string with %s, courtesy of Stephen Zhang. 2. Replace rcu_torture_stall string with %s, courtesy of Stephen Zhang. Thanx, Paul

[PATCH tip/core/rcu 3/3] rcutorture: Test start_poll_synchronize_rcu() and poll_state_synchronize_rcu()

2021-03-03 Thread paulmck
From: "Paul E. McKenney" This commit causes rcutorture to test the new start_poll_synchronize_rcu() and poll_state_synchronize_rcu() functions. Because of the difficulty of determining the nature of a synchronous RCU grace (expedited or not), the test tha

Re: [PATCH 1/4] kbuild: remove LLVM=1 test from HAS_LTO_CLANG

2021-03-03 Thread Nathan Chancellor
in, it is empty. > > Non-zero return code is all treated as failure anyway. > > So, $(success,test $(LLVM) -eq 1) and $(success,test "$(LLVM)" = 1) > works equivalently in the sense that both are expanded to 'n' if LLVM > is not given. The difference is that the fo

[PATCH tip/core/rcu 6/6] rcuscale: Add kfree_rcu() single-argument scale test

2021-03-03 Thread paulmck
From: "Uladzislau Rezki (Sony)" The single-argument variant of kfree_rcu() is currently not tested by any member of the rcutoture test suite. This commit therefore adds rcuscale code to test it. This testing is controlled by two new boolean module parameters, kfree_rcu_t

Re: [PATCH 1/4] kbuild: remove LLVM=1 test from HAS_LTO_CLANG

2021-03-03 Thread Nick Desaulniers
turn code is all treated as failure anyway. > > So, $(success,test $(LLVM) -eq 1) and $(success,test "$(LLVM)" = 1) > works equivalently in the sense that both are expanded to 'n' if LLVM > is not given. The difference is that the former internally fails due > to syntax erro

[PATCH 1/4] kbuild: remove LLVM=1 test from HAS_LTO_CLANG

2021-03-03 Thread Masahiro Yamada
This guarding is wrong. As Documentation/kbuild/llvm.rst notes, LLVM=1 switches the default of tools, but you can still override CC, LD, etc. individually. BTW, LLVM is not 1/0 flag. If LLVM is not passed in, it is empty. Non-zero return code is all treated as failure anyway. So, $(success,test

Re: [PATCH 1/2] perf test: Fix sample-parsing fails on non-x86 platforms

2021-03-03 Thread Arnaldo Carvalho de Melo
Em Wed, Mar 03, 2021 at 08:01:24AM -0800, kan.li...@linux.intel.com escreveu: > From: Kan Liang > > Executing perf test 27 fails on s390: > [root@t35lp46 perf]# ./perf test -Fv 27 > 27: Sample parsing > --- start --- > end > Sample parsing: FAILE

[PATCH v18 9/9] secretmem: test: add basic selftest for memfd_secret(2)

2021-03-03 Thread Mike Rapoport
From: Mike Rapoport The test verifies that file descriptor created with memfd_secret does not allow read/write operations, that secret memory mappings respect RLIMIT_MEMLOCK and that remote accesses with process_vm_read() and ptrace() to the secret memory fail. Signed-off-by: Mike Rapoport Cc

[PATCH 1/2] perf test: Fix sample-parsing fails on non-x86 platforms

2021-03-03 Thread kan . liang
From: Kan Liang Executing perf test 27 fails on s390: [root@t35lp46 perf]# ./perf test -Fv 27 27: Sample parsing --- start --- end Sample parsing: FAILED! [root@t35lp46 perf]# The commit fbefe9c2f87f ("perf tools: Support arch specific PERF_SAMPLE_WEIGHT_STRUCT proce

[PATCH 2/2] perf test: Support the ins_lat check in the X86 specific test

2021-03-03 Thread kan . liang
From: Kan Liang The ins_lat of PERF_SAMPLE_WEIGHT_STRUCT stands for the instruction latency, which is only available for X86. Add a X86 specific test for the ins_lat and PERF_SAMPLE_WEIGHT_STRUCT type. The test__x86_sample_parsing() uses the same way as the test__sample_parsing() to verify

Re: [PATCH 04/11] perf test: Fix cpu and thread map leaks in sw_clock_freq test

2021-03-03 Thread Arnaldo Carvalho de Melo
; > > > > - threads = NULL; > > > > > > hum, so IIUC we added these and the other you remove in your patches long > > > time ago, > > > because there was no refcounting at that time, right? > > > > It seems my original patch

drivers/firmware/efi/test/efi_test.c:157:13: sparse: sparse: incorrect type in initializer (different address spaces)

2021-03-03 Thread kernel test robot
as appropriate Reported-by: kernel test robot "sparse warnings: (new ones prefixed by >>)" >> drivers/firmware/efi/test/efi_test.c:157:13: sparse: sparse: incorrect type >> in initializer (different address spaces) @@ expected unsigned long >> const [noderef] __

[RFC PATCH 5/5] tools/rpmb: simple test sequence

2021-03-03 Thread Alex Bennée
A simple test script to exercise the rpmb interface. Signed-off-by: Alex Bennée --- tools/rpmb/key | 1 + tools/rpmb/test.sh | 13 + 2 files changed, 14 insertions(+) create mode 100644 tools/rpmb/key create mode 100755 tools/rpmb/test.sh diff --git a/tools/rpmb/key b/tools

Re: [PATCH] perf test: Test case 27 fails on s390 and non-x86 platforms

2021-03-03 Thread Thomas Richter
gt;> >>>>> + Athira Rajeev >>>>> >>>>> On 3/2/2021 8:31 AM, Thomas Richter wrote: >>>>>> Executing perf test 27 fails on s390: >>>>>>     [root@t35lp46 perf]# ./perf test -Fv 27 >>>>>>     27: Sample pa

Re: [PATCH] perf test: Test case 27 fails on s390 and non-x86 platforms

2021-03-03 Thread Athira Rajeev
Kan wrote: >>>>> >>>>> + Athira Rajeev >>>>> >>>>> On 3/2/2021 8:31 AM, Thomas Richter wrote: >>>>>> Executing perf test 27 fails on s390: >>>>>>[root@t35lp46 perf]# ./perf test -Fv 27 >>>>

[PATCH stable v5.10 4/7] of: unittest: Add test for of_dma_get_max_cpu_address()

2021-03-03 Thread Jing Xiangfeng
From: Nicolas Saenz Julienne commit 07d13a1d6120d453c3c1f020578693d072deded5 upstream Introduce a test for of_dma_get_max_cup_address(), it uses the same DT data as the rest of dma-ranges unit tests. Signed-off-by: Nicolas Saenz Julienne Reviewed-by: Rob Herring Link: https://lore.kernel.org

Re: [PATCH] perf test: Test case 27 fails on s390 and non-x86 platforms

2021-03-02 Thread Liang, Kan
On 3/2/2021 12:08 PM, Thomas Richter wrote: On 3/2/21 4:23 PM, Liang, Kan wrote: On 3/2/2021 9:48 AM, Thomas Richter wrote: On 3/2/21 3:03 PM, Liang, Kan wrote: + Athira Rajeev On 3/2/2021 8:31 AM, Thomas Richter wrote: Executing perf test 27 fails on s390:    [root@t35lp46 perf

Re: [PATCH] perf test: Test case 27 fails on s390 and non-x86 platforms

2021-03-02 Thread Thomas Richter
On 3/2/21 4:23 PM, Liang, Kan wrote: > > > On 3/2/2021 9:48 AM, Thomas Richter wrote: >> On 3/2/21 3:03 PM, Liang, Kan wrote: >>> >>> + Athira Rajeev >>> >>> On 3/2/2021 8:31 AM, Thomas Richter wrote: >>>> Executing perf test 27

Re: [PATCH] perf test: Test case 27 fails on s390 and non-x86 platforms

2021-03-02 Thread Thomas Richter
On 3/2/21 3:03 PM, Liang, Kan wrote: > > + Athira Rajeev > > On 3/2/2021 8:31 AM, Thomas Richter wrote: >> Executing perf test 27 fails on s390: >>   [root@t35lp46 perf]# ./perf test -Fv 27 >>   27: Sample parsing >>   --- start --- >>   end --

Re: [PATCH] perf test: Test case 27 fails on s390 and non-x86 platforms

2021-03-02 Thread Liang, Kan
On 3/2/2021 9:48 AM, Thomas Richter wrote: On 3/2/21 3:03 PM, Liang, Kan wrote: + Athira Rajeev On 3/2/2021 8:31 AM, Thomas Richter wrote: Executing perf test 27 fails on s390:   [root@t35lp46 perf]# ./perf test -Fv 27   27: Sample parsing   --- start ---   end   Sample

Re: [PATCH] perf test: Test case 27 fails on s390 and non-x86 platforms

2021-03-02 Thread Liang, Kan
+ Athira Rajeev On 3/2/2021 8:31 AM, Thomas Richter wrote: Executing perf test 27 fails on s390: [root@t35lp46 perf]# ./perf test -Fv 27 27: Sample parsing --- start --- end Sample parsing: FAILED! [root@t35lp46 perf]# The root cause is commit c7444297fd3769 ("perf

[PATCH] perf test: Test case 27 fails on s390 and non-x86 platforms

2021-03-02 Thread Thomas Richter
Executing perf test 27 fails on s390: [root@t35lp46 perf]# ./perf test -Fv 27 27: Sample parsing --- start --- end Sample parsing: FAILED! [root@t35lp46 perf]# The root cause is commit c7444297fd3769 ("perf test: Support PERF_SAMPLE_WEIGHT_STRUCT") This commit introdu

Re: [PATCH 04/11] perf test: Fix cpu and thread map leaks in sw_clock_freq test

2021-03-02 Thread Jiri Olsa
long > > time ago, > > because there was no refcounting at that time, right? > > It seems my original patch just set the maps directly. > > bc96b361cbf9 perf tests: Add a test case for checking sw clock event > frequency > > And after that Adrian chang

[RFC PATCH v4 0/9] KVM: selftests: some improvement and a new test for kvm page table

2021-03-02 Thread Yanan Wang
for kinds of alignment or guest memory accessing of vcpus. In the second part, a new test is added: This test is added to serve as a performance tester and a bug reproducer for kvm page table code (GPA->HPA mappings), it gives guidance for the people trying to make some improvement for

[RFC PATCH v4 9/9] KVM: selftests: Add a test for kvm page table code

2021-03-02 Thread Yanan Wang
This test serves as a performance tester and a bug reproducer for kvm page table code (GPA->HPA mappings), so it gives guidance for people trying to make some improvement for kvm. The function guest_code() can cover the conditions where a single vcpu or multiple vcpus access guest pages wit

Re: [PATCH] perf buildid-cache: Add test for PE executable

2021-03-02 Thread Arnaldo Carvalho de Melo
rote: > > > > From 9fd0b3889f00ad13662879767d833309d8a035b6 Mon Sep 17 00:00:00 2001 > > > > From: Nicholas Fraser > > > > Date: Thu, 18 Feb 2021 13:24:03 -0500 > > > > Subject: [PATCH] perf buildid-cache: Add test for PE executable > > > >

[PATCH AUTOSEL 5.11 44/52] kasan: fix memory corruption in kasan_bitops_tags test

2021-03-02 Thread Sasha Levin
From: Andrey Konovalov [ Upstream commit e66e1799a76621003e5b04c9c057826a2152e103 ] Since the hardware tag-based KASAN mode might not have a redzone that comes after an allocated object (when kasan.mode=prod is enabled), the kasan_bitops_tags() test ends up corrupting the next object in memory

[PATCH AUTOSEL 5.10 39/47] kasan: fix memory corruption in kasan_bitops_tags test

2021-03-02 Thread Sasha Levin
From: Andrey Konovalov [ Upstream commit e66e1799a76621003e5b04c9c057826a2152e103 ] Since the hardware tag-based KASAN mode might not have a redzone that comes after an allocated object (when kasan.mode=prod is enabled), the kasan_bitops_tags() test ends up corrupting the next object in memory

[PATCH AUTOSEL 5.10 18/47] kunit: tool: fix unit test cleanup handling

2021-03-02 Thread Sasha Levin
From: Daniel Latypov [ Upstream commit cfd607e43da4a20753744f134e201310262b827a ] * Stop leaking file objects. * Use self.addCleanup() to ensure we call cleanup functions even if setUp() fails. * use mock.patch.stopall instead of more error-prone manual approach Signed-off-by: Daniel Latypov

[PATCH AUTOSEL 5.11 21/52] kunit: tool: fix unit test cleanup handling

2021-03-02 Thread Sasha Levin
From: Daniel Latypov [ Upstream commit cfd607e43da4a20753744f134e201310262b827a ] * Stop leaking file objects. * Use self.addCleanup() to ensure we call cleanup functions even if setUp() fails. * use mock.patch.stopall instead of more error-prone manual approach Signed-off-by: Daniel Latypov

Re: [PATCH 04/11] perf test: Fix cpu and thread map leaks in sw_clock_freq test

2021-03-01 Thread Namhyung Kim
gt; > > > Also change the goto label since it doesn't need to have two. > > > > # perf test -v 25 > > 25: Software clock events period values: > > --- start --- > > test child forked

[PATCH v2 3/5] userfaultfd/selftests: create alias mappings in the shmem test

2021-03-01 Thread Axel Rasmussen
, we'll leverage this setup to exercise minor fault handling support for shmem, just like we do in the hugetlb_shared test. Signed-off-by: Axel Rasmussen --- tools/testing/selftests/vm/userfaultfd.c | 29 +--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/tools

[PATCH v2 2/5] userfaultfd/selftests: use memfd_create for shmem test type

2021-03-01 Thread Axel Rasmussen
This is a preparatory commit. In the future, we want to be able to setup alias mappings for area_src and area_dst in the shmem test, like we do in the hugetlb_shared test. With a VMA obtained via mmap(MAP_ANONYMOUS | MAP_SHARED), it isn't clear how to do this. So, mmap() with an fd, so we can

[PATCH v2 4/5] userfaultfd/selftests: reinitialize test context in each test

2021-03-01 Thread Axel Rasmussen
Currently, the context (fds, mmap-ed areas, etc.) are global. Each test mutates this state in some way, in some cases really "clobbering it" (e.g., the events test mremap-ing area_dst over the top of area_src, or the minor faults tests overwriting the count_verify values in the test area

[PATCH v9 6/6] userfaultfd/selftests: add test exercising minor fault handling

2021-03-01 Thread Axel Rasmussen
Fix a dormant bug in userfaultfd_events_test(), where we did `return faulting_process(0)` instead of `exit(faulting_process(0))`. This caused the forked process to keep running, trying to execute any further test cases after the events test in parallel with the "real" process. Add a s

[PATCH 5.11 771/775] wireguard: selftests: test multiple parallel streams

2021-03-01 Thread Greg Kroah-Hartman
From: Jason A. Donenfeld commit d5a49aa6c3e264a93a7d08485d66e346be0969dd upstream. In order to test ndo_start_xmit being called in parallel, explicitly add separate tests, which should all run on different cores. This should help tease out bugs associated with queueing up packets from different

[PATCH 5.11 470/775] perf test: Fix unaligned access in sample parsing test

2021-03-01 Thread Greg Kroah-Hartman
... SUMMARY: UndefinedBehaviorSanitizer: misaligned-pointer-use util/synthetic-events.c:1539:4 in Fixes: 045f8cd8542d ("perf tests: Add a sample parsing test") Signed-off-by: Namhyung Kim Acked-by: Adrian Hunter Cc: Alexander Shishkin Cc: Andi Kleen Cc: Ian Rogers Cc: Ingo Molnar Cc: Jir

[PATCH 5.11 429/775] kunit: tool: fix unit test cleanup handling

2021-03-01 Thread Greg Kroah-Hartman
From: Daniel Latypov [ Upstream commit cfd607e43da4a20753744f134e201310262b827a ] * Stop leaking file objects. * Use self.addCleanup() to ensure we call cleanup functions even if setUp() fails. * use mock.patch.stopall instead of more error-prone manual approach Signed-off-by: Daniel Latypov

[PATCH 5.10 263/663] selftests/powerpc: Make the test check in eeh-basic.sh posix compliant

2021-03-01 Thread Greg Kroah-Hartman
From: Po-Hsu Lin [ Upstream commit 3db380570af7052620ace20c29e244938610ca71 ] The == operand is a bash extension, thus this will fail on Ubuntu with: ./eeh-basic.sh: 89: test: 2: unexpected operator As the /bin/sh on Ubuntu is pointed to DASH. Use -eq to fix this posix compatibility issue

[PATCH 5.10 354/663] kunit: tool: fix unit test cleanup handling

2021-03-01 Thread Greg Kroah-Hartman
From: Daniel Latypov [ Upstream commit cfd607e43da4a20753744f134e201310262b827a ] * Stop leaking file objects. * Use self.addCleanup() to ensure we call cleanup functions even if setUp() fails. * use mock.patch.stopall instead of more error-prone manual approach Signed-off-by: Daniel Latypov

<    1   2   3   4   5   6   7   8   9   10   >