aboutsummaryrefslogtreecommitdiffstats
path: root/test_get_arrays.py
diff options
context:
space:
mode:
authorAndrea Bastoni <bastoni@cs.unc.edu>2010-03-02 16:33:14 -0500
committerAndrea Bastoni <bastoni@cs.unc.edu>2010-03-02 16:33:14 -0500
commit99421a2130c23cdec387d0482e454714c721531c (patch)
tree89984fe27e9ca9fd7ff3336e2371d84630eac98e /test_get_arrays.py
parentf0b9dc8a81893470af60b36384f4161d268f6c41 (diff)
Add simple python progam to test access to C ovd data
Diffstat (limited to 'test_get_arrays.py')
-rw-r--r--test_get_arrays.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/test_get_arrays.py b/test_get_arrays.py
new file mode 100644
index 0000000..74af08e
--- /dev/null
+++ b/test_get_arrays.py
@@ -0,0 +1,21 @@
1#!/usr/bin/python
2import sys, pm
3
4args = sys.argv[1:]
5if len(args) != 1:
6 print "Filename required"
7 sys.exit(-1)
8
9pm.load(args[0],0,4)
10x = pm.getPreemption()
11y = pm.getOnChipMigration()
12z = pm.getL2Migration()
13w = pm.getOffChipMigration()
14print "preemption: "
15print x
16print "samechip:"
17print y
18print "l2:"
19print z
20print "offchip"
21print w