torture: Print out torture module parameters
[linux-2.6-block.git] / kernel / torture.c
index fd353f98162ff23af1f21d361f1dffb643128d48..c72ab2d251f4f8ff793f0a8dc9e671abee5c7f05 100644 (file)
@@ -791,6 +791,13 @@ static void torture_stutter_cleanup(void)
        stutter_task = NULL;
 }
 
+static void
+torture_print_module_parms(void)
+{
+       pr_alert("torture module --- %s:  disable_onoff_at_boot=%d ftrace_dump_at_shutdown=%d verbose_sleep_frequency=%d verbose_sleep_duration=%d random_shuffle=%d\n",
+                torture_type, disable_onoff_at_boot, ftrace_dump_at_shutdown, verbose_sleep_frequency, verbose_sleep_duration, random_shuffle);
+}
+
 /*
  * Initialize torture module.  Please note that this is -not- invoked via
  * the usual module_init() mechanism, but rather by an explicit call from
@@ -813,6 +820,7 @@ bool torture_init_begin(char *ttype, int v)
        torture_type = ttype;
        verbose = v;
        fullstop = FULLSTOP_DONTSTOP;
+       torture_print_module_parms();
        return true;
 }
 EXPORT_SYMBOL_GPL(torture_init_begin);