1# Copyright (c) 2006-2007 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 17 unchanged lines hidden (view full) --- 26# 27# Authors: Ali Saidi 28 29from SysPaths import script, disk, binary 30from os import environ as env 31from m5.defines import buildEnv 32 33class SysConfig: |
34 def __init__(self, script=None, mem=None, disk=None, rootdev=None, 35 os_type='linux'): |
36 self.scriptname = script 37 self.diskname = disk 38 self.memsize = mem 39 self.root = rootdev |
40 self.ostype = os_type |
41 42 def script(self): 43 if self.scriptname: 44 return script(self.scriptname) 45 else: 46 return '' 47 48 def mem(self): --- 17 unchanged lines hidden (view full) --- 66 exit(1) 67 68 def rootdev(self): 69 if self.root: 70 return self.root 71 else: 72 return '/dev/sda1' 73 |
74 def os_type(self): 75 return self.ostype 76 |
77# Benchmarks are defined as a key in a dict which is a list of SysConfigs 78# The first defined machine is the test system, the others are driving systems 79 80Benchmarks = { 81 'PovrayBench': [SysConfig('povray-bench.rcS', '512MB', 'povray.img')], 82 'PovrayAutumn': [SysConfig('povray-autumn.rcS', '512MB', 'povray.img')], 83 84 'NetperfStream': [SysConfig('netperf-stream-client.rcS'), --- 34 unchanged lines hidden (view full) --- 119 'ValSysLat': [SysConfig('micro_syscall.rcS', '512MB')], 120 'ValCtxLat': [SysConfig('micro_ctx.rcS', '512MB')], 121 'ValStream': [SysConfig('micro_stream.rcS', '512MB')], 122 'ValStreamScale': [SysConfig('micro_streamscale.rcS', '512MB')], 123 'ValStreamCopy': [SysConfig('micro_streamcopy.rcS', '512MB')], 124 125 'MutexTest': [SysConfig('mutex-test.rcS', '128MB')], 126 'ArmAndroid-GB': [SysConfig('null.rcS', '256MB', |
127 'ARMv7a-Gingerbread-Android.SMP.mouse.nolock.clean.img', 128 None, 'android-gingerbread')], |
129 'bbench-gb': [SysConfig('bbench-gb.rcS', '256MB', |
130 'ARMv7a-Gingerbread-Android.SMP.mouse.nolock.img', 131 None, 'android-gingerbread')], |
132 'ArmAndroid-ICS': [SysConfig('null.rcS', '256MB', |
133 'ARMv7a-ICS-Android.SMP.nolock.clean.img', 134 None, 'android-ics')], |
135 'bbench-ics': [SysConfig('bbench-ics.rcS', '256MB', |
136 'ARMv7a-ICS-Android.SMP.nolock.img', 137 None, 'android-ics')] |
138} 139 140benchs = Benchmarks.keys() 141benchs.sort() 142DefinedBenchmarks = ", ".join(benchs) |