diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-03-04 18:09:36 -0500 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-03-04 18:09:36 -0500 |
commit | f66c5c64dc8f884c65fc215b90c490bbfdd96b54 (patch) | |
tree | bf5498c333124fe94ded970e6875173b8e993dfd /scripts/test_get_arrays.py | |
parent | 6c6757681d65c4e4b547a0e03368c6b7cef78255 (diff) |
Add PM test scripts
Diffstat (limited to 'scripts/test_get_arrays.py')
-rw-r--r-- | scripts/test_get_arrays.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/test_get_arrays.py b/scripts/test_get_arrays.py new file mode 100644 index 0000000..a218b4e --- /dev/null +++ b/scripts/test_get_arrays.py | |||
@@ -0,0 +1,22 @@ | |||
1 | #!/usr/bin/python | ||
2 | # recall: PYTHONPATH=".." python test_get_arrays.py :) | ||
3 | import sys, pm | ||
4 | |||
5 | args = sys.argv[1:] | ||
6 | if len(args) != 1: | ||
7 | print "Filename required" | ||
8 | sys.exit(-1) | ||
9 | |||
10 | pm.load(args[0],0,4) | ||
11 | x = pm.getPreemption() | ||
12 | y = pm.getOnChipMigration() | ||
13 | z = pm.getL2Migration() | ||
14 | w = pm.getOffChipMigration() | ||
15 | print "preemption: " | ||
16 | print x | ||
17 | print "samechip:" | ||
18 | print y | ||
19 | print "l2:" | ||
20 | print z | ||
21 | print "offchip" | ||
22 | print w | ||