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

torture: Add kvm.sh --help and update help message



This commit adds a --help argument (along with its synonym -h) to display
the help text.  While in the area, this commit also updates the help text.

Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent fc848cf4
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -56,6 +56,7 @@ usage () {
	echo "       --defconfig string"
	echo "       --dryrun sched|script"
	echo "       --duration minutes"
	echo "       --help"
	echo "       --interactive"
	echo "       --jitter N [ maxsleep (us) [ maxspin (us) ] ]"
	echo "       --kconfig Kconfig-options"
@@ -66,7 +67,7 @@ usage () {
	echo "       --qemu-args qemu-arguments"
	echo "       --qemu-cmd qemu-system-..."
	echo "       --results absolute-pathname"
	echo "       --torture rcu"
	echo "       --torture lock|rcu|rcuperf|refscale|scf"
	echo "       --trust-make"
	exit 1
}
@@ -127,6 +128,9 @@ do
		dur=$(($2*60))
		shift
		;;
	--help|-h)
		usage
		;;
	--interactive)
		TORTURE_QEMU_INTERACTIVE=1; export TORTURE_QEMU_INTERACTIVE
		;;