summaryrefslogtreecommitdiffstats
path: root/scripts/test_get_arrays.py
diff options
context:
space:
mode:
authorAndrea Bastoni <bastoni@cs.unc.edu>2010-04-12 23:27:51 -0400
committerAndrea Bastoni <bastoni@cs.unc.edu>2010-04-12 23:27:51 -0400
commit269025c216e4245f2b10927630130db89fddf4c8 (patch)
tree49f513db666af952d38cdfda6d7ae2c6de6f4f82 /scripts/test_get_arrays.py
parent4538f7e4fcaa3bf199377b9b735562e53cd1c7d3 (diff)
Add various test scripts
- also useful for normal debugging, not just PM
Diffstat (limited to 'scripts/test_get_arrays.py')
-rw-r--r--scripts/test_get_arrays.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/scripts/test_get_arrays.py b/scripts/test_get_arrays.py
new file mode 100644
index 0000000..cfe9fa7
--- /dev/null
+++ b/scripts/test_get_arrays.py
@@ -0,0 +1,26 @@
1#!/usr/bin/python
2#
3# test_get_arrays: test program to verify and test C to Python pm interface
4#
5# recall: PYTHONPATH=".." python test_get_arrays.py :)
6#
7import sys, pm
8
9args = sys.argv[1:]
10if len(args) != 1:
11 print "Filename required"
12 sys.exit(-1)
13
14pm.load(args[0],0,4)
15x = pm.getPreemption()
16y = pm.getOnChipMigration()
17z = pm.getL2Migration()
18w = pm.getOffChipMigration()
19print "preemption: "
20print x
21print "samechip:"
22print y
23print "l2:"
24print z
25print "offchip"
26print w