Process.py revision 2378
16166Ssteve.reinhardt@amd.comfrom m5 import * 26166Ssteve.reinhardt@amd.comclass Process(SimObject): 36166Ssteve.reinhardt@amd.com type = 'Process' 46166Ssteve.reinhardt@amd.com abstract = True 56166Ssteve.reinhardt@amd.com output = Param.String('cout', 'filename for stdout/stderr') 66166Ssteve.reinhardt@amd.com system = Param.System(Parent.any, "system process will run on") 76166Ssteve.reinhardt@amd.com 86166Ssteve.reinhardt@amd.comclass LiveProcess(Process): 96166Ssteve.reinhardt@amd.com type = 'LiveProcess' 106166Ssteve.reinhardt@amd.com executable = Param.String('', "executable (overrides cmd[0] if set)") 116166Ssteve.reinhardt@amd.com cmd = VectorParam.String("command line (executable plus arguments)") 126166Ssteve.reinhardt@amd.com env = VectorParam.String('', "environment settings") 136166Ssteve.reinhardt@amd.com input = Param.String('cin', "filename for stdin") 146166Ssteve.reinhardt@amd.com 156166Ssteve.reinhardt@amd.comclass EioProcess(Process): 166166Ssteve.reinhardt@amd.com type = 'EioProcess' 176166Ssteve.reinhardt@amd.com chkpt = Param.String('', "EIO checkpoint file name (optional)") 186166Ssteve.reinhardt@amd.com file = Param.String("EIO trace file name") 196166Ssteve.reinhardt@amd.com