summaryrefslogtreecommitdiffstats
path: root/include/linux/torture.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-01-31 14:52:13 -0800
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-02-23 09:03:18 -0800
commite991dbc0770b01b7dc7d6d7660442e83ebd11828 (patch)
treee95081adbe3c4e85daeae774a9736af2fcfc1f46 /include/linux/torture.h
parent57a2fe90fcdaa812ac1aa6c91ba0e591c30f461a (diff)
downloadop-kernel-dev-e991dbc0770b01b7dc7d6d7660442e83ebd11828.zip
op-kernel-dev-e991dbc0770b01b7dc7d6d7660442e83ebd11828.tar.gz
rcutorture: Abstract torture_shutdown()
Because auto-shutdown of torture testing is not specific to RCU, this commit moves the auto-shutdown function 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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/torture.h b/include/linux/torture.h
index 203f127..c79c41d 100644
--- a/include/linux/torture.h
+++ b/include/linux/torture.h
@@ -72,8 +72,10 @@ unsigned long torture_random(struct torture_random_state *trsp);
void torture_shuffle_task_register(struct task_struct *tp);
int torture_shuffle_init(long shuffint);
-/* Shutdown task absorption, for when the tasks cannot safely be killed. */
+/* Test auto-shutdown handling. */
void torture_shutdown_absorb(const char *title);
+int torture_shutdown_init(int ssecs, void (*cleanup)(void));
+void torture_shutdown_cleanup(void);
/* Task stuttering, which forces load/no-load transitions. */
void stutter_wait(const char *title);
OpenPOWER on IntegriCloud