]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
rcutorture: Dump trace buffer upon shutdown
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 30 Mar 2016 18:20:48 +0000 (11:20 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 21 Apr 2016 20:47:04 +0000 (13:47 -0700)
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>
kernel/torture.c

index e912ccd960f0c3270f41f17ea425589c0e5c9259..fa0bdeee17ac3c01d1cc04283b9629e1586d1c67 100644 (file)
@@ -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;
 }