aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/README24
-rwxr-xr-xscripts/pm_test_script (renamed from scripts/test_script)21
-rwxr-xr-xscripts/pm_test_single_taskset (renamed from scripts/test_single_taskset)0
-rwxr-xr-xscripts/pm_test_single_taskset_mtimes_long (renamed from scripts/test_single_taskset_mtimes_long)0
-rwxr-xr-xscripts/pm_test_single_taskset_mtimes_short (renamed from scripts/test_single_taskset_mtimes_short)0
-rwxr-xr-xscripts/test_find4
-rw-r--r--scripts/test_get_arrays.py4
-rw-r--r--scripts/uni1_050_0.ts50
8 files changed, 98 insertions, 5 deletions
diff --git a/scripts/README b/scripts/README
new file mode 100644
index 0000000..915df06
--- /dev/null
+++ b/scripts/README
@@ -0,0 +1,24 @@
1This directory contains some scripts used for bug hunting, general testing
2of Litmus and LibLitmus, Preemption and Migration overhead measurements etc.
3
4When you add a script, please also add a brief description of the script here.
5
6pm_test_script:
7 main preemption and migration testing script; can iterate on
8 multiple WSS and multiple plugins. Some assumtion on filenames and
9 taskset filenames are made. More information direcly in the script.
10
11pm_test_single_taskset*:
12 preemption and migration test scripts. Mainly for debugging / bug hunting
13
14test_find:
15 test script which spawns "find" tasks (which suspend frequently).
16 Mainly for debugging / bug hunting
17
18uni1_050_0.ts:
19 taskset used by pm_test_single_taskset* and test_find (this ts is one of the
20 smallest ts used by John and Bjoern for preemption and migration evaluation
21 on Niagara
22
23test_get_arrays.py:
24 simple python test to verify C to Python PM interface
diff --git a/scripts/test_script b/scripts/pm_test_script
index 1bef33a..c9034f8 100755
--- a/scripts/test_script
+++ b/scripts/pm_test_script
@@ -1,10 +1,21 @@
1#!/bin/bash 1#!/bin/bash
2# 2#
3# Original script by John Calandrino 2008 3# pm_test_script:
4# Changes by Andrea Bastoni 2010 4# Batch script for running (all?) pm benchmarking experiments.
5# Run it as root!
5# 6#
6# Batch script for running all benchmarking experiments. 7# Some assumptions and hints:
7# Run it as root! 8# _works easily if copied in the main liblitmus directory
9# _need the Makefile in wip-pm-ovd litmus2010 branch to compile
10# smoothly
11# _assume a pm_raw_results directory under liblitmus to store
12# raw results
13# _assume tasksets are stored in several directories under
14# liblitmus with the name: PLUGIN-ts/uni1_TASKSETSIZE_[0..9].ts
15# e.g., GSN-EDF-ts/uni1_450_8.ts
16#
17# Original script by John Calandrino 2008
18# Changes by Andrea Bastoni 2010
8# 19#
9#for A in "PFAIR" "GSN-EDF" "C-EDF" "PSN-EDF"; 20#for A in "PFAIR" "GSN-EDF" "C-EDF" "PSN-EDF";
10for A in "GSN-EDF"; 21for A in "GSN-EDF";
@@ -29,7 +40,7 @@ do
29 e=`echo $inputline | awk -F' ' '{print $1}'` 40 e=`echo $inputline | awk -F' ' '{print $1}'`
30 p=`echo $inputline | awk -F' ' '{print $2}'` 41 p=`echo $inputline | awk -F' ' '{print $2}'`
31 c=`echo $inputline | awk -F' ' '{print $3}'` 42 c=`echo $inputline | awk -F' ' '{print $3}'`
32 ./rt_launch -w $e $p -p $c ./pm_task ../pm_raw_results/results_`expr $A`_`expr $W`_`expr $X`_`expr $Y`_`expr $TASK`.raw 43 ./rt_launch -w $e $p -p $c ./pm_task ./pm_raw_results/results_`expr $A`_`expr $W`_`expr $X`_`expr $Y`_`expr $TASK`.raw
33 TASK=`expr $TASK + 1` 44 TASK=`expr $TASK + 1`
34 done < `expr $A`-ts/uni1_`expr $X`_`expr $Y`.ts 45 done < `expr $A`-ts/uni1_`expr $X`_`expr $Y`.ts
35 ./release_ts -d 5000 46 ./release_ts -d 5000
diff --git a/scripts/test_single_taskset b/scripts/pm_test_single_taskset
index 232dc3b..232dc3b 100755
--- a/scripts/test_single_taskset
+++ b/scripts/pm_test_single_taskset
diff --git a/scripts/test_single_taskset_mtimes_long b/scripts/pm_test_single_taskset_mtimes_long
index 1b8100d..1b8100d 100755
--- a/scripts/test_single_taskset_mtimes_long
+++ b/scripts/pm_test_single_taskset_mtimes_long
diff --git a/scripts/test_single_taskset_mtimes_short b/scripts/pm_test_single_taskset_mtimes_short
index 0ae2093..0ae2093 100755
--- a/scripts/test_single_taskset_mtimes_short
+++ b/scripts/pm_test_single_taskset_mtimes_short
diff --git a/scripts/test_find b/scripts/test_find
index 6ef5921..003cbb4 100755
--- a/scripts/test_find
+++ b/scripts/test_find
@@ -1,4 +1,8 @@
1#!/bin/bash 1#!/bin/bash
2#
3# test_find: stress test with lot of suspending tasks
4# main purpose: bug hunting
5
2TASK=0 6TASK=0
3while read inputline; 7while read inputline;
4do 8do
diff --git a/scripts/test_get_arrays.py b/scripts/test_get_arrays.py
index a218b4e..cfe9fa7 100644
--- a/scripts/test_get_arrays.py
+++ b/scripts/test_get_arrays.py
@@ -1,5 +1,9 @@
1#!/usr/bin/python 1#!/usr/bin/python
2#
3# test_get_arrays: test program to verify and test C to Python pm interface
4#
2# recall: PYTHONPATH=".." python test_get_arrays.py :) 5# recall: PYTHONPATH=".." python test_get_arrays.py :)
6#
3import sys, pm 7import sys, pm
4 8
5args = sys.argv[1:] 9args = sys.argv[1:]
diff --git a/scripts/uni1_050_0.ts b/scripts/uni1_050_0.ts
new file mode 100644
index 0000000..b6768d8
--- /dev/null
+++ b/scripts/uni1_050_0.ts
@@ -0,0 +1,50 @@
17 75 0
22 34 0
31 78 0
47 86 0
51 22 0
61 12 0
73 63 0
84 37 0
98 89 0
104 58 0
111 50 0
126 52 0
134 68 0
143 80 0
154 49 0
161 30 0
172 63 0
181 14 0
191 12 0
202 61 0
214 58 0
221 41 0
236 53 0
244 37 0
258 99 0
261 33 0
271 79 0
287 75 0
291 27 0
303 38 0
313 54 0
322 24 0
331 32 0
341 82 0
356 79 0
364 48 0
373 65 0
387 83 0
392 95 0
402 13 0
411 21 0
424 78 0
433 65 0
446 97 0
452 92 0
464 37 0
471 67 0
487 93 0
493 57 0
502 71 0