diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/README | 24 | ||||
| -rwxr-xr-x | scripts/pm_test_script (renamed from scripts/test_script) | 21 | ||||
| -rwxr-xr-x | scripts/pm_test_single_taskset (renamed from scripts/test_single_taskset) | 0 | ||||
| -rwxr-xr-x | scripts/pm_test_single_taskset_mtimes_long (renamed from scripts/test_single_taskset_mtimes_long) | 0 | ||||
| -rwxr-xr-x | scripts/pm_test_single_taskset_mtimes_short (renamed from scripts/test_single_taskset_mtimes_short) | 0 | ||||
| -rwxr-xr-x | scripts/test_find | 4 | ||||
| -rw-r--r-- | scripts/test_get_arrays.py | 4 | ||||
| -rw-r--r-- | scripts/uni1_050_0.ts | 50 |
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 @@ | |||
| 1 | This directory contains some scripts used for bug hunting, general testing | ||
| 2 | of Litmus and LibLitmus, Preemption and Migration overhead measurements etc. | ||
| 3 | |||
| 4 | When you add a script, please also add a brief description of the script here. | ||
| 5 | |||
| 6 | pm_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 | |||
| 11 | pm_test_single_taskset*: | ||
| 12 | preemption and migration test scripts. Mainly for debugging / bug hunting | ||
| 13 | |||
| 14 | test_find: | ||
| 15 | test script which spawns "find" tasks (which suspend frequently). | ||
| 16 | Mainly for debugging / bug hunting | ||
| 17 | |||
| 18 | uni1_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 | |||
| 23 | test_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"; |
| 10 | for A in "GSN-EDF"; | 21 | for 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 | |||
| 2 | TASK=0 | 6 | TASK=0 |
| 3 | while read inputline; | 7 | while read inputline; |
| 4 | do | 8 | do |
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 | # | ||
| 3 | import sys, pm | 7 | import sys, pm |
| 4 | 8 | ||
| 5 | args = sys.argv[1:] | 9 | args = 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 @@ | |||
| 1 | 7 75 0 | ||
| 2 | 2 34 0 | ||
| 3 | 1 78 0 | ||
| 4 | 7 86 0 | ||
| 5 | 1 22 0 | ||
| 6 | 1 12 0 | ||
| 7 | 3 63 0 | ||
| 8 | 4 37 0 | ||
| 9 | 8 89 0 | ||
| 10 | 4 58 0 | ||
| 11 | 1 50 0 | ||
| 12 | 6 52 0 | ||
| 13 | 4 68 0 | ||
| 14 | 3 80 0 | ||
| 15 | 4 49 0 | ||
| 16 | 1 30 0 | ||
| 17 | 2 63 0 | ||
| 18 | 1 14 0 | ||
| 19 | 1 12 0 | ||
| 20 | 2 61 0 | ||
| 21 | 4 58 0 | ||
| 22 | 1 41 0 | ||
| 23 | 6 53 0 | ||
| 24 | 4 37 0 | ||
| 25 | 8 99 0 | ||
| 26 | 1 33 0 | ||
| 27 | 1 79 0 | ||
| 28 | 7 75 0 | ||
| 29 | 1 27 0 | ||
| 30 | 3 38 0 | ||
| 31 | 3 54 0 | ||
| 32 | 2 24 0 | ||
| 33 | 1 32 0 | ||
| 34 | 1 82 0 | ||
| 35 | 6 79 0 | ||
| 36 | 4 48 0 | ||
| 37 | 3 65 0 | ||
| 38 | 7 83 0 | ||
| 39 | 2 95 0 | ||
| 40 | 2 13 0 | ||
| 41 | 1 21 0 | ||
| 42 | 4 78 0 | ||
| 43 | 3 65 0 | ||
| 44 | 6 97 0 | ||
| 45 | 2 92 0 | ||
| 46 | 4 37 0 | ||
| 47 | 1 67 0 | ||
| 48 | 7 93 0 | ||
| 49 | 3 57 0 | ||
| 50 | 2 71 0 | ||
