summaryrefslogtreecommitdiff
path: root/include/linux/torture.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-01-31 23:57:43 +0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-02-23 21:02:54 +0400
commit628edaa5062282b6e3d76c886fd2cbccae5cb87b (patch)
treea21fe0f1b950f18859e8808b93fa4de57d05ffdd /include/linux/torture.h
parentfac480efcba6a9f0aea91947f151fd569538b0af (diff)
downloadlinux-628edaa5062282b6e3d76c886fd2cbccae5cb87b.tar.xz
rcutorture: Abstract stutter_wait()
Because stuttering the test load (stopping and restarting it) is useful for non-RCU testing, this commit moves the load-stuttering functionality to kernel/torture.c. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'include/linux/torture.h')
-rw-r--r--include/linux/torture.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/torture.h b/include/linux/torture.h
index 0259db38bfb0..203f127d9ddf 100644
--- a/include/linux/torture.h
+++ b/include/linux/torture.h
@@ -75,8 +75,13 @@ int torture_shuffle_init(long shuffint);
/* Shutdown task absorption, for when the tasks cannot safely be killed. */
void torture_shutdown_absorb(const char *title);
+/* Task stuttering, which forces load/no-load transitions. */
+void stutter_wait(const char *title);
+int torture_stutter_init(int s);
+void torture_stutter_cleanup(void);
+
/* Initialization and cleanup. */
-void torture_init_begin(char *ttype, bool v);
+void torture_init_begin(char *ttype, bool v, int *runnable);
void torture_init_end(void);
bool torture_cleanup(void);
bool torture_must_stop(void);