diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2013-10-15 12:22:48 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2013-12-03 13:11:16 -0500 |
commit | e9ce640001c681a1ec01a996dfae2f8fa5d1cfba (patch) | |
tree | 150323a984fc0dcef7a89bc28fd49f4b33986c41 /tools/testing/selftests/rcutorture/bin | |
parent | 7dca927328fce6f6854486c4c2355ffbe1469240 (diff) |
rcutorture: Add --qemu-args argument to kvm.sh
This commits adds the --qemu-args argument to kvm.sh that is required
to pass boot devices down through to qemu.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Greg KH <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/rcutorture/bin')
-rw-r--r-- | tools/testing/selftests/rcutorture/bin/kvm.sh | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh index 2fb91d4f7996..7d6ca337d1fd 100644 --- a/tools/testing/selftests/rcutorture/bin/kvm.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm.sh | |||
@@ -49,6 +49,7 @@ usage () { | |||
49 | echo " --interactive" | 49 | echo " --interactive" |
50 | echo " --kversion vN.NN" | 50 | echo " --kversion vN.NN" |
51 | echo " --mac nn:nn:nn:nn:nn:nn" | 51 | echo " --mac nn:nn:nn:nn:nn:nn" |
52 | echo " --qemu-args qemu-system-..." | ||
52 | echo " --qemu-cmd qemu-system-..." | 53 | echo " --qemu-cmd qemu-system-..." |
53 | echo " --results absolute-pathname" | 54 | echo " --results absolute-pathname" |
54 | echo " --relbuilddir relative-pathname" | 55 | echo " --relbuilddir relative-pathname" |
@@ -85,7 +86,7 @@ do | |||
85 | shift | 86 | shift |
86 | ;; | 87 | ;; |
87 | --builddir) | 88 | --builddir) |
88 | checkarg --builddir "(absolute pathname)" "$#" "$2" '^/' error | 89 | checkarg --builddir "(absolute pathname)" "$#" "$2" '^/' '^error' |
89 | builddir=$2 | 90 | builddir=$2 |
90 | gotbuilddir=1 | 91 | gotbuilddir=1 |
91 | shift | 92 | shift |
@@ -104,7 +105,7 @@ do | |||
104 | shift | 105 | shift |
105 | ;; | 106 | ;; |
106 | --duration) | 107 | --duration) |
107 | checkarg --duration "(minutes)" $# "$2" '^[0-9]*$' error | 108 | checkarg --duration "(minutes)" $# "$2" '^[0-9]*$' '^error' |
108 | dur=$2 | 109 | dur=$2 |
109 | shift | 110 | shift |
110 | ;; | 111 | ;; |
@@ -112,7 +113,7 @@ do | |||
112 | RCU_QEMU_INTERACTIVE=1; export RCU_QEMU_INTERACTIVE | 113 | RCU_QEMU_INTERACTIVE=1; export RCU_QEMU_INTERACTIVE |
113 | ;; | 114 | ;; |
114 | --kversion) | 115 | --kversion) |
115 | checkarg --kversion "(kernel version)" $# "$2" '^v[0-9.]*$' error | 116 | checkarg --kversion "(kernel version)" $# "$2" '^v[0-9.]*$' '^error' |
116 | kversion=$2 | 117 | kversion=$2 |
117 | shift | 118 | shift |
118 | ;; | 119 | ;; |
@@ -121,6 +122,11 @@ do | |||
121 | RCU_QEMU_MAC=$2; export RCU_QEMU_MAC | 122 | RCU_QEMU_MAC=$2; export RCU_QEMU_MAC |
122 | shift | 123 | shift |
123 | ;; | 124 | ;; |
125 | --qemu-args) | ||
126 | checkarg --qemu-args "-qemu args" $# "$2" '^-' '^error' | ||
127 | RCU_QEMU_ARG="$2" | ||
128 | shift | ||
129 | ;; | ||
124 | --qemu-cmd) | 130 | --qemu-cmd) |
125 | checkarg --qemu-cmd "(qemu-system-...)" $# "$2" 'qemu-system-' '^--' | 131 | checkarg --qemu-cmd "(qemu-system-...)" $# "$2" 'qemu-system-' '^--' |
126 | RCU_QEMU_CMD="$2"; export RCU_QEMU_CMD | 132 | RCU_QEMU_CMD="$2"; export RCU_QEMU_CMD |
@@ -134,7 +140,7 @@ do | |||
134 | shift | 140 | shift |
135 | ;; | 141 | ;; |
136 | --results) | 142 | --results) |
137 | checkarg --results "(absolute pathname)" "$#" "$2" '^/' error | 143 | checkarg --results "(absolute pathname)" "$#" "$2" '^/' '^error' |
138 | resdir=$2 | 144 | resdir=$2 |
139 | shift | 145 | shift |
140 | ;; | 146 | ;; |
@@ -189,6 +195,6 @@ do | |||
189 | rd=$resdir/$ds/$CF | 195 | rd=$resdir/$ds/$CF |
190 | mkdir $rd || : | 196 | mkdir $rd || : |
191 | echo Results directory: $rd | 197 | echo Results directory: $rd |
192 | kvm-test-1-rcu.sh $CONFIGFRAG/$kversion/$CF $builddir $rd $dur "-nographic" "rcutorture.test_no_idle_hz=1 rcutorture.verbose=1 $RCU_BOOTARGS" | 198 | kvm-test-1-rcu.sh $CONFIGFRAG/$kversion/$CF $builddir $rd $dur "-nographic $RCU_QEMU_ARG" "rcutorture.test_no_idle_hz=1 rcutorture.verbose=1 $RCU_BOOTARGS" |
193 | done | 199 | done |
194 | # Tracing: trace_event=rcu:rcu_nocb_grace_period,rcu:rcu_grace_period,rcu:rcu_grace_period_init,rcu:rcu_quiescent_state_report,rcu:rcu_fqs,rcu:rcu_callback,rcu:rcu_torture_read,rcu:rcu_invoke_callback,rcu:rcu_fqs,rcu:rcu_dyntick,rcu:rcu_unlock_preempted_task | 200 | # Tracing: trace_event=rcu:rcu_nocb_grace_period,rcu:rcu_grace_period,rcu:rcu_grace_period_init,rcu:rcu_quiescent_state_report,rcu:rcu_fqs,rcu:rcu_callback,rcu:rcu_torture_read,rcu:rcu_invoke_callback,rcu:rcu_fqs,rcu:rcu_dyntick,rcu:rcu_unlock_preempted_task |