forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
torture: Dump ftrace at shutdown only if requested
If there is a large number of torture tests running concurrently, all of which are dumping large ftrace buffers at shutdown time, the resulting dumping can take a very long time, particularly on systems with rotating-rust storage. This commit therefore adds a default-off torture.ftrace_dump_at_shutdown module parameter that enables shutdown-time ftrace-buffer dumping. Signed-off-by: Paul E. McKenney <[email protected]>
- Loading branch information
1 parent
06efa9b
commit 2102ad2
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,9 @@ MODULE_AUTHOR("Paul E. McKenney <[email protected]>"); | |
static bool disable_onoff_at_boot; | ||
module_param(disable_onoff_at_boot, bool, 0444); | ||
|
||
static bool ftrace_dump_at_shutdown; | ||
module_param(ftrace_dump_at_shutdown, bool, 0444); | ||
|
||
static char *torture_type; | ||
static int verbose; | ||
|
||
|
@@ -527,7 +530,8 @@ static int torture_shutdown(void *arg) | |
torture_shutdown_hook(); | ||
else | ||
VERBOSE_TOROUT_STRING("No torture_shutdown_hook(), skipping."); | ||
rcu_ftrace_dump(DUMP_ALL); | ||
if (ftrace_dump_at_shutdown) | ||
rcu_ftrace_dump(DUMP_ALL); | ||
kernel_power_off(); /* Shut down the system. */ | ||
return 0; | ||
} | ||
|