From nobody Mon Jun 29 17:36:57 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BFA37C43219 for ; Fri, 4 Feb 2022 23:56:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378522AbiBDX4O (ORCPT ); Fri, 4 Feb 2022 18:56:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378473AbiBDX4G (ORCPT ); Fri, 4 Feb 2022 18:56:06 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44F72DB788C4; Fri, 4 Feb 2022 15:56:04 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1517D61CE1; Fri, 4 Feb 2022 23:56:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7AEAEC004E1; Fri, 4 Feb 2022 23:56:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644018962; bh=yUiNHffYq6iT3ABSzr7h3OVqLh7zD9OXsmxGVa+fEq0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W5pCX4FJ/JXJTCj22BdQ+GkLccILl1kgLKnViF97QgPStPC335Yw4Uzb2Xn96r9t5 uNnZBBP/Wa54y1hjglJrKOgIFe2+WrN8sgLgTGCSPSm7yjshooGeVqZAbr+AdBH4Ir 6nyir0++SQoT1IObj36eSLkslW7FMRonlwAzQognFXC0MeGGnezc7JFWO5srt37Yix eYqyqD3nWXP24eA5fMTIyqxerfngcp6+kPSUDwldX+CRpg74BzsmrxxOYVd/NUCZjT 8bmVUZkv64McuqflXF5EwQ6S5qWGB2lvYSL8L3IUM6ovFS/Xp+lu81lPdsnirIlxg0 eGazvMKfalbdA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 51F955C0418; Fri, 4 Feb 2022 15:56:02 -0800 (PST) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@fb.com, rostedt@goodmis.org, "Paul E. McKenney" Subject: [PATCH rcu 01/13] torture: Drop trailing ^M from console output Date: Fri, 4 Feb 2022 15:55:49 -0800 Message-Id: <20220204235601.3438-1-paulmck@kernel.org> X-Mailer: git-send-email 2.31.1.189.g2e36527f23 In-Reply-To: <20220204235558.GA3221@paulmck-ThinkPad-P17-Gen-1> References: <20220204235558.GA3221@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Console logs can sometimes have trailing control-M characters, which the forward-progress evaluation code in kvm-recheck-rcu.sh passes through to the user output. Which does not cause a technical problem, but which can look ugly. This commit therefore strips the control-M characters. Signed-off-by: Paul E. McKenney --- tools/testing/selftests/rcutorture/bin/kvm-recheck-rcu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/rcutorture/bin/kvm-recheck-rcu.sh b/to= ols/testing/selftests/rcutorture/bin/kvm-recheck-rcu.sh index 1c4c2c727dad1..43e1387234d11 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm-recheck-rcu.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm-recheck-rcu.sh @@ -25,7 +25,7 @@ stopstate=3D"`grep 'End-test grace-period state: g' $i/co= nsole.log 2> /dev/null | tail -1 | sed -e 's/^\[[ 0-9.]*] //' | awk '{ print \"[\" $1 \" \" $5 \" \" $6 \" \" $7 \"]\"; }' | tr -d '\012\015'`" -fwdprog=3D"`grep 'rcu_torture_fwd_prog n_max_cbs: ' $i/console.log 2> /dev= /null | sed -e 's/^\[[^]]*] //' | sort -k3nr | head -1 | awk '{ print $2 " = " $3 }'`" +fwdprog=3D"`grep 'rcu_torture_fwd_prog n_max_cbs: ' $i/console.log 2> /dev= /null | sed -e 's/^\[[^]]*] //' | sort -k3nr | head -1 | awk '{ print $2 " = " $3 }' | tr -d '\015'`" if test -z "$ngps" then echo "$configfile ------- " $stopstate --=20 2.31.1.189.g2e36527f23 From nobody Mon Jun 29 17:36:57 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6607FC433F5 for ; Fri, 4 Feb 2022 23:56:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378563AbiBDX4V (ORCPT ); Fri, 4 Feb 2022 18:56:21 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:57180 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378342AbiBDX4D (ORCPT ); Fri, 4 Feb 2022 18:56:03 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2B67161C06; Fri, 4 Feb 2022 23:56:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85771C340ED; Fri, 4 Feb 2022 23:56:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644018962; bh=qU/X28t3xt64+svQlUadiSmkrK/1fx6AE+NyJW+8BKs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uY6NzbvxZiOXDEVtiBqsv/LFWoLJPS18tYswjVEwTcc6pkBVlJUS4G1w6JRanKqtU xM1TpZlKBWCY8m37rwDqeCDcz0XXVuWhOyRGLk0m+6Vgq38F9sg+89tUxPMB12cojw uTKkIYvprCaVi/vuqJinlIXuJ0Jq+bDbRp02XAAd1FF1q3wdujvEmjoFmk4KC+6bHs dkba2vM9ReR5oBOQTwqBix4oYTsYw/YU1syzBH+f8T/TM8soS6+URe6saSAXVuOTvK 0yQ2mbtZyHwKhgzzAoFxFVkjQsMoCQx8SIsbZlhgAkONpYT/mjEiJ7OIHQP2vcRxPE UmZ4vAYt+n1iQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 573825C0829; Fri, 4 Feb 2022 15:56:02 -0800 (PST) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@fb.com, rostedt@goodmis.org, "Paul E. McKenney" Subject: [PATCH rcu 02/13] torture: Allow four-digit repetition numbers for --configs parameter Date: Fri, 4 Feb 2022 15:55:50 -0800 Message-Id: <20220204235601.3438-2-paulmck@kernel.org> X-Mailer: git-send-email 2.31.1.189.g2e36527f23 In-Reply-To: <20220204235558.GA3221@paulmck-ThinkPad-P17-Gen-1> References: <20220204235558.GA3221@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" In a clear-cut case of "not thinking big enough", kvm.sh limits the multipliers for torture-test scenarios to three digits. Although this is large enough for any single system that I have ever run rcutorture on, it does become a problem when you want to use kvm-remote.sh to run as many instances of TREE09 as fit on a set of 20 systems with 80 CPUs each. Yes, one could simply say "--configs '800*TREE09 800*TREE09'", but this commit removes the need for that sort of hacky workaround by permitting four-digit repetition numbers, thus allowing "--configs '1600*TREE09'". Five-digit repetition numbers remain off the menu. Should they ever really be needed, they can easily be added! Signed-off-by: Paul E. McKenney --- tools/testing/selftests/rcutorture/bin/kvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/= selftests/rcutorture/bin/kvm.sh index 6de0c183db5b9..348ad177a5acc 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm.sh @@ -280,7 +280,7 @@ configs_derep=3D for CF in $configs do case $CF in - [0-9]\**|[0-9][0-9]\**|[0-9][0-9][0-9]\**) + [0-9]\**|[0-9][0-9]\**|[0-9][0-9][0-9]\**|[0-9][0-9][0-9][0-9]\**) config_reps=3D`echo $CF | sed -e 's/\*.*$//'` CF1=3D`echo $CF | sed -e 's/^[^*]*\*//'` ;; --=20 2.31.1.189.g2e36527f23 From nobody Mon Jun 29 17:36:57 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75805C433EF for ; Fri, 4 Feb 2022 23:56:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378582AbiBDX40 (ORCPT ); Fri, 4 Feb 2022 18:56:26 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:57182 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378360AbiBDX4D (ORCPT ); Fri, 4 Feb 2022 18:56:03 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2D01C61CE3; Fri, 4 Feb 2022 23:56:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 885FEC340EF; Fri, 4 Feb 2022 23:56:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644018962; bh=UPkQT5w2q6YZSFdKy0yUznbCd1ftvqm2IFzyJSlUNoE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KbrF2qDlhzbZE3R2DbBVvpMmvmLvpqLUc4DtU5Yo84xFQm0Q5ILWiO/jIUt2rshXl Zq5BQD/dggZx0BTjOdrAwjNbPWUDuOIQVHndwjW4X7OTTJGnJnaPedn7e7nZnVI3bK pM5piRAp1LXjTGu7vmJlifPyUsGFfCg/wSnZ+nbvoI4FmdEV7h+UPikl4NCeWm8IDE Q+NNaR4muOHUIAXQKMBFVLJdAzD+hHrUxXSnQ9sED1zQOUc1dIiRLIwijyxpUGJY50 VlyP0hZd7vaYK9lkgFxrHxQVxqx4WcHM4m2YCgqTHNU8BvYzkON46vZOKkqSo2fK38 NA11jzTR6hfaQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 595C95C08B7; Fri, 4 Feb 2022 15:56:02 -0800 (PST) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@fb.com, rostedt@goodmis.org, "Paul E. McKenney" Subject: [PATCH rcu 03/13] torture: Output per-failed-run summary lines from torture.sh Date: Fri, 4 Feb 2022 15:55:51 -0800 Message-Id: <20220204235601.3438-3-paulmck@kernel.org> X-Mailer: git-send-email 2.31.1.189.g2e36527f23 In-Reply-To: <20220204235558.GA3221@paulmck-ThinkPad-P17-Gen-1> References: <20220204235558.GA3221@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Currently, torture.sh lists the failed runs, but it is up to the user to work out what failed. This is especially annoying for KCSAN runs, where RCU's tighter definitions result in failures being reported for other parts of the kernel. This commit therefore outputs "Summary:" lines for each failed run, allowing the user to more quickly identify which failed runs need focused attention. Signed-off-by: Paul E. McKenney --- tools/testing/selftests/rcutorture/bin/torture.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/rcutorture/bin/torture.sh b/tools/test= ing/selftests/rcutorture/bin/torture.sh index eae88aacca2aa..894f589dd5625 100755 --- a/tools/testing/selftests/rcutorture/bin/torture.sh +++ b/tools/testing/selftests/rcutorture/bin/torture.sh @@ -414,7 +414,7 @@ nfailures=3D0 echo FAILURES: | tee -a $T/log if test -s "$T/failures" then - cat "$T/failures" | tee -a $T/log + awk < "$T/failures" -v sq=3D"'" '{ print "echo " sq $0 sq; print "grep Su= mmary: " $2 "/log | sed -e " sq "s/^[^S]*/ /" sq; }' | sh | tee -a $T/log nfailures=3D"`wc -l "$T/failures" | awk '{ print $1 }'`" ret=3D2 fi --=20 2.31.1.189.g2e36527f23 From nobody Mon Jun 29 17:36:57 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88FA4C433EF for ; Fri, 4 Feb 2022 23:56:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378616AbiBDX4a (ORCPT ); Fri, 4 Feb 2022 18:56:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378471AbiBDX4G (ORCPT ); Fri, 4 Feb 2022 18:56:06 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44EFCDB788C3; Fri, 4 Feb 2022 15:56:04 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3895761CE4; Fri, 4 Feb 2022 23:56:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8AB4BC340F1; Fri, 4 Feb 2022 23:56:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644018962; bh=4V1LkW9IAvyKIMEbPh/BLiAi71eumZHE3CFmxyRHbdE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VoB1aOhAL9XZVabaKKxyfODr40vetmCFRvNPHv/5TO9NABOwxK56EjsmopxPxv1BY FuSXLHITljiFL7yH8lVxLqdeBMLtsIuVCCV/8iKsoBylcs0lt3fgz8glVqAL/w+Ci5 a6i5WMhZjbxPP3yhgturViNkyi2lKJYSdvhdq/QULsku1J9JNQc63lNMf5/ceZjL7z 8SuWaEO+lYp2yu4rk+fUfGMj6kZ3mS4PN8n5x30wlvCaaiV7AtEEFDoEti5vl+bNIk IPAWlkjeuNjJsgs44pO0Q75XRqeFznAY0pUKQ1xiHMOpCwndGidRL/S5s63FnDfkNw X9WxTiq9QhwKw== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 5B2BD5C08DD; Fri, 4 Feb 2022 15:56:02 -0800 (PST) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@fb.com, rostedt@goodmis.org, "Paul E. McKenney" Subject: [PATCH rcu 04/13] torture: Make kvm.sh summaries note runs having only KCSAN reports Date: Fri, 4 Feb 2022 15:55:52 -0800 Message-Id: <20220204235601.3438-4-paulmck@kernel.org> X-Mailer: git-send-email 2.31.1.189.g2e36527f23 In-Reply-To: <20220204235558.GA3221@paulmck-ThinkPad-P17-Gen-1> References: <20220204235558.GA3221@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Runs having only KCSAN reports will normally print a summary line containing only a "Bugs:" entry. However, these bugs might or might not be KCSAN reports. This commit therefore flags runs in which all the "Bugs:" entries are KCSAN reports. Signed-off-by: Paul E. McKenney --- .../selftests/rcutorture/bin/console-badness.sh | 2 +- .../testing/selftests/rcutorture/bin/parse-console.sh | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/rcutorture/bin/console-badness.sh b/to= ols/testing/selftests/rcutorture/bin/console-badness.sh index e6a132df61721..69f8a5958cefc 100755 --- a/tools/testing/selftests/rcutorture/bin/console-badness.sh +++ b/tools/testing/selftests/rcutorture/bin/console-badness.sh @@ -10,7 +10,7 @@ # # Authors: Paul E. McKenney =20 -egrep 'Badness|WARNING:|Warn|BUG|=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D|Call Tr= ace:|Oops:|detected stalls on CPUs/tasks:|self-detected stall on CPU|Stall = ended before state dump start|\?\?\? Writer stall state|rcu_.*kthread starv= ed for|!!!' | +egrep 'Badness|WARNING:|Warn|BUG|=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D|BUG: KC= SAN:|Call Trace:|Oops:|detected stalls on CPUs/tasks:|self-detected stall o= n CPU|Stall ended before state dump start|\?\?\? Writer stall state|rcu_.*k= thread starved for|!!!' | grep -v 'ODEBUG: ' | grep -v 'This means that this is a DEBUG kernel and it is' | grep -v 'Warning: unable to open an initial console' | diff --git a/tools/testing/selftests/rcutorture/bin/parse-console.sh b/tool= s/testing/selftests/rcutorture/bin/parse-console.sh index 9f624bd53c277..822eb037a0573 100755 --- a/tools/testing/selftests/rcutorture/bin/parse-console.sh +++ b/tools/testing/selftests/rcutorture/bin/parse-console.sh @@ -138,6 +138,16 @@ then then summary=3D"$summary Bugs: $n_bugs" fi + n_kcsan=3D`egrep -c 'BUG: KCSAN: ' $file` + if test "$n_kcsan" -ne 0 + then + if test "$n_bugs" =3D "$n_kcsan" + then + summary=3D"$summary (all bugs kcsan)" + else + summary=3D"$summary KCSAN: $n_kcsan" + fi + fi n_calltrace=3D`grep -c 'Call Trace:' $file` if test "$n_calltrace" -ne 0 then --=20 2.31.1.189.g2e36527f23 From nobody Mon Jun 29 17:36:57 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C59BC433F5 for ; Fri, 4 Feb 2022 23:56:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378601AbiBDX4X (ORCPT ); Fri, 4 Feb 2022 18:56:23 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:46802 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378428AbiBDX4F (ORCPT ); Fri, 4 Feb 2022 18:56:05 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E0146B83973; Fri, 4 Feb 2022 23:56:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91A5CC340F0; Fri, 4 Feb 2022 23:56:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644018962; bh=fq+PXC+3LobGGhIbiFdbfmExaf2eeUyxk01b1jjprwk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Tt/SCs2lRWi72t7fvXGQB9NCtrAjZJesx0pqw/EtpTk8wl13uuvWpvnFUfrCZKKkF vKtIEdQHLHQD1mZ/khiMgZ5KFuHcLig1d5VXa7EhwUfls5x3NM5HCNLIra2+pItpqa W5K5Hb74HHFIgQTRrn65XaVly47kpnCRWwY9SvKavaD5QKDf0to20egqA8OJKwyTvH LO7oTjh3cXWRhj2hufrPYcCYjBbnZL6EuJEmjJPJUT+oslkd7YY2C8k66SIMqwY0Q9 ahGtcIEAhJGmfy/IeYVOcLb5bMBx/+hdU4gCFVF3fDGy0WDSrd3BUV4XdA1WQ1YURT VdQ1R5eK9ga3Q== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 5CFBA5C0992; Fri, 4 Feb 2022 15:56:02 -0800 (PST) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@fb.com, rostedt@goodmis.org, "Paul E. McKenney" Subject: [PATCH rcu 05/13] torture: Indicate which torture.sh runs' bugs are all KCSAN reports Date: Fri, 4 Feb 2022 15:55:53 -0800 Message-Id: <20220204235601.3438-5-paulmck@kernel.org> X-Mailer: git-send-email 2.31.1.189.g2e36527f23 In-Reply-To: <20220204235558.GA3221@paulmck-ThinkPad-P17-Gen-1> References: <20220204235558.GA3221@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" This commit further improves torture.sh run summaries by indicating which runs' "Bugs:" counts are all KCSAN reports, and further printing an additional end-of-run summary line when all errors reported in all runs were KCSAN reports. Signed-off-by: Paul E. McKenney --- tools/testing/selftests/rcutorture/bin/torture.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/rcutorture/bin/torture.sh b/tools/test= ing/selftests/rcutorture/bin/torture.sh index 894f589dd5625..bddce72ea5ce4 100755 --- a/tools/testing/selftests/rcutorture/bin/torture.sh +++ b/tools/testing/selftests/rcutorture/bin/torture.sh @@ -414,8 +414,14 @@ nfailures=3D0 echo FAILURES: | tee -a $T/log if test -s "$T/failures" then - awk < "$T/failures" -v sq=3D"'" '{ print "echo " sq $0 sq; print "grep Su= mmary: " $2 "/log | sed -e " sq "s/^[^S]*/ /" sq; }' | sh | tee -a $T/log + awk < "$T/failures" -v sq=3D"'" '{ print "echo " sq $0 sq; print "grep Su= mmary: " $2 "/log | sed -e " sq "s/^[^S]*/ /" sq; }' | sh | tee -a $T/log = | tee "$T/failuresum" nfailures=3D"`wc -l "$T/failures" | awk '{ print $1 }'`" + grep "^ Summary: " "$T/failuresum" | + grep -v '^ Summary: Bugs: [0-9]* (all bugs kcsan)$' > "$T/nonkcsan" + if test -s "$T/nonkcsan" + then + nonkcsanbug=3D"yes" + fi ret=3D2 fi if test "$do_kcsan" =3D "yes" @@ -424,6 +430,10 @@ then fi echo Started at $startdate, ended at `date`, duration `get_starttime_durat= ion $starttime`. | tee -a $T/log echo Summary: Successes: $nsuccesses Failures: $nfailures. | tee -a $T/log +if test -z "$nonkcsanbug" && test -s "$T/failuresum" +then + echo " All bugs were KCSAN failures." +fi tdir=3D"`cat $T/successes $T/failures | head -1 | awk '{ print $NF }' | se= d -e 's,/[^/]\+/*$,,'`" if test -n "$tdir" && test $compress_kasan_vmlinux -gt 0 then --=20 2.31.1.189.g2e36527f23 From nobody Mon Jun 29 17:36:57 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94C9DC433EF for ; Fri, 4 Feb 2022 23:56:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378659AbiBDX4i (ORCPT ); Fri, 4 Feb 2022 18:56:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378484AbiBDX4H (ORCPT ); Fri, 4 Feb 2022 18:56:07 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44E7BDB788C2; Fri, 4 Feb 2022 15:56:04 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A3AC961CB0; Fri, 4 Feb 2022 23:56:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA708C340F7; Fri, 4 Feb 2022 23:56:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644018962; bh=xZePTPvdeMNKn6sTItV8Y+MIp/pcS8E3CgnOqzP3cbY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UqqQsunXUKAcpm/Zld16EZ4UYx91XDOKE9ODXhLRtd65n/a6jazUpskuYjL5FivVy 2ljvobmMpun5Oy5OT4Ll7nhy2Y65d47ufLqXzW3SErAIF/lo/SgVeibiSF/HFi/GwG tzqoYoDpRmUn0Shlz0hFqlhUAaKdW8LZSTfa8yBcYwgeVyb0oOn2AsmwEtd/03qIRJ qNCzzpWHdMbVtg4ykVrgbq0ABgqCUCQ1WvQPawvwo8Bs6XoY/y7BKoMUTZESS/F56h vYv6YOinnuqvLIJscdW5QitT51k7CJiHEM23ZHQUVSy233k+xBW50yUQ2U4F6WGbnu 2If/wvbFXvWYg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 5ED2E5C0A0A; Fri, 4 Feb 2022 15:56:02 -0800 (PST) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@fb.com, rostedt@goodmis.org, "Paul E. McKenney" Subject: [PATCH rcu 06/13] torture: Compress KCSAN as well as KASAN vmlinux files Date: Fri, 4 Feb 2022 15:55:54 -0800 Message-Id: <20220204235601.3438-6-paulmck@kernel.org> X-Mailer: git-send-email 2.31.1.189.g2e36527f23 In-Reply-To: <20220204235558.GA3221@paulmck-ThinkPad-P17-Gen-1> References: <20220204235558.GA3221@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Compressing KASAN vmlinux files reduces torture.sh res file size from about 100G to about 50G, which is good, but the KCSAN vmlinux files are also large. Compressing them reduces their size from about 700M to about 100M (but of course your mileage may vary). This commit therefore compresses both KASAN and KCSAN vmlinux files. Signed-off-by: Paul E. McKenney --- .../selftests/rcutorture/bin/torture.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tools/testing/selftests/rcutorture/bin/torture.sh b/tools/test= ing/selftests/rcutorture/bin/torture.sh index bddce72ea5ce4..a5f1c5fbefe4c 100755 --- a/tools/testing/selftests/rcutorture/bin/torture.sh +++ b/tools/testing/selftests/rcutorture/bin/torture.sh @@ -37,7 +37,7 @@ configs_scftorture=3D kcsan_kmake_args=3D =20 # Default compression, duration, and apportionment. -compress_kasan_vmlinux=3D"`identify_qemu_vcpus`" +compress_concurrency=3D"`identify_qemu_vcpus`" duration_base=3D10 duration_rcutorture_frac=3D7 duration_locktorture_frac=3D1 @@ -67,7 +67,7 @@ function doyesno () { =20 usage () { echo "Usage: $scriptname optional arguments:" - echo " --compress-kasan-vmlinux concurrency" + echo " --compress-concurrency concurrency" echo " --configs-rcutorture \"config-file list w/ repeat factor (3*= TINY01)\"" echo " --configs-locktorture \"config-file list w/ repeat factor (1= 0*LOCK01)\"" echo " --configs-scftorture \"config-file list w/ repeat factor (2*= CFLIST)\"" @@ -91,9 +91,9 @@ usage () { while test $# -gt 0 do case "$1" in - --compress-kasan-vmlinux) - checkarg --compress-kasan-vmlinux "(concurrency level)" $# "$2" '^[0-9][= 0-9]*$' '^error' - compress_kasan_vmlinux=3D$2 + --compress-concurrency) + checkarg --compress-concurrency "(concurrency level)" $# "$2" '^[0-9][0-= 9]*$' '^error' + compress_concurrency=3D$2 shift ;; --config-rcutorture|--configs-rcutorture) @@ -435,11 +435,11 @@ then echo " All bugs were KCSAN failures." fi tdir=3D"`cat $T/successes $T/failures | head -1 | awk '{ print $NF }' | se= d -e 's,/[^/]\+/*$,,'`" -if test -n "$tdir" && test $compress_kasan_vmlinux -gt 0 +if test -n "$tdir" && test $compress_concurrency -gt 0 then # KASAN vmlinux files can approach 1GB in size, so compress them. - echo Looking for KASAN files to compress: `date` > "$tdir/log-xz" 2>&1 - find "$tdir" -type d -name '*-kasan' -print > $T/xz-todo + echo Looking for K[AC]SAN files to compress: `date` > "$tdir/log-xz" 2>&1 + find "$tdir" -type d -name '*-k[ac]san' -print > $T/xz-todo ncompresses=3D0 batchno=3D1 if test -s $T/xz-todo @@ -457,7 +457,7 @@ then do xz "$j" >> "$tdir/log-xz" 2>&1 & ncompresses=3D$((ncompresses+1)) - if test $ncompresses -ge $compress_kasan_vmlinux + if test $ncompresses -ge $compress_concurrency then echo Waiting for batch $batchno of $ncompresses compressions `date` |= tee -a "$tdir/log-xz" | tee -a $T/log wait --=20 2.31.1.189.g2e36527f23 From nobody Mon Jun 29 17:36:57 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 82764C433F5 for ; Fri, 4 Feb 2022 23:56:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378590AbiBDX4S (ORCPT ); Fri, 4 Feb 2022 18:56:18 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:46806 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378438AbiBDX4F (ORCPT ); Fri, 4 Feb 2022 18:56:05 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 48F90B83976; Fri, 4 Feb 2022 23:56:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFF03C340F8; Fri, 4 Feb 2022 23:56:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644018962; bh=ACmcwdY4MgtqGSA8Oxt64UKc7QSVDvDydQ0r63LBD8c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XjYdkp31gvi5iNiPukP5WLzCsoVzVY4gv1dvsC8S+SXj+oTEATUN8LTqSTJguNMGC CWNYUd1ekSgyQOYkSdLpA279hBC7y+innoCfn3Doo1yya12ZektPo5rl6f2w3ASaSb 78dmFYW6idVlOsuW48oxYqB5y5r8hgzHQ4NfQjuEq+xsX17aUQZe5La4lXKDj97BfM 9oN2SX0nJcUgKzRWXztYk3lCw9epi79WOqsQAp1W7OHJ1ncHbYMRoTiYXLZvQ8nA6q p6xrnyYuHTcRXrCFZvckbevTRfp0LgugNENvc5GWgyGqkfkgDC1vfFb45d5+1ZI9c4 a5TC1lQUednRg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 6086E5C0A21; Fri, 4 Feb 2022 15:56:02 -0800 (PST) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@fb.com, rostedt@goodmis.org, "Paul E. McKenney" Subject: [PATCH rcu 07/13] torture: Make kvm-remote.sh try multiple times to download tarball Date: Fri, 4 Feb 2022 15:55:55 -0800 Message-Id: <20220204235601.3438-7-paulmck@kernel.org> X-Mailer: git-send-email 2.31.1.189.g2e36527f23 In-Reply-To: <20220204235558.GA3221@paulmck-ThinkPad-P17-Gen-1> References: <20220204235558.GA3221@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" This commit ups the retries for downloading the build-product tarball to a given remote system from once to five times, the better to handle transient network failures. Signed-off-by: Paul E. McKenney --- .../selftests/rcutorture/bin/kvm-remote.sh | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/tools/testing/selftests/rcutorture/bin/kvm-remote.sh b/tools/t= esting/selftests/rcutorture/bin/kvm-remote.sh index e09b1bc787084..29b068a55b466 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm-remote.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm-remote.sh @@ -155,18 +155,23 @@ do echo Downloading tarball to $i `date` | tee -a "$oldrun/remote-log" cat $T/binres.tgz | ssh $i "cd /tmp; tar -xzf -" ret=3D$? - if test "$ret" -ne 0 - then - echo Unable to download $T/binres.tgz to system $i, waiting and then ret= rying. | tee -a "$oldrun/remote-log" + tries=3D0 + while test "$ret" -ne 0 + do + echo Unable to download $T/binres.tgz to system $i, waiting and then ret= rying. $tries prior retries. | tee -a "$oldrun/remote-log" sleep 60 cat $T/binres.tgz | ssh $i "cd /tmp; tar -xzf -" ret=3D$? if test "$ret" -ne 0 then - echo Unable to download $T/binres.tgz to system $i, giving up. | tee -a= "$oldrun/remote-log" - exit 10 + if test "$tries" > 5 + then + echo Unable to download $T/binres.tgz to system $i, giving up. | tee -= a "$oldrun/remote-log" + exit 10 + fi fi - fi + tries=3D$((tries+1)) + done done =20 # Function to check for presence of a file on the specified system. --=20 2.31.1.189.g2e36527f23 From nobody Mon Jun 29 17:36:57 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E1D1C433F5 for ; Fri, 4 Feb 2022 23:56:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354386AbiBDX4q (ORCPT ); Fri, 4 Feb 2022 18:56:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378501AbiBDX4I (ORCPT ); Fri, 4 Feb 2022 18:56:08 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8600DB788D1; Fri, 4 Feb 2022 15:56:06 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BA5BA61CE2; Fri, 4 Feb 2022 23:56:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C50FFC340F9; Fri, 4 Feb 2022 23:56:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644018962; bh=GgBZ5rqIurEZcMB46ROQ79+OYhe5rUcm87n6PCyjT3o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gT31gzk5KwfzA8Vb5gKM0Ebw51ai7nLBWJWK54YJIgj26Hp31VAO8Tyt3bCJHgRAJ 0/A59zUAjU6zt6b524dvmesQM8LtYXFu8D89ilT2PxfFuWgTQiVhDpfvgjQrCDT9i0 9BmUvjQ/p82ys5teco9D2DT/J5NZWEEuNHIEcN2lovjSwnANl4TeM9N6PlNebv+yfi PX1nkgrpYh9P1BT9VuAF0Cp+sHUfTvFA2mCxFHEOQjBFoIeSYcRBXFFSTNPa3/p8r0 pwSydpFbe8B/akNV1iJsN22shX2y81JrmXSOMZfhMt4vU/uFWiV72GvUuSTGF10tr+ z1IwCvUuSybGQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 624265C0A6A; Fri, 4 Feb 2022 15:56:02 -0800 (PST) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@fb.com, rostedt@goodmis.org, "Paul E. McKenney" Subject: [PATCH rcu 08/13] torture: Print only one summary line per run Date: Fri, 4 Feb 2022 15:55:56 -0800 Message-Id: <20220204235601.3438-8-paulmck@kernel.org> X-Mailer: git-send-email 2.31.1.189.g2e36527f23 In-Reply-To: <20220204235558.GA3221@paulmck-ThinkPad-P17-Gen-1> References: <20220204235558.GA3221@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The torture.sh scripts currently duplicates the summary lines, getting one during the run phase and one during the summary phase of each run. This commit therefore removes the run phase from consideration so as to get only one summary line per run. Signed-off-by: Paul E. McKenney --- tools/testing/selftests/rcutorture/bin/torture.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/rcutorture/bin/torture.sh b/tools/test= ing/selftests/rcutorture/bin/torture.sh index a5f1c5fbefe4c..d1cb60085d8f2 100755 --- a/tools/testing/selftests/rcutorture/bin/torture.sh +++ b/tools/testing/selftests/rcutorture/bin/torture.sh @@ -414,7 +414,7 @@ nfailures=3D0 echo FAILURES: | tee -a $T/log if test -s "$T/failures" then - awk < "$T/failures" -v sq=3D"'" '{ print "echo " sq $0 sq; print "grep Su= mmary: " $2 "/log | sed -e " sq "s/^[^S]*/ /" sq; }' | sh | tee -a $T/log = | tee "$T/failuresum" + awk < "$T/failures" -v sq=3D"'" '{ print "echo " sq $0 sq; print "sed -e = " sq "1,/^ --- .* Test summary:$/d" sq " " $2 "/log | grep Summary: | sed -= e " sq "s/^[^S]*/ /" sq; }' | sh | tee -a $T/log | tee "$T/failuresum" nfailures=3D"`wc -l "$T/failures" | awk '{ print $1 }'`" grep "^ Summary: " "$T/failuresum" | grep -v '^ Summary: Bugs: [0-9]* (all bugs kcsan)$' > "$T/nonkcsan" --=20 2.31.1.189.g2e36527f23 From nobody Mon Jun 29 17:36:57 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CF632C433F5 for ; Fri, 4 Feb 2022 23:56:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378683AbiBDX4v (ORCPT ); Fri, 4 Feb 2022 18:56:51 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:46810 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378452AbiBDX4F (ORCPT ); Fri, 4 Feb 2022 18:56:05 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 57222B8397A; Fri, 4 Feb 2022 23:56:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C71F1C340FA; Fri, 4 Feb 2022 23:56:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644018962; bh=Gwph+6DFWT1q7W++nX8g5zeBJ1g1d8ZNxVvDQktd4fI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X2Ma0UpmlX7Je1Tnn0PKojj/xv3SVL8eVKk5ceEV1DOzPx1NYkSdKD5qI9PfOY2+F NC6jcwtyXvqbsrYlmJdRf52rtr1vnEQcDLvHJS0oKA/AFXrPvp7X+WNRlnZqOTKJxY 0LP4pKyjCLPQqxcONzxowaBXNulIeTQk/fR+JCHZuNLgNEiH6sTiTci4N0ebmcdJgm n5MAbQ/4AOceh9sNyrM+oZNZVAfXkSFICdFSaS/w5SJa2OP4TkbVU82w7M/FDS9yaM /doXMiyywl5bB7wvJ0TwA05N7THXqrbaMvxrgEt5SnRUCwKQWLj5yt2sfD4w6yvVnU 8aNyW0TyNVBCA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 63EFA5C0AEF; Fri, 4 Feb 2022 15:56:02 -0800 (PST) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@fb.com, rostedt@goodmis.org, "Paul E. McKenney" , Paul Menzel Subject: [PATCH rcu 09/13] torture: Make kvm-find-errors.sh notice missing vmlinux file Date: Fri, 4 Feb 2022 15:55:57 -0800 Message-Id: <20220204235601.3438-9-paulmck@kernel.org> X-Mailer: git-send-email 2.31.1.189.g2e36527f23 In-Reply-To: <20220204235558.GA3221@paulmck-ThinkPad-P17-Gen-1> References: <20220204235558.GA3221@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Currently, an obtuse compiler diagnostic can fool kvm-find-errors.sh into believing that the build was successful. This commit therefore adds a check for a missing vmlinux file. Note that in the case of repeated torture-test scenarios ("--configs '2*TREE01'"), the vmlinux file will only be present in the first directory, that is, in TREE01 but not TREE01.2. Link: https://lore.kernel.org/lkml/36bd91e4-8eda-5677-7fde-40295932a640@mol= gen.mpg.de/ Reported-by: Paul Menzel Signed-off-by: Paul E. McKenney --- tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh b/to= ols/testing/selftests/rcutorture/bin/kvm-find-errors.sh index 2e9e9e2eedb69..5f682fc892dd4 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh @@ -30,10 +30,16 @@ editor=3D${EDITOR-vi} files=3D for i in ${rundir}/*/Make.out do + scenariodir=3D"`dirname $i`" + scenariobasedir=3D"`echo ${scenariodir} | sed -e 's/\.[0-9]*$//'`" if egrep -q "error:|warning:|^ld: .*undefined reference to" < $i then egrep "error:|warning:|^ld: .*undefined reference to" < $i > $i.diags files=3D"$files $i.diags $i" + elif ! test -f ${scenariobasedir}/vmlinux + then + echo No ${scenariobasedir}/vmlinux file > $i.diags + files=3D"$files $i.diags $i" fi done if test -n "$files" --=20 2.31.1.189.g2e36527f23 From nobody Mon Jun 29 17:36:57 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0435EC433FE for ; Fri, 4 Feb 2022 23:56:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378641AbiBDX46 (ORCPT ); Fri, 4 Feb 2022 18:56:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378514AbiBDX4J (ORCPT ); Fri, 4 Feb 2022 18:56:09 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47BFADB788C0; Fri, 4 Feb 2022 15:56:08 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 80522B83978; Fri, 4 Feb 2022 23:56:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D136AC340FC; Fri, 4 Feb 2022 23:56:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644018962; bh=7df+VBYTF6sNJWXaffHoxsD1+Ms6yjHX8EopTce+Ujg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LE49Lbqj/GCAhp57/SIeYP1wNk6vdc9dkC35lm8lgY4zwDNLJqI++/4+J3H02UbgJ AxfEUdg3ARdw0F+b0qqvoq+hYSTFQ9LvMM0VJe5nuawCLspIzZIOoen4MAZC8n/PRT Z4AxPy0jJDuQhYihJIh0T2eRgpwDUQ1OIL8jWwSUsfLAj/PS9fvO/7S9rxz19d4jPG 7EeV4OL5WA9uhmy9MIgFZAHVI19LpHV8nnD+OGQCAo8YKbnobjrj1uDxldf407LDOV 6qwgYGF+CgRFEIA967dT6slLtm8Od4K+Hllrx5TyYp0seBGcxljfmAO01v0z8/EYrZ TAil3wukia4Jw== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 65BAA5C0BCB; Fri, 4 Feb 2022 15:56:02 -0800 (PST) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@fb.com, rostedt@goodmis.org, "Paul E. McKenney" , Zhouyi Zhou Subject: [PATCH rcu 10/13] torture: Change KVM environment variable to RCUTORTURE Date: Fri, 4 Feb 2022 15:55:58 -0800 Message-Id: <20220204235601.3438-10-paulmck@kernel.org> X-Mailer: git-send-email 2.31.1.189.g2e36527f23 In-Reply-To: <20220204235558.GA3221@paulmck-ThinkPad-P17-Gen-1> References: <20220204235558.GA3221@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The torture-test scripting's long-standing use of KVM as the environment variable tracking the pathname of the rcutorture directory now conflicts with allmodconfig builds due to the virt/kvm/Makefile.kvm file's use of this as a makefile variable. This commit therefore changes the torture-test scripting from KVM to RCUTORTURE, avoiding the name conflict. Reported-by: Zhouyi Zhou Tested-by: Zhouyi Zhou Signed-off-by: Paul E. McKenney --- .../testing/selftests/rcutorture/bin/kvm-again.sh | 4 ++-- .../selftests/rcutorture/bin/kvm-check-branches.sh | 4 ++-- .../selftests/rcutorture/bin/kvm-end-run-stats.sh | 4 ++-- .../testing/selftests/rcutorture/bin/kvm-remote.sh | 8 ++++---- tools/testing/selftests/rcutorture/bin/kvm.sh | 14 +++++++------- tools/testing/selftests/rcutorture/bin/torture.sh | 4 ++-- 6 files changed, 19 insertions(+), 19 deletions(-) diff --git a/tools/testing/selftests/rcutorture/bin/kvm-again.sh b/tools/te= sting/selftests/rcutorture/bin/kvm-again.sh index 5a0023d183dac..0941f1ddab658 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm-again.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm-again.sh @@ -47,8 +47,8 @@ else exit 1 fi =20 -KVM=3D"`pwd`/tools/testing/selftests/rcutorture"; export KVM -PATH=3D${KVM}/bin:$PATH; export PATH +RCUTORTURE=3D"`pwd`/tools/testing/selftests/rcutorture"; export RCUTORTURE +PATH=3D${RCUTORTURE}/bin:$PATH; export PATH . functions.sh =20 dryrun=3D diff --git a/tools/testing/selftests/rcutorture/bin/kvm-check-branches.sh b= /tools/testing/selftests/rcutorture/bin/kvm-check-branches.sh index 370406bbfeedc..f17000a2ccf1f 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm-check-branches.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm-check-branches.sh @@ -49,8 +49,8 @@ fi mkdir $resdir/$ds echo Results directory: $resdir/$ds =20 -KVM=3D"`pwd`/tools/testing/selftests/rcutorture"; export KVM -PATH=3D${KVM}/bin:$PATH; export PATH +RCUTORTURE=3D"`pwd`/tools/testing/selftests/rcutorture"; export RCUTORTURE +PATH=3D${RCUTORTURE}/bin:$PATH; export PATH . functions.sh echo Using all `identify_qemu_vcpus` CPUs. =20 diff --git a/tools/testing/selftests/rcutorture/bin/kvm-end-run-stats.sh b/= tools/testing/selftests/rcutorture/bin/kvm-end-run-stats.sh index e4a00779b8c69..ee886b40a5d2c 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm-end-run-stats.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm-end-run-stats.sh @@ -22,8 +22,8 @@ T=3D${TMPDIR-/tmp}/kvm-end-run-stats.sh.$$ trap 'rm -rf $T' 0 mkdir $T =20 -KVM=3D"`pwd`/tools/testing/selftests/rcutorture"; export KVM -PATH=3D${KVM}/bin:$PATH; export PATH +RCUTORTURE=3D"`pwd`/tools/testing/selftests/rcutorture"; export RCUTORTURE +PATH=3D${RCUTORTURE}/bin:$PATH; export PATH . functions.sh default_starttime=3D"`get_starttime`" starttime=3D"${2-default_starttime}" diff --git a/tools/testing/selftests/rcutorture/bin/kvm-remote.sh b/tools/t= esting/selftests/rcutorture/bin/kvm-remote.sh index 29b068a55b466..8c4c1e4792d02 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm-remote.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm-remote.sh @@ -19,8 +19,8 @@ then exit 1 fi =20 -KVM=3D"`pwd`/tools/testing/selftests/rcutorture"; export KVM -PATH=3D${KVM}/bin:$PATH; export PATH +RCUTORTURE=3D"`pwd`/tools/testing/selftests/rcutorture"; export RCUTORTURE +PATH=3D${RCUTORTURE}/bin:$PATH; export PATH . functions.sh =20 starttime=3D"`get_starttime`" @@ -108,8 +108,8 @@ else cat $T/kvm-again.sh.out | tee -a "$oldrun/remote-log" exit 2 fi - cp -a "$rundir" "$KVM/res/" - oldrun=3D"$KVM/res/$ds" + cp -a "$rundir" "$RCUTORTURE/res/" + oldrun=3D"$RCUTORTURE/res/$ds" fi echo | tee -a "$oldrun/remote-log" echo " ----" kvm-again.sh output: "(`date`)" | tee -a "$oldrun/remote-log" diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/= selftests/rcutorture/bin/kvm.sh index 348ad177a5acc..55b2c15332827 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm.sh @@ -25,15 +25,15 @@ LANG=3Den_US.UTF-8; export LANG =20 dur=3D$((30*60)) dryrun=3D"" -KVM=3D"`pwd`/tools/testing/selftests/rcutorture"; export KVM -PATH=3D${KVM}/bin:$PATH; export PATH +RCUTORTURE=3D"`pwd`/tools/testing/selftests/rcutorture"; export RCUTORTURE +PATH=3D${RCUTORTURE}/bin:$PATH; export PATH . functions.sh =20 TORTURE_ALLOTED_CPUS=3D"`identify_qemu_vcpus`" TORTURE_DEFCONFIG=3Ddefconfig TORTURE_BOOT_IMAGE=3D"" TORTURE_BUILDONLY=3D -TORTURE_INITRD=3D"$KVM/initrd"; export TORTURE_INITRD +TORTURE_INITRD=3D"$RCUTORTURE/initrd"; export TORTURE_INITRD TORTURE_KCONFIG_ARG=3D"" TORTURE_KCONFIG_GDB_ARG=3D"" TORTURE_BOOT_GDB_ARG=3D"" @@ -262,7 +262,7 @@ else exit 1 fi =20 -CONFIGFRAG=3D${KVM}/configs/${TORTURE_SUITE}; export CONFIGFRAG +CONFIGFRAG=3D${RCUTORTURE}/configs/${TORTURE_SUITE}; export CONFIGFRAG =20 defaultconfigs=3D"`tr '\012' ' ' < $CONFIGFRAG/CFLIST`" if test -z "$configs" @@ -272,7 +272,7 @@ fi =20 if test -z "$resdir" then - resdir=3D$KVM/res + resdir=3D$RCUTORTURE/res fi =20 # Create a file of test-name/#cpus pairs, sorted by decreasing #cpus. @@ -386,7 +386,7 @@ END { # Generate a script to execute the tests in appropriate batches. cat << ___EOF___ > $T/script CONFIGFRAG=3D"$CONFIGFRAG"; export CONFIGFRAG -KVM=3D"$KVM"; export KVM +RCUTORTURE=3D"$RCUTORTURE"; export RCUTORTURE PATH=3D"$PATH"; export PATH TORTURE_ALLOTED_CPUS=3D"$TORTURE_ALLOTED_CPUS"; export TORTURE_ALLOTED_CPUS TORTURE_BOOT_IMAGE=3D"$TORTURE_BOOT_IMAGE"; export TORTURE_BOOT_IMAGE @@ -569,7 +569,7 @@ ___EOF___ awk < $T/cfgcpu.pack \ -v TORTURE_BUILDONLY=3D"$TORTURE_BUILDONLY" \ -v CONFIGDIR=3D"$CONFIGFRAG/" \ - -v KVM=3D"$KVM" \ + -v RCUTORTURE=3D"$RCUTORTURE" \ -v ncpus=3D$cpus \ -v jitter=3D"$jitter" \ -v rd=3D$resdir/$ds/ \ diff --git a/tools/testing/selftests/rcutorture/bin/torture.sh b/tools/test= ing/selftests/rcutorture/bin/torture.sh index d1cb60085d8f2..e00e60efb2310 100755 --- a/tools/testing/selftests/rcutorture/bin/torture.sh +++ b/tools/testing/selftests/rcutorture/bin/torture.sh @@ -13,8 +13,8 @@ scriptname=3D$0 args=3D"$*" =20 -KVM=3D"`pwd`/tools/testing/selftests/rcutorture"; export KVM -PATH=3D${KVM}/bin:$PATH; export PATH +RCUTORTURE=3D"`pwd`/tools/testing/selftests/rcutorture"; export RCUTORTURE +PATH=3D${RCUTORTURE}/bin:$PATH; export PATH . functions.sh =20 TORTURE_ALLOTED_CPUS=3D"`identify_qemu_vcpus`" --=20 2.31.1.189.g2e36527f23 From nobody Mon Jun 29 17:36:57 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1ED20C433EF for ; Fri, 4 Feb 2022 23:56:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378678AbiBDX4l (ORCPT ); Fri, 4 Feb 2022 18:56:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378496AbiBDX4I (ORCPT ); Fri, 4 Feb 2022 18:56:08 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3E0EDB788CD; Fri, 4 Feb 2022 15:56:05 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6F978B8397C; Fri, 4 Feb 2022 23:56:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CEDF8C340FB; Fri, 4 Feb 2022 23:56:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644018962; bh=5LHH/udgFWNwegl1ai3PJBMHlKqUN4SkpOmVzHlGIQE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gBVhtPaP0NXHORAbnAmOOAJnlOZCs1CQ1VXCxLIXYcdMdXuW67+Z/NT90qEgdhTHY JGKXFlSs4Cj/Rj5IjkrIpPy9Rhfvur0xHnmY8lS5mS0sR6dsZhJlJbeaRaBu1vHS4t cXyX5nt01Ohy5KEx8nFgTSkdOduCdH6qjhOYark0Q9qaZr1mbXLITlsSWzonX9f82H twrtuQDNeGvtnre3eiaL+OlfJ2j3FA6lamprPookVOnVhyCCh0NeoIvIush6I563cL 71NLkXCzXhHp7BCBoom8QlEIogBuSL2kOsM9FrlDuwpSIsR+8bg7VPVOsn6ntt+U6T xknyJNZh/G2+A== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 676995C0DB8; Fri, 4 Feb 2022 15:56:02 -0800 (PST) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@fb.com, rostedt@goodmis.org, "Paul E. McKenney" Subject: [PATCH rcu 11/13] torture: Make torture.sh help message match reality Date: Fri, 4 Feb 2022 15:55:59 -0800 Message-Id: <20220204235601.3438-11-paulmck@kernel.org> X-Mailer: git-send-email 2.31.1.189.g2e36527f23 In-Reply-To: <20220204235558.GA3221@paulmck-ThinkPad-P17-Gen-1> References: <20220204235558.GA3221@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" This commit fixes a couple of typos: s/--doall/--do-all/ and s/--doallmodconfig/--do-allmodconfig/. Signed-off-by: Paul E. McKenney --- tools/testing/selftests/rcutorture/bin/torture.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/rcutorture/bin/torture.sh b/tools/test= ing/selftests/rcutorture/bin/torture.sh index e00e60efb2310..bfe09e2829c8d 100755 --- a/tools/testing/selftests/rcutorture/bin/torture.sh +++ b/tools/testing/selftests/rcutorture/bin/torture.sh @@ -71,8 +71,8 @@ usage () { echo " --configs-rcutorture \"config-file list w/ repeat factor (3*= TINY01)\"" echo " --configs-locktorture \"config-file list w/ repeat factor (1= 0*LOCK01)\"" echo " --configs-scftorture \"config-file list w/ repeat factor (2*= CFLIST)\"" - echo " --doall" - echo " --doallmodconfig / --do-no-allmodconfig" + echo " --do-all" + echo " --do-allmodconfig / --do-no-allmodconfig" echo " --do-clocksourcewd / --do-no-clocksourcewd" echo " --do-kasan / --do-no-kasan" echo " --do-kcsan / --do-no-kcsan" --=20 2.31.1.189.g2e36527f23 From nobody Mon Jun 29 17:36:57 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5CBE4C433F5 for ; Fri, 4 Feb 2022 23:56:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378696AbiBDX4z (ORCPT ); Fri, 4 Feb 2022 18:56:55 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:46814 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378460AbiBDX4F (ORCPT ); Fri, 4 Feb 2022 18:56:05 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6699BB8397B; Fri, 4 Feb 2022 23:56:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB08CC34100; Fri, 4 Feb 2022 23:56:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644018962; bh=8MfaDQZPX686Fl4ENxwJRECweixHv3A6rHs+5n3xEhs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eieWZxcVwDATKv6gAhhVvQ03P6KI6pEyZpSjhf0kH9gjQSIv/kX0+X6tsf8wfL7Ka BK06f3E36JhmP7ap+fpmEeNSLnQT1tOlaB0pPV1OZBAI3HuVsDuR6PSwptlhDKiK40 KgVgrQ4+V64E4G9vUcupIirxWsXoDAgJ9Mpj6ooAHyn1Qe/g8ZzW5uGuW1m4WvD5E+ 0bWa4u0sIqftXS3bE+Bq4oAxdbKqrP18QvnLRzkz+dJkoJnPnxpo2kad4k8qN81mVZ Vc0wLbre73ENVh9iNz+Fchw6LivHRbEaQvC2Czuft5/0urFAsn3aypesNDCvxbSoRc FY0L7lb3fJqaQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 691425C0E5E; Fri, 4 Feb 2022 15:56:02 -0800 (PST) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@fb.com, rostedt@goodmis.org, "Paul E. McKenney" Subject: [PATCH rcu 12/13] rcutorture: Test SRCU size transitions Date: Fri, 4 Feb 2022 15:56:00 -0800 Message-Id: <20220204235601.3438-12-paulmck@kernel.org> X-Mailer: git-send-email 2.31.1.189.g2e36527f23 In-Reply-To: <20220204235558.GA3221@paulmck-ThinkPad-P17-Gen-1> References: <20220204235558.GA3221@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Thie commit adds kernel boot parameters to the SRCU-N and SRCU-P rcutorture scenarios to cause SRCU-N to test contention-based resizing and SRCU-P to test init_srcu_struct()-time resizing. Note that this also tests never-resizing because the contention-based resizing normally takes some minutes to make the shift. Signed-off-by: Paul E. McKenney --- tools/testing/selftests/rcutorture/configs/rcu/SRCU-N.boot | 1 + tools/testing/selftests/rcutorture/configs/rcu/SRCU-P.boot | 2 ++ 2 files changed, 3 insertions(+) diff --git a/tools/testing/selftests/rcutorture/configs/rcu/SRCU-N.boot b/t= ools/testing/selftests/rcutorture/configs/rcu/SRCU-N.boot index 238bfe3bd0ccc..ce0694fd9b929 100644 --- a/tools/testing/selftests/rcutorture/configs/rcu/SRCU-N.boot +++ b/tools/testing/selftests/rcutorture/configs/rcu/SRCU-N.boot @@ -1 +1,2 @@ rcutorture.torture_type=3Dsrcu +rcutorture.fwd_progress=3D3 diff --git a/tools/testing/selftests/rcutorture/configs/rcu/SRCU-P.boot b/t= ools/testing/selftests/rcutorture/configs/rcu/SRCU-P.boot index ce48c7b826734..2db39f298d182 100644 --- a/tools/testing/selftests/rcutorture/configs/rcu/SRCU-P.boot +++ b/tools/testing/selftests/rcutorture/configs/rcu/SRCU-P.boot @@ -1,2 +1,4 @@ rcutorture.torture_type=3Dsrcud rcupdate.rcu_self_test=3D1 +rcutorture.fwd_progress=3D3 +srcutree.big_cpu_lim=3D5 --=20 2.31.1.189.g2e36527f23 From nobody Mon Jun 29 17:36:57 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B1E21C433EF for ; Fri, 4 Feb 2022 23:56:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378555AbiBDX4e (ORCPT ); Fri, 4 Feb 2022 18:56:34 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:57320 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359219AbiBDX4G (ORCPT ); Fri, 4 Feb 2022 18:56:06 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D018661CE6; Fri, 4 Feb 2022 23:56:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0233C340FF; Fri, 4 Feb 2022 23:56:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644018962; bh=shurJ2a87z3WWsM/OwHqpKalILP1DiRVFwqVYqO+z1Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jQWhG1vt2wow6LmszqC6l+DMqxJjeHhFe4swKqRDCqFsTWHF0/fpZXKnJGwrM9Ms+ BbkmhSmYCq2kP4IeJ/JEMTHgHPn+1h2mwAnaCj1hgDVN3xAL8V7su6s0gdaSVKmiZS khDpF8qWB+67Re4GaPzYTAdJE1AHDjbTzj1QtkKH934poBmZhoMkSb4Rm4DiGmEqBf RgGsLuqWiF8uqzfZh13dZXRtV/JtW1xRZEDaMKxOzwR5LqNMz+9lyBjRK4B1IeEi1U q/1sX5CuitHUGlfcCMkcT3ItZ6vvo5/KHS4lUVCsF1Q0ER578mlOaXrYC+RGOManHx MnDbH0U8n2Vfg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 6ABA45C0F91; Fri, 4 Feb 2022 15:56:02 -0800 (PST) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@fb.com, rostedt@goodmis.org, "Paul E. McKenney" Subject: [PATCH rcu 13/13] rcutorture: Provide non-power-of-two Tasks RCU scenarios Date: Fri, 4 Feb 2022 15:56:01 -0800 Message-Id: <20220204235601.3438-13-paulmck@kernel.org> X-Mailer: git-send-email 2.31.1.189.g2e36527f23 In-Reply-To: <20220204235558.GA3221@paulmck-ThinkPad-P17-Gen-1> References: <20220204235558.GA3221@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" This commit adjusts RUDE01 to 3 CPUs and TRACE01 to 5 CPUs in order to test Tasks RCU's ability to handle non-power-of-two numbers of CPUs. Signed-off-by: Paul E. McKenney --- tools/testing/selftests/rcutorture/configs/rcu/RUDE01 | 2 +- tools/testing/selftests/rcutorture/configs/rcu/TRACE01 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/rcutorture/configs/rcu/RUDE01 b/tools/= testing/selftests/rcutorture/configs/rcu/RUDE01 index 3ca112444ce77..7093422050f66 100644 --- a/tools/testing/selftests/rcutorture/configs/rcu/RUDE01 +++ b/tools/testing/selftests/rcutorture/configs/rcu/RUDE01 @@ -1,5 +1,5 @@ CONFIG_SMP=3Dy -CONFIG_NR_CPUS=3D4 +CONFIG_NR_CPUS=3D3 CONFIG_HOTPLUG_CPU=3Dy CONFIG_PREEMPT_NONE=3Dn CONFIG_PREEMPT_VOLUNTARY=3Dn diff --git a/tools/testing/selftests/rcutorture/configs/rcu/TRACE01 b/tools= /testing/selftests/rcutorture/configs/rcu/TRACE01 index 34c8ff5a12f20..e4d74e5fc1d09 100644 --- a/tools/testing/selftests/rcutorture/configs/rcu/TRACE01 +++ b/tools/testing/selftests/rcutorture/configs/rcu/TRACE01 @@ -1,5 +1,5 @@ CONFIG_SMP=3Dy -CONFIG_NR_CPUS=3D4 +CONFIG_NR_CPUS=3D5 CONFIG_HOTPLUG_CPU=3Dy CONFIG_PREEMPT_NONE=3Dy CONFIG_PREEMPT_VOLUNTARY=3Dn --=20 2.31.1.189.g2e36527f23