diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2013-10-14 11:19:39 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2013-12-03 13:11:16 -0500 |
commit | 7dca927328fce6f6854486c4c2355ffbe1469240 (patch) | |
tree | 9197b4f2104034648a8eed7bf4bb5299047223b7 /tools/testing | |
parent | 1127481392c8b95ad5066b6be99b3482522d4c89 (diff) |
rcutorture: Add --bootargs argument to specify additional boot arguments
This commit allows easy specification of trace_event lists, among other
things.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Greg KH <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/testing')
-rw-r--r-- | tools/testing/selftests/rcutorture/bin/kvm.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh index 6c67d0ca8c9a..2fb91d4f7996 100644 --- a/tools/testing/selftests/rcutorture/bin/kvm.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm.sh | |||
@@ -40,6 +40,7 @@ kversion="" | |||
40 | 40 | ||
41 | usage () { | 41 | usage () { |
42 | echo "Usage: $scriptname optional arguments:" | 42 | echo "Usage: $scriptname optional arguments:" |
43 | echo " --bootargs kernel-boot-arguments" | ||
43 | echo " --builddir absolute-pathname" | 44 | echo " --builddir absolute-pathname" |
44 | echo " --buildonly" | 45 | echo " --buildonly" |
45 | echo " --configs \"config-file list\"" | 46 | echo " --configs \"config-file list\"" |
@@ -78,6 +79,11 @@ checkarg () { | |||
78 | while test $# -gt 0 | 79 | while test $# -gt 0 |
79 | do | 80 | do |
80 | case "$1" in | 81 | case "$1" in |
82 | --bootargs) | ||
83 | checkarg --bootargs "(list of kernel boot arguments)" "$#" "$2" '.*' '^--' | ||
84 | RCU_BOOTARGS="$2" | ||
85 | shift | ||
86 | ;; | ||
81 | --builddir) | 87 | --builddir) |
82 | checkarg --builddir "(absolute pathname)" "$#" "$2" '^/' error | 88 | checkarg --builddir "(absolute pathname)" "$#" "$2" '^/' error |
83 | builddir=$2 | 89 | builddir=$2 |
@@ -183,6 +189,6 @@ do | |||
183 | rd=$resdir/$ds/$CF | 189 | rd=$resdir/$ds/$CF |
184 | mkdir $rd || : | 190 | mkdir $rd || : |
185 | echo Results directory: $rd | 191 | echo Results directory: $rd |
186 | kvm-test-1-rcu.sh $CONFIGFRAG/$kversion/$CF $builddir $rd $dur "-nographic" "rcutorture.test_no_idle_hz=1 rcutorture.verbose=1" | 192 | kvm-test-1-rcu.sh $CONFIGFRAG/$kversion/$CF $builddir $rd $dur "-nographic" "rcutorture.test_no_idle_hz=1 rcutorture.verbose=1 $RCU_BOOTARGS" |
187 | done | 193 | done |
188 | # 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 | 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 |