]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rcutorture: Add light-weight SRCU scenario
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 15 Oct 2024 16:11:10 +0000 (09:11 -0700)
committerFrederic Weisbecker <frederic@kernel.org>
Tue, 12 Nov 2024 14:44:53 +0000 (15:44 +0100)
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 <paulmck@kernel.org>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Andrii Nakryiko <andrii@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Kent Overstreet <kent.overstreet@linux.dev>
Cc: <bpf@vger.kernel.org>
Reviewed-by: Neeraj Upadhyay <Neeraj.Upadhyay@amd.com>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
tools/testing/selftests/rcutorture/configs/rcu/CFLIST
tools/testing/selftests/rcutorture/configs/rcu/SRCU-L [new file with mode: 0644]
tools/testing/selftests/rcutorture/configs/rcu/SRCU-L.boot [new file with mode: 0644]
tools/testing/selftests/rcutorture/configs/rcu/SRCU-N.boot
tools/testing/selftests/rcutorture/configs/rcu/TREE10

index 98b6175e5aa09feeb0be3ec87aa6f74deae6a720..45f572570a8c3c84dc3b07f2ce764fd800c78e5f 100644 (file)
@@ -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 (file)
index 0000000..3b4fa8d
--- /dev/null
@@ -0,0 +1,10 @@
+CONFIG_RCU_TRACE=n
+CONFIG_SMP=y
+CONFIG_NR_CPUS=6
+CONFIG_HOTPLUG_CPU=y
+CONFIG_PREEMPT_NONE=y
+CONFIG_PREEMPT_VOLUNTARY=n
+CONFIG_PREEMPT=n
+#CHECK#CONFIG_RCU_EXPERT=n
+CONFIG_KPROBES=n
+CONFIG_FTRACE=n
diff --git a/tools/testing/selftests/rcutorture/configs/rcu/SRCU-L.boot b/tools/testing/selftests/rcutorture/configs/rcu/SRCU-L.boot
new file mode 100644 (file)
index 0000000..0207b31
--- /dev/null
@@ -0,0 +1,3 @@
+rcutorture.torture_type=srcu
+rcutorture.reader_flavor=0x4
+rcutorture.fwd_progress=3
index ce0694fd9b9297d6c5a1fc576efed55996324d16..b54cf87dc11039c5ac08f213e00040270d521c75 100644 (file)
@@ -1,2 +1,3 @@
 rcutorture.torture_type=srcu
+rcutorture.reader_flavor=0x2
 rcutorture.fwd_progress=3
index a323d8948b7cf13bcf5fbf489995f308f0369256..759ee51d3ddc60375a9212a0a41bf5aa7bf12d6c 100644 (file)
@@ -1,5 +1,5 @@
 CONFIG_SMP=y
-CONFIG_NR_CPUS=56
+CONFIG_NR_CPUS=74
 CONFIG_PREEMPT_NONE=y
 CONFIG_PREEMPT_VOLUNTARY=n
 CONFIG_PREEMPT=n