Commit 14562d1c authored by Paul E. McKenney's avatar Paul E. McKenney

rcutorture: Announce task creation

A few "stealth-start rcutorture kthreads" have accumulated over the years,
so this commit adds console-log announcements (but only if the torture
tests are running verbose).
Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
parent 01025ebc
...@@ -1120,6 +1120,7 @@ static int __init rcu_torture_stall_init(void) ...@@ -1120,6 +1120,7 @@ static int __init rcu_torture_stall_init(void)
if (stall_cpu <= 0) if (stall_cpu <= 0)
return 0; return 0;
VERBOSE_TOROUT_STRING("Creating rcu_torture_stall task");
stall_task = kthread_run(rcu_torture_stall, NULL, "rcu_torture_stall"); stall_task = kthread_run(rcu_torture_stall, NULL, "rcu_torture_stall");
if (IS_ERR(stall_task)) { if (IS_ERR(stall_task)) {
ret = PTR_ERR(stall_task); ret = PTR_ERR(stall_task);
...@@ -1242,6 +1243,7 @@ static int rcu_torture_barrier_init(void) ...@@ -1242,6 +1243,7 @@ static int rcu_torture_barrier_init(void)
return -ENOMEM; return -ENOMEM;
for (i = 0; i < n_barrier_cbs; i++) { for (i = 0; i < n_barrier_cbs; i++) {
init_waitqueue_head(&barrier_cbs_wq[i]); init_waitqueue_head(&barrier_cbs_wq[i]);
VERBOSE_TOROUT_STRING("Creating rcu_torture_barrier_cbs task");
barrier_cbs_tasks[i] = kthread_run(rcu_torture_barrier_cbs, barrier_cbs_tasks[i] = kthread_run(rcu_torture_barrier_cbs,
(void *)(long)i, (void *)(long)i,
"rcu_torture_barrier_cbs"); "rcu_torture_barrier_cbs");
...@@ -1253,6 +1255,7 @@ static int rcu_torture_barrier_init(void) ...@@ -1253,6 +1255,7 @@ static int rcu_torture_barrier_init(void)
} }
torture_shuffle_task_register(barrier_cbs_tasks[i]); torture_shuffle_task_register(barrier_cbs_tasks[i]);
} }
VERBOSE_TOROUT_STRING("Creating rcu_torture_barrier task");
barrier_task = kthread_run(rcu_torture_barrier, NULL, barrier_task = kthread_run(rcu_torture_barrier, NULL,
"rcu_torture_barrier"); "rcu_torture_barrier");
if (IS_ERR(barrier_task)) { if (IS_ERR(barrier_task)) {
...@@ -1606,6 +1609,7 @@ rcu_torture_init(void) ...@@ -1606,6 +1609,7 @@ rcu_torture_init(void)
fqs_duration = 0; fqs_duration = 0;
if (fqs_duration) { if (fqs_duration) {
/* Create the fqs thread */ /* Create the fqs thread */
VERBOSE_TOROUT_STRING("Creating rcu_torture_fqs task");
fqs_task = kthread_run(rcu_torture_fqs, NULL, fqs_task = kthread_run(rcu_torture_fqs, NULL,
"rcu_torture_fqs"); "rcu_torture_fqs");
if (IS_ERR(fqs_task)) { if (IS_ERR(fqs_task)) {
......
...@@ -187,6 +187,7 @@ int torture_onoff_init(long ooholdoff, long oointerval) ...@@ -187,6 +187,7 @@ int torture_onoff_init(long ooholdoff, long oointerval)
onoff_interval = oointerval; onoff_interval = oointerval;
if (onoff_interval <= 0) if (onoff_interval <= 0)
return 0; return 0;
VERBOSE_TOROUT_STRING("Creating torture_onoff task");
onoff_task = kthread_run(torture_onoff, NULL, "torture_onoff"); onoff_task = kthread_run(torture_onoff, NULL, "torture_onoff");
if (IS_ERR(onoff_task)) { if (IS_ERR(onoff_task)) {
ret = PTR_ERR(onoff_task); ret = PTR_ERR(onoff_task);
...@@ -390,6 +391,7 @@ int torture_shuffle_init(long shuffint) ...@@ -390,6 +391,7 @@ int torture_shuffle_init(long shuffint)
} }
/* Create the shuffler thread */ /* Create the shuffler thread */
VERBOSE_TOROUT_STRING("Creating torture_shuffle task");
shuffler_task = kthread_run(torture_shuffle, NULL, "torture_shuffle"); shuffler_task = kthread_run(torture_shuffle, NULL, "torture_shuffle");
if (IS_ERR(shuffler_task)) { if (IS_ERR(shuffler_task)) {
ret = PTR_ERR(shuffler_task); ret = PTR_ERR(shuffler_task);
...@@ -486,6 +488,7 @@ int torture_shutdown_init(int ssecs, void (*cleanup)(void)) ...@@ -486,6 +488,7 @@ int torture_shutdown_init(int ssecs, void (*cleanup)(void))
shutdown_secs = ssecs; shutdown_secs = ssecs;
torture_shutdown_hook = cleanup; torture_shutdown_hook = cleanup;
if (shutdown_secs > 0) { if (shutdown_secs > 0) {
VERBOSE_TOROUT_STRING("Creating torture_shutdown task");
shutdown_time = jiffies + shutdown_secs * HZ; shutdown_time = jiffies + shutdown_secs * HZ;
shutdown_task = kthread_create(torture_shutdown, NULL, shutdown_task = kthread_create(torture_shutdown, NULL,
"torture_shutdown"); "torture_shutdown");
...@@ -592,6 +595,7 @@ int torture_stutter_init(int s) ...@@ -592,6 +595,7 @@ int torture_stutter_init(int s)
int ret; int ret;
stutter = s; stutter = s;
VERBOSE_TOROUT_STRING("Creating torture_stutter task");
stutter_task = kthread_run(torture_stutter, NULL, "torture_stutter"); stutter_task = kthread_run(torture_stutter, NULL, "torture_stutter");
if (IS_ERR(stutter_task)) { if (IS_ERR(stutter_task)) {
ret = PTR_ERR(stutter_task); ret = PTR_ERR(stutter_task);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment