test.py revision 11851
13198SN/A# Copyright (c) 2006 The Regents of The University of Michigan 23198SN/A# All rights reserved. 33198SN/A# 43198SN/A# Redistribution and use in source and binary forms, with or without 53198SN/A# modification, are permitted provided that the following conditions are 63198SN/A# met: redistributions of source code must retain the above copyright 73198SN/A# notice, this list of conditions and the following disclaimer; 83198SN/A# redistributions in binary form must reproduce the above copyright 93198SN/A# notice, this list of conditions and the following disclaimer in the 103198SN/A# documentation and/or other materials provided with the distribution; 113198SN/A# neither the name of the copyright holders nor the names of its 123198SN/A# contributors may be used to endorse or promote products derived from 133198SN/A# this software without specific prior written permission. 143198SN/A# 153198SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 163198SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 173198SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 183198SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 193198SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 203198SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 213198SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 223198SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 233198SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 243198SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 253198SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 263198SN/A# 273198SN/A# Authors: Ron Dreslinski 283198SN/A 293198SN/A# workload 303198SN/Abenchmarks = [ 313198SN/A "tests/test-progs/hello/bin/alpha/linux/hello", "'hello'", 323198SN/A "tests/test-progs/hello/bin/alpha/linux/hello", "'hello'", 333198SN/A "tests/test-progs/hello/bin/alpha/linux/hello", "'hello'", 343198SN/A "tests/test-progs/hello/bin/alpha/linux/hello", "'hello'", 353198SN/A ] 363198SN/A 373198SN/Afor i, cpu in zip(range(len(cpus)), root.system.cpu): 3811851Sbrandon.potter@amd.com p = Process() 393198SN/A p.executable = benchmarks[i*2] 403198SN/A p.cmd = benchmarks[(i*2)+1] 413198SN/A root.system.cpu[i].workload = p 423198SN/A root.system.cpu[i].max_insts_all_threads = 10000000 4311851Sbrandon.potter@amd.com#root.system.cpu.workload = Process(cmd = 'hello', 4411851Sbrandon.potter@amd.com # executable = binpath('hello')) 45