diff options
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 | ||