summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2016-04-21 02:18:41 +0200
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2016-06-15 01:02:16 +0200
commitd95f5ba90fa6043a366958897fdef705af968b70 (patch)
treed89610a0d7c9a750f250ec62424fe768c4328728 /include
parenttorture: Forgive lengthy trace dumps and preemption (diff)
downloadlinux-d95f5ba90fa6043a366958897fdef705af968b70.tar.xz
linux-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')
-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);