Skip to content

Commit

Permalink
rcutorture: Dump trace buffer upon shutdown
Browse files Browse the repository at this point in the history
When running from the scripts, rcutorture is completely headless,
so there is no way to to manually dump the trace buffer.  This commit
therefore unconditionally dumps the trace buffer upon timed shutdown.
However, if you are using rmmod to end the test, it is still up to you
to manually dump the trace buffer.

Signed-off-by: Paul E. McKenney <[email protected]>
  • Loading branch information
paulmck committed Apr 21, 2016
1 parent acc1adf commit e9fb365
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/torture.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ static int torture_shutdown(void *arg)
torture_shutdown_hook();
else
VERBOSE_TOROUT_STRING("No torture_shutdown_hook(), skipping.");
ftrace_dump(DUMP_ALL);
kernel_power_off(); /* Shut down the system. */
return 0;
}
Expand Down

0 comments on commit e9fb365

Please sign in to comment.