aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/test_get_arrays.py
blob: a218b4e10c6b8767684f626d49115e68db4805ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/python
# recall: PYTHONPATH=".." python test_get_arrays.py :)
import sys, pm

args = sys.argv[1:]
if len(args) != 1:
    print "Filename required"
    sys.exit(-1)

pm.load(args[0],0,4)
x = pm.getPreemption()
y = pm.getOnChipMigration()
z = pm.getL2Migration()
w = pm.getOffChipMigration()
print "preemption: "
print x
print "samechip:"
print y
print "l2:"
print z
print "offchip"
print w