diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2016-03-30 11:20:48 -0700 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2016-04-21 13:47:04 -0700 |
commit | e9fb365a8847dfe8a9fccae0dce77abf7276b5da (patch) | |
tree | 4beb99c554dbb0f185afa58929a7eb987f126110 /kernel/torture.c | |
parent | acc1adf5572205c5b3fc9e6983ca8dfb06c94520 (diff) | |
download | lwn-e9fb365a8847dfe8a9fccae0dce77abf7276b5da.tar.gz lwn-e9fb365a8847dfe8a9fccae0dce77abf7276b5da.zip |
rcutorture: Dump trace buffer upon shutdown
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 <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/torture.c')
-rw-r--r-- | kernel/torture.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/torture.c b/kernel/torture.c index e912ccd960f0..fa0bdeee17ac 100644 --- a/kernel/torture.c +++ b/kernel/torture.c @@ -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; } |