Skip to content

Commit 930d4e1

Browse files
paulmckrcuFrederic Weisbecker
authored andcommitted
rcutorture: Add light-weight SRCU scenario
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 <[email protected]> Cc: Alexei Starovoitov <[email protected]> Cc: Andrii Nakryiko <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Kent Overstreet <[email protected]> Cc: <[email protected]> Reviewed-by: Neeraj Upadhyay <[email protected]> Signed-off-by: Frederic Weisbecker <[email protected]>
1 parent 43349fc commit 930d4e1

File tree

5 files changed

+16
-1
lines changed

5 files changed

+16
-1
lines changed

tools/testing/selftests/rcutorture/configs/rcu/CFLIST

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ TREE04
55
TREE05
66
TREE07
77
TREE09
8+
SRCU-L
89
SRCU-N
910
SRCU-P
1011
SRCU-T
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
CONFIG_RCU_TRACE=n
2+
CONFIG_SMP=y
3+
CONFIG_NR_CPUS=6
4+
CONFIG_HOTPLUG_CPU=y
5+
CONFIG_PREEMPT_NONE=y
6+
CONFIG_PREEMPT_VOLUNTARY=n
7+
CONFIG_PREEMPT=n
8+
#CHECK#CONFIG_RCU_EXPERT=n
9+
CONFIG_KPROBES=n
10+
CONFIG_FTRACE=n
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
rcutorture.torture_type=srcu
2+
rcutorture.reader_flavor=0x4
3+
rcutorture.fwd_progress=3
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
rcutorture.torture_type=srcu
2+
rcutorture.reader_flavor=0x2
23
rcutorture.fwd_progress=3

tools/testing/selftests/rcutorture/configs/rcu/TREE10

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CONFIG_SMP=y
2-
CONFIG_NR_CPUS=56
2+
CONFIG_NR_CPUS=74
33
CONFIG_PREEMPT_NONE=y
44
CONFIG_PREEMPT_VOLUNTARY=n
55
CONFIG_PREEMPT=n

0 commit comments

Comments
 (0)