Process.py revision 3066
1from m5.config import *
2class Process(SimObject):
3    type = 'Process'
4    abstract = True
5    output = Param.String('cout', 'filename for stdout/stderr')
6    system = Param.System(Parent.any, "system process will run on")
7
8class LiveProcess(Process):
9    type = 'LiveProcess'
10    executable = Param.String('', "executable (overrides cmd[0] if set)")
11    cmd = VectorParam.String("command line (executable plus arguments)")
12    env = VectorParam.String('', "environment settings")
13    input = Param.String('cin', "filename for stdin")
14    uid = Param.Int(100, 'user id')
15    euid = Param.Int(100, 'effective user id')
16    gid = Param.Int(100, 'group id')
17    egid = Param.Int(100, 'effective group id')
18    pid = Param.Int(100, 'process id')
19    ppid = Param.Int(99, 'parent process id')
20
21class AlphaLiveProcess(LiveProcess):
22    type = 'AlphaLiveProcess'
23
24class SparcLiveProcess(LiveProcess):
25    type = 'SparcLiveProcess'
26
27class MipsLiveProcess(LiveProcess):
28    type = 'MipsLiveProcess'
29
30class EioProcess(Process):
31    type = 'EioProcess'
32    chkpt = Param.String('', "EIO checkpoint file name (optional)")
33    file = Param.String("EIO trace file name")
34