From 269025c216e4245f2b10927630130db89fddf4c8 Mon Sep 17 00:00:00 2001 From: Andrea Bastoni Date: Mon, 12 Apr 2010 23:27:51 -0400 Subject: Add various test scripts - also useful for normal debugging, not just PM --- scripts/test_get_arrays.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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..cfe9fa7 --- /dev/null +++ b/scripts/test_get_arrays.py @@ -0,0 +1,26 @@ +#!/usr/bin/python +# +# test_get_arrays: test program to verify and test C to Python pm interface +# +# 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