Skip to content

Commit 394473d

Browse files
paulmckrcuFrederic Weisbecker
authored andcommitted
torture: Print out torture module parameters
The kernel/torture.c module now has several module parameters, so this commit causes them to be printed out. Signed-off-by: Paul E. McKenney <[email protected]> Signed-off-by: Frederic Weisbecker <[email protected]>
1 parent fcc7a32 commit 394473d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

kernel/torture.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,13 @@ static void torture_stutter_cleanup(void)
791791
stutter_task = NULL;
792792
}
793793

794+
static void
795+
torture_print_module_parms(void)
796+
{
797+
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",
798+
torture_type, disable_onoff_at_boot, ftrace_dump_at_shutdown, verbose_sleep_frequency, verbose_sleep_duration, random_shuffle);
799+
}
800+
794801
/*
795802
* Initialize torture module. Please note that this is -not- invoked via
796803
* the usual module_init() mechanism, but rather by an explicit call from
@@ -813,6 +820,7 @@ bool torture_init_begin(char *ttype, int v)
813820
torture_type = ttype;
814821
verbose = v;
815822
fullstop = FULLSTOP_DONTSTOP;
823+
torture_print_module_parms();
816824
return true;
817825
}
818826
EXPORT_SYMBOL_GPL(torture_init_begin);

0 commit comments

Comments
 (0)