diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-01-31 18:39:52 -0500 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-02-23 12:03:20 -0500 |
commit | 14562d1cf12b434da2c69b5603a4149ac43f3b48 (patch) | |
tree | a9b8a947d5ad6d9bc92880434a08dedb9232850a /kernel/torture.c | |
parent | 01025ebc99e39ac962c32e063cad9a3012ee8b0a (diff) |
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: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'kernel/torture.c')
-rw-r--r-- | kernel/torture.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/torture.c b/kernel/torture.c index df2c700e96e4..5e2838f902f9 100644 --- a/kernel/torture.c +++ b/kernel/torture.c | |||
@@ -187,6 +187,7 @@ int torture_onoff_init(long ooholdoff, long oointerval) | |||
187 | onoff_interval = oointerval; | 187 | onoff_interval = oointerval; |
188 | if (onoff_interval <= 0) | 188 | if (onoff_interval <= 0) |
189 | return 0; | 189 | return 0; |
190 | VERBOSE_TOROUT_STRING("Creating torture_onoff task"); | ||
190 | onoff_task = kthread_run(torture_onoff, NULL, "torture_onoff"); | 191 | onoff_task = kthread_run(torture_onoff, NULL, "torture_onoff"); |
191 | if (IS_ERR(onoff_task)) { | 192 | if (IS_ERR(onoff_task)) { |
192 | ret = PTR_ERR(onoff_task); | 193 | ret = PTR_ERR(onoff_task); |
@@ -390,6 +391,7 @@ int torture_shuffle_init(long shuffint) | |||
390 | } | 391 | } |
391 | 392 | ||
392 | /* Create the shuffler thread */ | 393 | /* Create the shuffler thread */ |
394 | VERBOSE_TOROUT_STRING("Creating torture_shuffle task"); | ||
393 | shuffler_task = kthread_run(torture_shuffle, NULL, "torture_shuffle"); | 395 | shuffler_task = kthread_run(torture_shuffle, NULL, "torture_shuffle"); |
394 | if (IS_ERR(shuffler_task)) { | 396 | if (IS_ERR(shuffler_task)) { |
395 | ret = PTR_ERR(shuffler_task); | 397 | ret = PTR_ERR(shuffler_task); |
@@ -486,6 +488,7 @@ int torture_shutdown_init(int ssecs, void (*cleanup)(void)) | |||
486 | shutdown_secs = ssecs; | 488 | shutdown_secs = ssecs; |
487 | torture_shutdown_hook = cleanup; | 489 | torture_shutdown_hook = cleanup; |
488 | if (shutdown_secs > 0) { | 490 | if (shutdown_secs > 0) { |
491 | VERBOSE_TOROUT_STRING("Creating torture_shutdown task"); | ||
489 | shutdown_time = jiffies + shutdown_secs * HZ; | 492 | shutdown_time = jiffies + shutdown_secs * HZ; |
490 | shutdown_task = kthread_create(torture_shutdown, NULL, | 493 | shutdown_task = kthread_create(torture_shutdown, NULL, |
491 | "torture_shutdown"); | 494 | "torture_shutdown"); |
@@ -592,6 +595,7 @@ int torture_stutter_init(int s) | |||
592 | int ret; | 595 | int ret; |
593 | 596 | ||
594 | stutter = s; | 597 | stutter = s; |
598 | VERBOSE_TOROUT_STRING("Creating torture_stutter task"); | ||
595 | stutter_task = kthread_run(torture_stutter, NULL, "torture_stutter"); | 599 | stutter_task = kthread_run(torture_stutter, NULL, "torture_stutter"); |
596 | if (IS_ERR(stutter_task)) { | 600 | if (IS_ERR(stutter_task)) { |
597 | ret = PTR_ERR(stutter_task); | 601 | ret = PTR_ERR(stutter_task); |