From f66c5c64dc8f884c65fc215b90c490bbfdd96b54 Mon Sep 17 00:00:00 2001 From: Andrea Bastoni Date: Thu, 4 Mar 2010 18:09:36 -0500 Subject: Add PM test scripts --- scripts/test_get_arrays.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 scripts/test_get_arrays.py (limited to 'scripts/test_get_arrays.py') 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 @@ +#!/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 -- cgit v1.2.2