aboutsummaryrefslogtreecommitdiff
path: root/special-tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'special-tests.sh')
-rwxr-xr-xspecial-tests.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/special-tests.sh b/special-tests.sh
index 6cd5537..868b4ac 100755
--- a/special-tests.sh
+++ b/special-tests.sh
@@ -99,3 +99,33 @@ hotplug_with_updates()
{
for_each_non_boot_cpu hotplug_with_updates_cpu
}
+
+# Test 4
+# $1: cpu
+__concurrent_lockdep()
+{
+ for i in `seq 0 100`; do
+ # switch to ondemand
+ __switch_governor $1 "ondemand"
+
+ # cat ondemand files
+ local ondir=$(find_gov_directory $1 "ondemand")
+ if [ -z $ondir ]; then
+ echo "${FUNCNAME[0]}Ondemand directory not created, quit"
+ return
+ fi
+
+ cat $ondir/*
+
+ # switch to conservative
+ __switch_governor $1 "conservative"
+ done
+}
+
+concurrent_lockdep()
+{
+ echo "** Test: Running ${FUNCNAME[0]} **"
+ echo ""
+
+ for_each_cpu_concurrent __concurrent_lockdep
+}