summaryrefslogtreecommitdiff
path: root/include/linux/torture.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2016-04-20 17:18:41 -0700
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2016-06-14 16:02:16 -0700
commitd95f5ba90fa6043a366958897fdef705af968b70 (patch)
treed89610a0d7c9a750f250ec62424fe768c4328728 /include/linux/torture.h
parent6e8c66c867f919128855b77623ca9917770f1894 (diff)
downloadlwn-d95f5ba90fa6043a366958897fdef705af968b70.tar.gz
lwn-d95f5ba90fa6043a366958897fdef705af968b70.zip
torture: Break online and offline functions out of torture_onoff()
This commit breaks torture_online() and torture_offline() out of torture_onoff() in preparation for allowing waketorture finer-grained control of its CPU-hotplug workload. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'include/linux/torture.h')
-rw-r--r--include/linux/torture.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/torture.h b/include/linux/torture.h
index 7759fc3c622d..6685a73736a2 100644
--- a/include/linux/torture.h
+++ b/include/linux/torture.h
@@ -50,6 +50,10 @@
do { if (verbose) pr_alert("%s" TORTURE_FLAG "!!! %s\n", torture_type, s); } while (0)
/* Definitions for online/offline exerciser. */
+bool torture_offline(int cpu, long *n_onl_attempts, long *n_onl_successes,
+ unsigned long *sum_offl, int *min_onl, int *max_onl);
+bool torture_online(int cpu, long *n_onl_attempts, long *n_onl_successes,
+ unsigned long *sum_onl, int *min_onl, int *max_onl);
int torture_onoff_init(long ooholdoff, long oointerval);
void torture_onoff_stats(void);
bool torture_onoff_failures(void);