Benchmarks.py (10512:b423e1d0735e) Benchmarks.py (10697:71c40e5c8bd4)
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:
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):
34 def __init__(self, script=None, mem=None, disk=None, rootdev=None):
35 self.scriptname = script
36 self.diskname = disk
37 self.memsize = mem
35 self.scriptname = script
36 self.diskname = disk
37 self.memsize = mem
38 self.root = rootdev
38
39 def script(self):
40 if self.scriptname:
41 return script(self.scriptname)
42 else:
43 return ''
44
45 def mem(self):

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

57 return env.get('LINUX_IMAGE', disk('x86root.img'))
58 elif buildEnv['TARGET_ISA'] == 'arm':
59 return env.get('LINUX_IMAGE', disk('linux-aarch32-ael.img'))
60 else:
61 print "Don't know what default disk image to use for %s ISA" % \
62 buildEnv['TARGET_ISA']
63 exit(1)
64
39
40 def script(self):
41 if self.scriptname:
42 return script(self.scriptname)
43 else:
44 return ''
45
46 def mem(self):

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

58 return env.get('LINUX_IMAGE', disk('x86root.img'))
59 elif buildEnv['TARGET_ISA'] == 'arm':
60 return env.get('LINUX_IMAGE', disk('linux-aarch32-ael.img'))
61 else:
62 print "Don't know what default disk image to use for %s ISA" % \
63 buildEnv['TARGET_ISA']
64 exit(1)
65
66 def rootdev(self):
67 if self.root:
68 return self.root
69 else:
70 return '/dev/sda1'
71
65# Benchmarks are defined as a key in a dict which is a list of SysConfigs
66# The first defined machine is the test system, the others are driving systems
67
68Benchmarks = {
69 'PovrayBench': [SysConfig('povray-bench.rcS', '512MB', 'povray.img')],
70 'PovrayAutumn': [SysConfig('povray-autumn.rcS', '512MB', 'povray.img')],
71
72 'NetperfStream': [SysConfig('netperf-stream-client.rcS'),

--- 54 unchanged lines hidden ---
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'),

--- 54 unchanged lines hidden ---