Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9fb365a authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

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: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
parent acc1adf5
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -451,6 +451,7 @@ static int torture_shutdown(void *arg)
		torture_shutdown_hook();
		torture_shutdown_hook();
	else
	else
		VERBOSE_TOROUT_STRING("No torture_shutdown_hook(), skipping.");
		VERBOSE_TOROUT_STRING("No torture_shutdown_hook(), skipping.");
	ftrace_dump(DUMP_ALL);
	kernel_power_off();	/* Shut down the system. */
	kernel_power_off();	/* Shut down the system. */
	return 0;
	return 0;
}
}