From nobody Wed Nov 27 00:29:39 2024 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D089B1F76CB; Tue, 15 Oct 2024 16:11:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729008674; cv=none; b=XIV49JsGuDjGWPtVMFTma2ZB+yy5YKcqU89iE95xJbVyr1q+rrYOYNMf8QUwqEJ+nsvPsHN+znZO+OHY34GGekyM0Hwn0v6XRCcUe6v/X2qoDFgvB8whgwX3k7XsFhVE25HlYmHQy1YMSKBptFTjs+weaLy+ojWBrBZ7XA1T4Lk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729008674; c=relaxed/simple; bh=aRxkj03S73hF0jV8gryZajtKN0A7DA6aTKR8Jq/1sgk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=qlXi+Th+NM4k5p+lNJ/F5FbnL0NX5UpWawyc/OEZrwA50kJdJDwWnLFgZQChXdg6pHVSvErELAkGa2GjAfBzjrPZNjl2J79y6+fwPj4CmaLVxP5Ye5HNdtTaGAmIvjz2S86RUt6/qs95/TefNn6ry9XGnI6vB3ZQs+Bk2NucXx4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=A9aengoc; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="A9aengoc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8FEEBC4CEEA; Tue, 15 Oct 2024 16:11:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1729008674; bh=aRxkj03S73hF0jV8gryZajtKN0A7DA6aTKR8Jq/1sgk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A9aengocjrOEp06JhtZ7EDKxhhEbbEJWPJt5kIWlCOu6SeFdTfUT68yFtT9Bm1WSm DWqw/2zF4G4HaT/JcV/VDfWWQIjRZINlsFlflqzlE4k3dNq9ELaF6bS5siJXKvXSXJ AxQ/jXkMamJAHktKdBcFFFEVoUYElKshmFe9OAPwdXQ78ypcMGB6y6mkxsdc9Utq3T swlx3XYeVEzwkxV6JdxTARGjDfTKJXlKzyk2xPSbeBbWnrW9KpFCfkK/PMd6iHIqDe 5wsmH/pi28YEEK8WrCGrQgWdS4l3PhqPWrWa5gjiT+eByI7KanmBYrazv1QSmb8wT4 6eQskVSS087Qg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id D4755CE1FD0; Tue, 15 Oct 2024 09:11:13 -0700 (PDT) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, "Paul E. McKenney" , Alexei Starovoitov , Andrii Nakryiko , Peter Zijlstra , Kent Overstreet , bpf@vger.kernel.org Subject: [PATCH rcu 13/15] rcutorture: Add light-weight SRCU scenario Date: Tue, 15 Oct 2024 09:11:10 -0700 Message-Id: <20241015161112.442758-13-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This commit adds an rcutorture scenario that tests light-weight SRCU readers. While in the area, it adjusts the size of the TREE10 scenario. Signed-off-by: Paul E. McKenney Cc: Alexei Starovoitov Cc: Andrii Nakryiko Cc: Peter Zijlstra Cc: Kent Overstreet Cc: --- tools/testing/selftests/rcutorture/configs/rcu/CFLIST | 1 + tools/testing/selftests/rcutorture/configs/rcu/SRCU-L | 10 ++++++++++ .../selftests/rcutorture/configs/rcu/SRCU-L.boot | 3 +++ .../selftests/rcutorture/configs/rcu/SRCU-N.boot | 1 + tools/testing/selftests/rcutorture/configs/rcu/TREE10 | 2 +- 5 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 tools/testing/selftests/rcutorture/configs/rcu/SRCU-L create mode 100644 tools/testing/selftests/rcutorture/configs/rcu/SRCU-L.b= oot diff --git a/tools/testing/selftests/rcutorture/configs/rcu/CFLIST b/tools/= testing/selftests/rcutorture/configs/rcu/CFLIST index 98b6175e5aa09..45f572570a8c3 100644 --- a/tools/testing/selftests/rcutorture/configs/rcu/CFLIST +++ b/tools/testing/selftests/rcutorture/configs/rcu/CFLIST @@ -5,6 +5,7 @@ TREE04 TREE05 TREE07 TREE09 +SRCU-L SRCU-N SRCU-P SRCU-T diff --git a/tools/testing/selftests/rcutorture/configs/rcu/SRCU-L b/tools/= testing/selftests/rcutorture/configs/rcu/SRCU-L new file mode 100644 index 0000000000000..3b4fa8dbef8a9 --- /dev/null +++ b/tools/testing/selftests/rcutorture/configs/rcu/SRCU-L @@ -0,0 +1,10 @@ +CONFIG_RCU_TRACE=3Dn +CONFIG_SMP=3Dy +CONFIG_NR_CPUS=3D6 +CONFIG_HOTPLUG_CPU=3Dy +CONFIG_PREEMPT_NONE=3Dy +CONFIG_PREEMPT_VOLUNTARY=3Dn +CONFIG_PREEMPT=3Dn +#CHECK#CONFIG_RCU_EXPERT=3Dn +CONFIG_KPROBES=3Dn +CONFIG_FTRACE=3Dn diff --git a/tools/testing/selftests/rcutorture/configs/rcu/SRCU-L.boot b/t= ools/testing/selftests/rcutorture/configs/rcu/SRCU-L.boot new file mode 100644 index 0000000000000..0207b3138c5be --- /dev/null +++ b/tools/testing/selftests/rcutorture/configs/rcu/SRCU-L.boot @@ -0,0 +1,3 @@ +rcutorture.torture_type=3Dsrcu +rcutorture.reader_flavor=3D0x4 +rcutorture.fwd_progress=3D3 diff --git a/tools/testing/selftests/rcutorture/configs/rcu/SRCU-N.boot b/t= ools/testing/selftests/rcutorture/configs/rcu/SRCU-N.boot index ce0694fd9b929..b54cf87dc1103 100644 --- a/tools/testing/selftests/rcutorture/configs/rcu/SRCU-N.boot +++ b/tools/testing/selftests/rcutorture/configs/rcu/SRCU-N.boot @@ -1,2 +1,3 @@ rcutorture.torture_type=3Dsrcu +rcutorture.reader_flavor=3D0x2 rcutorture.fwd_progress=3D3 diff --git a/tools/testing/selftests/rcutorture/configs/rcu/TREE10 b/tools/= testing/selftests/rcutorture/configs/rcu/TREE10 index a323d8948b7cf..759ee51d3ddc6 100644 --- a/tools/testing/selftests/rcutorture/configs/rcu/TREE10 +++ b/tools/testing/selftests/rcutorture/configs/rcu/TREE10 @@ -1,5 +1,5 @@ CONFIG_SMP=3Dy -CONFIG_NR_CPUS=3D56 +CONFIG_NR_CPUS=3D74 CONFIG_PREEMPT_NONE=3Dy CONFIG_PREEMPT_VOLUNTARY=3Dn CONFIG_PREEMPT=3Dn --=20 2.40.1