diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-01-29 10:30:50 -0500 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-02-23 12:01:02 -0500 |
commit | c2884de38e01134ae040d55aa5644049d1bb850f (patch) | |
tree | c30e47a8bd1e2fc647bf19965102dac421a959e1 /kernel/rcu | |
parent | 5ccf60f23d33afd53568cff4f3f421f2ca624401 (diff) |
rcutorture: Abstract TOROUT_STRING() and friends
These diagnostic macros are not confined to torturing RCU, so this commit
makes them available to other torture tests. Also removed the do-while
from TOROUT_STRING() in response to checkpatch complaints.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu')
-rw-r--r-- | kernel/rcu/rcutorture.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index 34a75b1170e8..86fd8c11257b 100644 --- a/kernel/rcu/rcutorture.c +++ b/kernel/rcu/rcutorture.c | |||
@@ -97,14 +97,6 @@ static char *torture_type = "rcu"; | |||
97 | module_param(torture_type, charp, 0444); | 97 | module_param(torture_type, charp, 0444); |
98 | MODULE_PARM_DESC(torture_type, "Type of RCU to torture (rcu, rcu_bh, ...)"); | 98 | MODULE_PARM_DESC(torture_type, "Type of RCU to torture (rcu, rcu_bh, ...)"); |
99 | 99 | ||
100 | #define TORTURE_FLAG "-torture:" | ||
101 | #define TOROUT_STRING(s) \ | ||
102 | do { pr_alert("%s" TORTURE_FLAG s "\n", torture_type); } while (0) | ||
103 | #define VERBOSE_TOROUT_STRING(s) \ | ||
104 | do { if (verbose) pr_alert("%s" TORTURE_FLAG s "\n", torture_type); } while (0) | ||
105 | #define VERBOSE_TOROUT_ERRSTRING(s) \ | ||
106 | do { if (verbose) pr_alert("%s" TORTURE_FLAG "!!! " s "\n", torture_type); } while (0) | ||
107 | |||
108 | static int nrealreaders; | 100 | static int nrealreaders; |
109 | static struct task_struct *writer_task; | 101 | static struct task_struct *writer_task; |
110 | static struct task_struct **fakewriter_tasks; | 102 | static struct task_struct **fakewriter_tasks; |