Deleted Added
sdiff udiff text old ( 10697:71c40e5c8bd4 ) new ( 10747:3fe41011333d )
full compact
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 self.scriptname = script
36 self.diskname = disk
37 self.memsize = mem
38 self.root = rootdev
39
40 def script(self):
41 if self.scriptname:
42 return script(self.scriptname)
43 else:
44 return ''
45
46 def mem(self):

--- 17 unchanged lines hidden (view full) ---

64 exit(1)
65
66 def rootdev(self):
67 if self.root:
68 return self.root
69 else:
70 return '/dev/sda1'
71
72# Benchmarks are defined as a key in a dict which is a list of SysConfigs
73# The first defined machine is the test system, the others are driving systems
74
75Benchmarks = {
76 'PovrayBench': [SysConfig('povray-bench.rcS', '512MB', 'povray.img')],
77 'PovrayAutumn': [SysConfig('povray-autumn.rcS', '512MB', 'povray.img')],
78
79 'NetperfStream': [SysConfig('netperf-stream-client.rcS'),

--- 34 unchanged lines hidden (view full) ---

114 'ValSysLat': [SysConfig('micro_syscall.rcS', '512MB')],
115 'ValCtxLat': [SysConfig('micro_ctx.rcS', '512MB')],
116 'ValStream': [SysConfig('micro_stream.rcS', '512MB')],
117 'ValStreamScale': [SysConfig('micro_streamscale.rcS', '512MB')],
118 'ValStreamCopy': [SysConfig('micro_streamcopy.rcS', '512MB')],
119
120 'MutexTest': [SysConfig('mutex-test.rcS', '128MB')],
121 'ArmAndroid-GB': [SysConfig('null.rcS', '256MB',
122 'ARMv7a-Gingerbread-Android.SMP.mouse.nolock.clean.img')],
123 'bbench-gb': [SysConfig('bbench-gb.rcS', '256MB',
124 'ARMv7a-Gingerbread-Android.SMP.mouse.nolock.img')],
125 'ArmAndroid-ICS': [SysConfig('null.rcS', '256MB',
126 'ARMv7a-ICS-Android.SMP.nolock.clean.img')],
127 'bbench-ics': [SysConfig('bbench-ics.rcS', '256MB',
128 'ARMv7a-ICS-Android.SMP.nolock.img')]
129}
130
131benchs = Benchmarks.keys()
132benchs.sort()
133DefinedBenchmarks = ", ".join(benchs)