Skip to content

Commit

Permalink
rcutorture: Create CFcommon file for common Kconfig parameters
Browse files Browse the repository at this point in the history
Currently, CONFIG_RCU_TORTURE_TEST=y is hardcoded into the
kvm-test-1-rcu.sh script and CONFIG_PRINTK_TIME=y is mentioned in each
and every configs file.  This commit creates a CFcommon file for these
two Kconfig parameters, and modifies kvm-test-1-rcu.sh to copy this new
file into the .config file during the build.  This change will allow
these scripts to operate on torture types other than just rcutorture.

Signed-off-by: Paul E. McKenney <[email protected]>
Reviewed-by: Josh Triplett <[email protected]>
  • Loading branch information
paulmck committed Feb 23, 2014
1 parent a1be00d commit d2ebf7e
Show file tree
Hide file tree
Showing 17 changed files with 7 additions and 18 deletions.
8 changes: 5 additions & 3 deletions tools/testing/selftests/rcutorture/bin/kvm-test-1-rcu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ trap 'rm -rf $T' 0
. $KVPATH/ver_functions.sh

config_template=${1}
config_dir=`echo $config_template | sed -e 's,/[^/]*$,,'`
title=`echo $config_template | sed -e 's/^.*\///'`
builddir=${2}
if test -z "$builddir" -o ! -d "$builddir" -o ! -w "$builddir"
Expand All @@ -63,9 +64,10 @@ fi
cp $config_template $resdir/ConfigFragment
echo ' ---' `date`: Starting build
echo ' ---' Kconfig fragment at: $config_template >> $resdir/log
cat << '___EOF___' >> $T
CONFIG_RCU_TORTURE_TEST=y
___EOF___
if test -r "$config_dir/CFcommon"
then
cat < $config_dir/CFcommon >> $T
fi
# Optimizations below this point
# CONFIG_USB=n
# CONFIG_SECURITY=n
Expand Down
1 change: 0 additions & 1 deletion tools/testing/selftests/rcutorture/configs/BUSTED
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ CONFIG_HOTPLUG_CPU=y
CONFIG_PREEMPT_NONE=n
CONFIG_PREEMPT_VOLUNTARY=n
CONFIG_PREEMPT=y
CONFIG_PRINTK_TIME=y
2 changes: 2 additions & 0 deletions tools/testing/selftests/rcutorture/configs/CFcommon
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_RCU_TORTURE_TEST=y
CONFIG_PRINTK_TIME=y
1 change: 0 additions & 1 deletion tools/testing/selftests/rcutorture/configs/SRCU-N
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ CONFIG_HOTPLUG_CPU=y
CONFIG_PREEMPT_NONE=y
CONFIG_PREEMPT_VOLUNTARY=n
CONFIG_PREEMPT=n
CONFIG_PRINTK_TIME=y
1 change: 0 additions & 1 deletion tools/testing/selftests/rcutorture/configs/SRCU-P
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ CONFIG_HOTPLUG_CPU=y
CONFIG_PREEMPT_NONE=n
CONFIG_PREEMPT_VOLUNTARY=n
CONFIG_PREEMPT=y
CONFIG_PRINTK_TIME=y
1 change: 0 additions & 1 deletion tools/testing/selftests/rcutorture/configs/TINY01
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ CONFIG_RCU_TRACE=n
CONFIG_DEBUG_LOCK_ALLOC=n
CONFIG_DEBUG_OBJECTS_RCU_HEAD=n
CONFIG_PREEMPT_COUNT=n
CONFIG_PRINTK_TIME=y
1 change: 0 additions & 1 deletion tools/testing/selftests/rcutorture/configs/TINY02
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ CONFIG_RCU_TRACE=y
CONFIG_DEBUG_LOCK_ALLOC=y
CONFIG_DEBUG_OBJECTS_RCU_HEAD=n
CONFIG_PREEMPT_COUNT=y
CONFIG_PRINTK_TIME=y
1 change: 0 additions & 1 deletion tools/testing/selftests/rcutorture/configs/TREE01
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ CONFIG_RCU_CPU_STALL_INFO=n
CONFIG_RCU_CPU_STALL_VERBOSE=n
CONFIG_RCU_BOOST=n
CONFIG_DEBUG_OBJECTS_RCU_HEAD=n
CONFIG_PRINTK_TIME=y
1 change: 0 additions & 1 deletion tools/testing/selftests/rcutorture/configs/TREE02
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ CONFIG_RCU_CPU_STALL_INFO=n
CONFIG_RCU_CPU_STALL_VERBOSE=y
CONFIG_RCU_BOOST=n
CONFIG_DEBUG_OBJECTS_RCU_HEAD=n
CONFIG_PRINTK_TIME=y
1 change: 0 additions & 1 deletion tools/testing/selftests/rcutorture/configs/TREE03
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ CONFIG_RCU_CPU_STALL_VERBOSE=n
CONFIG_RCU_BOOST=y
CONFIG_RCU_BOOST_PRIO=2
CONFIG_DEBUG_OBJECTS_RCU_HEAD=n
CONFIG_PRINTK_TIME=y
1 change: 0 additions & 1 deletion tools/testing/selftests/rcutorture/configs/TREE04
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ CONFIG_PROVE_RCU_DELAY=n
CONFIG_RCU_CPU_STALL_INFO=y
CONFIG_RCU_CPU_STALL_VERBOSE=y
CONFIG_DEBUG_OBJECTS_RCU_HEAD=n
CONFIG_PRINTK_TIME=y
1 change: 0 additions & 1 deletion tools/testing/selftests/rcutorture/configs/TREE05
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ CONFIG_PROVE_RCU_DELAY=y
CONFIG_RCU_CPU_STALL_INFO=n
CONFIG_RCU_CPU_STALL_VERBOSE=n
CONFIG_DEBUG_OBJECTS_RCU_HEAD=n
CONFIG_PRINTK_TIME=y
1 change: 0 additions & 1 deletion tools/testing/selftests/rcutorture/configs/TREE06
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ CONFIG_PROVE_RCU_DELAY=n
CONFIG_RCU_CPU_STALL_INFO=n
CONFIG_RCU_CPU_STALL_VERBOSE=n
CONFIG_DEBUG_OBJECTS_RCU_HEAD=y
CONFIG_PRINTK_TIME=y
1 change: 0 additions & 1 deletion tools/testing/selftests/rcutorture/configs/TREE07
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ CONFIG_PROVE_RCU_DELAY=n
CONFIG_RCU_CPU_STALL_INFO=y
CONFIG_RCU_CPU_STALL_VERBOSE=n
CONFIG_DEBUG_OBJECTS_RCU_HEAD=n
CONFIG_PRINTK_TIME=y
1 change: 0 additions & 1 deletion tools/testing/selftests/rcutorture/configs/TREE08
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ CONFIG_RCU_CPU_STALL_INFO=n
CONFIG_RCU_CPU_STALL_VERBOSE=n
CONFIG_RCU_BOOST=n
CONFIG_DEBUG_OBJECTS_RCU_HEAD=n
CONFIG_PRINTK_TIME=y
1 change: 0 additions & 1 deletion tools/testing/selftests/rcutorture/configs/TREE08-T
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ CONFIG_RCU_CPU_STALL_INFO=n
CONFIG_RCU_CPU_STALL_VERBOSE=n
CONFIG_RCU_BOOST=n
CONFIG_DEBUG_OBJECTS_RCU_HEAD=n
CONFIG_PRINTK_TIME=y
1 change: 0 additions & 1 deletion tools/testing/selftests/rcutorture/configs/TREE09
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ CONFIG_RCU_CPU_STALL_INFO=n
CONFIG_RCU_CPU_STALL_VERBOSE=n
CONFIG_RCU_BOOST=n
CONFIG_DEBUG_OBJECTS_RCU_HEAD=n
CONFIG_PRINTK_TIME=y

0 comments on commit d2ebf7e

Please sign in to comment.