aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/test_get_arrays.py
diff options
context:
space:
mode:
authorAndrea Bastoni <bastoni@cs.unc.edu>2010-03-04 18:09:36 -0500
committerAndrea Bastoni <bastoni@cs.unc.edu>2010-03-04 18:09:36 -0500
commitf66c5c64dc8f884c65fc215b90c490bbfdd96b54 (patch)
treebf5498c333124fe94ded970e6875173b8e993dfd /scripts/test_get_arrays.py
parent6c6757681d65c4e4b547a0e03368c6b7cef78255 (diff)
Add PM test scripts
Diffstat (limited to 'scripts/test_get_arrays.py')
-rw-r--r--scripts/test_get_arrays.py22
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 :)
3import sys, pm
4
5args = sys.argv[1:]
6if len(args) != 1:
7 print "Filename required"
8 sys.exit(-1)
9
10pm.load(args[0],0,4)
11x = pm.getPreemption()
12y = pm.getOnChipMigration()
13z = pm.getL2Migration()
14w = pm.getOffChipMigration()
15print "preemption: "
16print x
17print "samechip:"
18print y
19print "l2:"
20print z
21print "offchip"
22print w