aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtools/testing/selftests/rcutorture/bin/kvm-build.sh2
-rw-r--r--tools/testing/selftests/rcutorture/bin/kvm.sh7
2 files changed, 8 insertions, 1 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/kvm-build.sh b/tools/testing/selftests/rcutorture/bin/kvm-build.sh
index 618ef2c543fd..8c4aa7d63394 100755
--- a/tools/testing/selftests/rcutorture/bin/kvm-build.sh
+++ b/tools/testing/selftests/rcutorture/bin/kvm-build.sh
@@ -60,7 +60,7 @@ then
60 exit 2 60 exit 2
61fi 61fi
62ncpus=`cpus2use.sh` 62ncpus=`cpus2use.sh`
63make O=$builddir -j$ncpus > $builddir/Make.out 2>&1 63make O=$builddir -j$ncpus $RCU_KMAKE_ARG > $builddir/Make.out 2>&1
64retval=$? 64retval=$?
65if test $retval -ne 0 || grep "rcu[^/]*": < $builddir/Make.out | egrep -q "Stop|Error|error:|warning:" || egrep -q "Stop|Error|error:" < $builddir/Make.out 65if test $retval -ne 0 || grep "rcu[^/]*": < $builddir/Make.out | egrep -q "Stop|Error|error:|warning:" || egrep -q "Stop|Error|error:" < $builddir/Make.out
66then 66then
diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh
index a833160dcdc3..69b6523bb854 100644
--- a/tools/testing/selftests/rcutorture/bin/kvm.sh
+++ b/tools/testing/selftests/rcutorture/bin/kvm.sh
@@ -34,6 +34,7 @@ dur=30
34KVM="`pwd`/tools/testing/selftests/rcutorture"; export KVM 34KVM="`pwd`/tools/testing/selftests/rcutorture"; export KVM
35builddir="${KVM}/b1" 35builddir="${KVM}/b1"
36RCU_INITRD="$KVM/initrd"; export RCU_INITRD 36RCU_INITRD="$KVM/initrd"; export RCU_INITRD
37RCU_KMAKE_ARG=""; export RCU_KMAKE_ARG
37resdir="" 38resdir=""
38configs="" 39configs=""
39ds=`date +%Y.%m.%d-%H:%M:%S` 40ds=`date +%Y.%m.%d-%H:%M:%S`
@@ -48,6 +49,7 @@ usage () {
48 echo " --datestamp string" 49 echo " --datestamp string"
49 echo " --duration minutes" 50 echo " --duration minutes"
50 echo " --interactive" 51 echo " --interactive"
52 echo " --kmake-arg kernel-make-arguments"
51 echo " --kversion vN.NN" 53 echo " --kversion vN.NN"
52 echo " --mac nn:nn:nn:nn:nn:nn" 54 echo " --mac nn:nn:nn:nn:nn:nn"
53 echo " --no-initrd" 55 echo " --no-initrd"
@@ -114,6 +116,11 @@ do
114 --interactive) 116 --interactive)
115 RCU_QEMU_INTERACTIVE=1; export RCU_QEMU_INTERACTIVE 117 RCU_QEMU_INTERACTIVE=1; export RCU_QEMU_INTERACTIVE
116 ;; 118 ;;
119 --kmake-arg)
120 checkarg --kmake-arg "(kernel make arguments)" $# "$2" '.*' '^error$'
121 RCU_KMAKE_ARG="$2"; export RCU_KMAKE_ARG
122 shift
123 ;;
117 --kversion) 124 --kversion)
118 checkarg --kversion "(kernel version)" $# "$2" '^v[0-9.]*$' '^error' 125 checkarg --kversion "(kernel version)" $# "$2" '^v[0-9.]*$' '^error'
119 kversion=$2 126 kversion=$2