diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-02-06 14:54:32 -0500 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-02-23 12:04:32 -0500 |
commit | d2ebf7eea0d3fd450ca5b1cb2243fe1d69d399ce (patch) | |
tree | 12fdd23998dcba771f623e108b59ebc53451603c /tools/testing | |
parent | a1be00d9533f75bb46b9b64526d5254c6be0f122 (diff) |
rcutorture: Create CFcommon file for common Kconfig parameters
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 <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'tools/testing')
17 files changed, 7 insertions, 18 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/kvm-test-1-rcu.sh b/tools/testing/selftests/rcutorture/bin/kvm-test-1-rcu.sh index 41ea7810354f..30cfbc8f3a0b 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm-test-1-rcu.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm-test-1-rcu.sh | |||
@@ -47,6 +47,7 @@ trap 'rm -rf $T' 0 | |||
47 | . $KVPATH/ver_functions.sh | 47 | . $KVPATH/ver_functions.sh |
48 | 48 | ||
49 | config_template=${1} | 49 | config_template=${1} |
50 | config_dir=`echo $config_template | sed -e 's,/[^/]*$,,'` | ||
50 | title=`echo $config_template | sed -e 's/^.*\///'` | 51 | title=`echo $config_template | sed -e 's/^.*\///'` |
51 | builddir=${2} | 52 | builddir=${2} |
52 | if test -z "$builddir" -o ! -d "$builddir" -o ! -w "$builddir" | 53 | if test -z "$builddir" -o ! -d "$builddir" -o ! -w "$builddir" |
@@ -63,9 +64,10 @@ fi | |||
63 | cp $config_template $resdir/ConfigFragment | 64 | cp $config_template $resdir/ConfigFragment |
64 | echo ' ---' `date`: Starting build | 65 | echo ' ---' `date`: Starting build |
65 | echo ' ---' Kconfig fragment at: $config_template >> $resdir/log | 66 | echo ' ---' Kconfig fragment at: $config_template >> $resdir/log |
66 | cat << '___EOF___' >> $T | 67 | if test -r "$config_dir/CFcommon" |
67 | CONFIG_RCU_TORTURE_TEST=y | 68 | then |
68 | ___EOF___ | 69 | cat < $config_dir/CFcommon >> $T |
70 | fi | ||
69 | # Optimizations below this point | 71 | # Optimizations below this point |
70 | # CONFIG_USB=n | 72 | # CONFIG_USB=n |
71 | # CONFIG_SECURITY=n | 73 | # CONFIG_SECURITY=n |
diff --git a/tools/testing/selftests/rcutorture/configs/BUSTED b/tools/testing/selftests/rcutorture/configs/BUSTED index 46fb6cf30cc2..48d8a245c7fa 100644 --- a/tools/testing/selftests/rcutorture/configs/BUSTED +++ b/tools/testing/selftests/rcutorture/configs/BUSTED | |||
@@ -5,4 +5,3 @@ CONFIG_HOTPLUG_CPU=y | |||
5 | CONFIG_PREEMPT_NONE=n | 5 | CONFIG_PREEMPT_NONE=n |
6 | CONFIG_PREEMPT_VOLUNTARY=n | 6 | CONFIG_PREEMPT_VOLUNTARY=n |
7 | CONFIG_PREEMPT=y | 7 | CONFIG_PREEMPT=y |
8 | CONFIG_PRINTK_TIME=y | ||
diff --git a/tools/testing/selftests/rcutorture/configs/CFcommon b/tools/testing/selftests/rcutorture/configs/CFcommon new file mode 100644 index 000000000000..d2d2a86139db --- /dev/null +++ b/tools/testing/selftests/rcutorture/configs/CFcommon | |||
@@ -0,0 +1,2 @@ | |||
1 | CONFIG_RCU_TORTURE_TEST=y | ||
2 | CONFIG_PRINTK_TIME=y | ||
diff --git a/tools/testing/selftests/rcutorture/configs/SRCU-N b/tools/testing/selftests/rcutorture/configs/SRCU-N index b4c6340d920a..9fbb41b9b314 100644 --- a/tools/testing/selftests/rcutorture/configs/SRCU-N +++ b/tools/testing/selftests/rcutorture/configs/SRCU-N | |||
@@ -5,4 +5,3 @@ CONFIG_HOTPLUG_CPU=y | |||
5 | CONFIG_PREEMPT_NONE=y | 5 | CONFIG_PREEMPT_NONE=y |
6 | CONFIG_PREEMPT_VOLUNTARY=n | 6 | CONFIG_PREEMPT_VOLUNTARY=n |
7 | CONFIG_PREEMPT=n | 7 | CONFIG_PREEMPT=n |
8 | CONFIG_PRINTK_TIME=y | ||
diff --git a/tools/testing/selftests/rcutorture/configs/SRCU-P b/tools/testing/selftests/rcutorture/configs/SRCU-P index 6650e00c6d91..4b6f272dba27 100644 --- a/tools/testing/selftests/rcutorture/configs/SRCU-P +++ b/tools/testing/selftests/rcutorture/configs/SRCU-P | |||
@@ -5,4 +5,3 @@ CONFIG_HOTPLUG_CPU=y | |||
5 | CONFIG_PREEMPT_NONE=n | 5 | CONFIG_PREEMPT_NONE=n |
6 | CONFIG_PREEMPT_VOLUNTARY=n | 6 | CONFIG_PREEMPT_VOLUNTARY=n |
7 | CONFIG_PREEMPT=y | 7 | CONFIG_PREEMPT=y |
8 | CONFIG_PRINTK_TIME=y | ||
diff --git a/tools/testing/selftests/rcutorture/configs/TINY01 b/tools/testing/selftests/rcutorture/configs/TINY01 index 0c2823f21712..0a63e073a00c 100644 --- a/tools/testing/selftests/rcutorture/configs/TINY01 +++ b/tools/testing/selftests/rcutorture/configs/TINY01 | |||
@@ -10,4 +10,3 @@ CONFIG_RCU_TRACE=n | |||
10 | CONFIG_DEBUG_LOCK_ALLOC=n | 10 | CONFIG_DEBUG_LOCK_ALLOC=n |
11 | CONFIG_DEBUG_OBJECTS_RCU_HEAD=n | 11 | CONFIG_DEBUG_OBJECTS_RCU_HEAD=n |
12 | CONFIG_PREEMPT_COUNT=n | 12 | CONFIG_PREEMPT_COUNT=n |
13 | CONFIG_PRINTK_TIME=y | ||
diff --git a/tools/testing/selftests/rcutorture/configs/TINY02 b/tools/testing/selftests/rcutorture/configs/TINY02 index e5072d7528b6..f4feaee40776 100644 --- a/tools/testing/selftests/rcutorture/configs/TINY02 +++ b/tools/testing/selftests/rcutorture/configs/TINY02 | |||
@@ -10,4 +10,3 @@ CONFIG_RCU_TRACE=y | |||
10 | CONFIG_DEBUG_LOCK_ALLOC=y | 10 | CONFIG_DEBUG_LOCK_ALLOC=y |
11 | CONFIG_DEBUG_OBJECTS_RCU_HEAD=n | 11 | CONFIG_DEBUG_OBJECTS_RCU_HEAD=n |
12 | CONFIG_PREEMPT_COUNT=y | 12 | CONFIG_PREEMPT_COUNT=y |
13 | CONFIG_PRINTK_TIME=y | ||
diff --git a/tools/testing/selftests/rcutorture/configs/TREE01 b/tools/testing/selftests/rcutorture/configs/TREE01 index 141119a00044..9c827ec59a97 100644 --- a/tools/testing/selftests/rcutorture/configs/TREE01 +++ b/tools/testing/selftests/rcutorture/configs/TREE01 | |||
@@ -20,4 +20,3 @@ CONFIG_RCU_CPU_STALL_INFO=n | |||
20 | CONFIG_RCU_CPU_STALL_VERBOSE=n | 20 | CONFIG_RCU_CPU_STALL_VERBOSE=n |
21 | CONFIG_RCU_BOOST=n | 21 | CONFIG_RCU_BOOST=n |
22 | CONFIG_DEBUG_OBJECTS_RCU_HEAD=n | 22 | CONFIG_DEBUG_OBJECTS_RCU_HEAD=n |
23 | CONFIG_PRINTK_TIME=y | ||
diff --git a/tools/testing/selftests/rcutorture/configs/TREE02 b/tools/testing/selftests/rcutorture/configs/TREE02 index 2d4d09608528..bca03f6b3046 100644 --- a/tools/testing/selftests/rcutorture/configs/TREE02 +++ b/tools/testing/selftests/rcutorture/configs/TREE02 | |||
@@ -23,4 +23,3 @@ CONFIG_RCU_CPU_STALL_INFO=n | |||
23 | CONFIG_RCU_CPU_STALL_VERBOSE=y | 23 | CONFIG_RCU_CPU_STALL_VERBOSE=y |
24 | CONFIG_RCU_BOOST=n | 24 | CONFIG_RCU_BOOST=n |
25 | CONFIG_DEBUG_OBJECTS_RCU_HEAD=n | 25 | CONFIG_DEBUG_OBJECTS_RCU_HEAD=n |
26 | CONFIG_PRINTK_TIME=y | ||
diff --git a/tools/testing/selftests/rcutorture/configs/TREE03 b/tools/testing/selftests/rcutorture/configs/TREE03 index a47de5be8a04..c1f111c1561b 100644 --- a/tools/testing/selftests/rcutorture/configs/TREE03 +++ b/tools/testing/selftests/rcutorture/configs/TREE03 | |||
@@ -20,4 +20,3 @@ CONFIG_RCU_CPU_STALL_VERBOSE=n | |||
20 | CONFIG_RCU_BOOST=y | 20 | CONFIG_RCU_BOOST=y |
21 | CONFIG_RCU_BOOST_PRIO=2 | 21 | CONFIG_RCU_BOOST_PRIO=2 |
22 | CONFIG_DEBUG_OBJECTS_RCU_HEAD=n | 22 | CONFIG_DEBUG_OBJECTS_RCU_HEAD=n |
23 | CONFIG_PRINTK_TIME=y | ||
diff --git a/tools/testing/selftests/rcutorture/configs/TREE04 b/tools/testing/selftests/rcutorture/configs/TREE04 index 8d839b86a1d5..7dbd27ce17a4 100644 --- a/tools/testing/selftests/rcutorture/configs/TREE04 +++ b/tools/testing/selftests/rcutorture/configs/TREE04 | |||
@@ -22,4 +22,3 @@ CONFIG_PROVE_RCU_DELAY=n | |||
22 | CONFIG_RCU_CPU_STALL_INFO=y | 22 | CONFIG_RCU_CPU_STALL_INFO=y |
23 | CONFIG_RCU_CPU_STALL_VERBOSE=y | 23 | CONFIG_RCU_CPU_STALL_VERBOSE=y |
24 | CONFIG_DEBUG_OBJECTS_RCU_HEAD=n | 24 | CONFIG_DEBUG_OBJECTS_RCU_HEAD=n |
25 | CONFIG_PRINTK_TIME=y | ||
diff --git a/tools/testing/selftests/rcutorture/configs/TREE05 b/tools/testing/selftests/rcutorture/configs/TREE05 index b5ba72ea25cb..d0f32e574743 100644 --- a/tools/testing/selftests/rcutorture/configs/TREE05 +++ b/tools/testing/selftests/rcutorture/configs/TREE05 | |||
@@ -22,4 +22,3 @@ CONFIG_PROVE_RCU_DELAY=y | |||
22 | CONFIG_RCU_CPU_STALL_INFO=n | 22 | CONFIG_RCU_CPU_STALL_INFO=n |
23 | CONFIG_RCU_CPU_STALL_VERBOSE=n | 23 | CONFIG_RCU_CPU_STALL_VERBOSE=n |
24 | CONFIG_DEBUG_OBJECTS_RCU_HEAD=n | 24 | CONFIG_DEBUG_OBJECTS_RCU_HEAD=n |
25 | CONFIG_PRINTK_TIME=y | ||
diff --git a/tools/testing/selftests/rcutorture/configs/TREE06 b/tools/testing/selftests/rcutorture/configs/TREE06 index 7c95ab48d29f..2e477dfb9c57 100644 --- a/tools/testing/selftests/rcutorture/configs/TREE06 +++ b/tools/testing/selftests/rcutorture/configs/TREE06 | |||
@@ -23,4 +23,3 @@ CONFIG_PROVE_RCU_DELAY=n | |||
23 | CONFIG_RCU_CPU_STALL_INFO=n | 23 | CONFIG_RCU_CPU_STALL_INFO=n |
24 | CONFIG_RCU_CPU_STALL_VERBOSE=n | 24 | CONFIG_RCU_CPU_STALL_VERBOSE=n |
25 | CONFIG_DEBUG_OBJECTS_RCU_HEAD=y | 25 | CONFIG_DEBUG_OBJECTS_RCU_HEAD=y |
26 | CONFIG_PRINTK_TIME=y | ||
diff --git a/tools/testing/selftests/rcutorture/configs/TREE07 b/tools/testing/selftests/rcutorture/configs/TREE07 index 1467404bdec1..042f86ef362a 100644 --- a/tools/testing/selftests/rcutorture/configs/TREE07 +++ b/tools/testing/selftests/rcutorture/configs/TREE07 | |||
@@ -21,4 +21,3 @@ CONFIG_PROVE_RCU_DELAY=n | |||
21 | CONFIG_RCU_CPU_STALL_INFO=y | 21 | CONFIG_RCU_CPU_STALL_INFO=y |
22 | CONFIG_RCU_CPU_STALL_VERBOSE=n | 22 | CONFIG_RCU_CPU_STALL_VERBOSE=n |
23 | CONFIG_DEBUG_OBJECTS_RCU_HEAD=n | 23 | CONFIG_DEBUG_OBJECTS_RCU_HEAD=n |
24 | CONFIG_PRINTK_TIME=y | ||
diff --git a/tools/testing/selftests/rcutorture/configs/TREE08 b/tools/testing/selftests/rcutorture/configs/TREE08 index 7d097a61ac2a..3438cee1e3c5 100644 --- a/tools/testing/selftests/rcutorture/configs/TREE08 +++ b/tools/testing/selftests/rcutorture/configs/TREE08 | |||
@@ -23,4 +23,3 @@ CONFIG_RCU_CPU_STALL_INFO=n | |||
23 | CONFIG_RCU_CPU_STALL_VERBOSE=n | 23 | CONFIG_RCU_CPU_STALL_VERBOSE=n |
24 | CONFIG_RCU_BOOST=n | 24 | CONFIG_RCU_BOOST=n |
25 | CONFIG_DEBUG_OBJECTS_RCU_HEAD=n | 25 | CONFIG_DEBUG_OBJECTS_RCU_HEAD=n |
26 | CONFIG_PRINTK_TIME=y | ||
diff --git a/tools/testing/selftests/rcutorture/configs/TREE08-T b/tools/testing/selftests/rcutorture/configs/TREE08-T index 442c4e450ab3..bf4523d3e44c 100644 --- a/tools/testing/selftests/rcutorture/configs/TREE08-T +++ b/tools/testing/selftests/rcutorture/configs/TREE08-T | |||
@@ -23,4 +23,3 @@ CONFIG_RCU_CPU_STALL_INFO=n | |||
23 | CONFIG_RCU_CPU_STALL_VERBOSE=n | 23 | CONFIG_RCU_CPU_STALL_VERBOSE=n |
24 | CONFIG_RCU_BOOST=n | 24 | CONFIG_RCU_BOOST=n |
25 | CONFIG_DEBUG_OBJECTS_RCU_HEAD=n | 25 | CONFIG_DEBUG_OBJECTS_RCU_HEAD=n |
26 | CONFIG_PRINTK_TIME=y | ||
diff --git a/tools/testing/selftests/rcutorture/configs/TREE09 b/tools/testing/selftests/rcutorture/configs/TREE09 index 0d1ec0d3dfee..81e4f7c0bf0b 100644 --- a/tools/testing/selftests/rcutorture/configs/TREE09 +++ b/tools/testing/selftests/rcutorture/configs/TREE09 | |||
@@ -18,4 +18,3 @@ CONFIG_RCU_CPU_STALL_INFO=n | |||
18 | CONFIG_RCU_CPU_STALL_VERBOSE=n | 18 | CONFIG_RCU_CPU_STALL_VERBOSE=n |
19 | CONFIG_RCU_BOOST=n | 19 | CONFIG_RCU_BOOST=n |
20 | CONFIG_DEBUG_OBJECTS_RCU_HEAD=n | 20 | CONFIG_DEBUG_OBJECTS_RCU_HEAD=n |
21 | CONFIG_PRINTK_TIME=y | ||