diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2013-06-12 18:12:21 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2013-08-20 14:38:41 -0400 |
commit | 2ec1f2d98752293f4831ce7d7bdbc3fc36bdd114 (patch) | |
tree | c1dc25a48d0bfac1381879587986578bc5100d0b /Documentation/RCU | |
parent | d2818df168b2c80c7449e47bd349094c308fa323 (diff) |
rcu: Increase rcutorture test coverage
Currently, rcutorture has separate torture_types to test synchronous,
asynchronous, and expedited grace-period primitives. This has
two disadvantages: (1) Three times the number of runs to cover the
combinations and (2) Little testing of concurrent combinations of the
three options. This commit therefore adds a pair of module parameters
that control normal and expedited state, with the default being both
types, randomly selected, by the fakewriter processes, thus reducing
source-code size and increasing test coverage. In addtion, the writer
task switches between asynchronous-normal and expedited grace-period
primitives driven by the same pair of module parameters.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'Documentation/RCU')
-rw-r--r-- | Documentation/RCU/torture.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/RCU/torture.txt b/Documentation/RCU/torture.txt index d8a502387397..dac02a6219b1 100644 --- a/Documentation/RCU/torture.txt +++ b/Documentation/RCU/torture.txt | |||
@@ -42,6 +42,16 @@ fqs_holdoff Holdoff time (in microseconds) between consecutive calls | |||
42 | fqs_stutter Wait time (in seconds) between consecutive bursts | 42 | fqs_stutter Wait time (in seconds) between consecutive bursts |
43 | of calls to force_quiescent_state(). | 43 | of calls to force_quiescent_state(). |
44 | 44 | ||
45 | gp_normal Make the fake writers use normal synchronous grace-period | ||
46 | primitives. | ||
47 | |||
48 | gp_exp Make the fake writers use expedited synchronous grace-period | ||
49 | primitives. If both gp_normal and gp_exp are set, or | ||
50 | if neither gp_normal nor gp_exp are set, then randomly | ||
51 | choose the primitive so that about 50% are normal and | ||
52 | 50% expedited. By default, neither are set, which | ||
53 | gives best overall test coverage. | ||
54 | |||
45 | irqreader Says to invoke RCU readers from irq level. This is currently | 55 | irqreader Says to invoke RCU readers from irq level. This is currently |
46 | done via timers. Defaults to "1" for variants of RCU that | 56 | done via timers. Defaults to "1" for variants of RCU that |
47 | permit this. (Or, more accurately, variants of RCU that do | 57 | permit this. (Or, more accurately, variants of RCU that do |