diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-03-02 16:33:14 -0500 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-03-02 16:33:14 -0500 |
commit | 99421a2130c23cdec387d0482e454714c721531c (patch) | |
tree | 89984fe27e9ca9fd7ff3336e2371d84630eac98e /test_get_arrays.py | |
parent | f0b9dc8a81893470af60b36384f4161d268f6c41 (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.py | 21 |
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 | ||
2 | import sys, pm | ||
3 | |||
4 | args = sys.argv[1:] | ||
5 | if len(args) != 1: | ||
6 | print "Filename required" | ||
7 | sys.exit(-1) | ||
8 | |||
9 | pm.load(args[0],0,4) | ||
10 | x = pm.getPreemption() | ||
11 | y = pm.getOnChipMigration() | ||
12 | z = pm.getL2Migration() | ||
13 | w = pm.getOffChipMigration() | ||
14 | print "preemption: " | ||
15 | print x | ||
16 | print "samechip:" | ||
17 | print y | ||
18 | print "l2:" | ||
19 | print z | ||
20 | print "offchip" | ||
21 | print w | ||