sim-se: add a faux-filesystem
This change introduces the concept of a faux-filesystem. The faux-filesystem creates a directory structure in m5out (or whatever output dir the user specifies) where system calls may be redirected. This is useful to avoid non-determinism when reading files with varying path names (e.g., variations from run-to-run if the simulation is scheduled on a cluster where paths may change). Also, this changeset allows circumventing host pseudofiles which have information specific to the host processor (such as cache hierarchy or processor information). Bypassing host pseudofiles can be useful when executing runtimes in the absence of an operating system kernel since runtimes may try to query standard files (i.e. /proc or /sys) which are not relevant to an application executing in syscall emulation mode. Change-Id: I90821b3b403168b904a662fa98b85def1628621c Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/12119 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Jason Lowe-Power <jason@lowepower.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
committed by
Brandon Potter
parent
e8d0b755ea
commit
54c77aa055
@@ -29,6 +29,7 @@
|
||||
from m5.SimObject import *
|
||||
from m5.params import *
|
||||
from m5.proxy import *
|
||||
from os import getcwd
|
||||
|
||||
class Process(SimObject):
|
||||
type = 'Process'
|
||||
@@ -58,7 +59,7 @@ class Process(SimObject):
|
||||
executable = Param.String('', "executable (overrides cmd[0] if set)")
|
||||
cmd = VectorParam.String("command line (executable plus arguments)")
|
||||
env = VectorParam.String([], "environment settings")
|
||||
cwd = Param.String('', "current working directory")
|
||||
cwd = Param.String(getcwd(), "current working directory")
|
||||
simpoint = Param.UInt64(0, 'simulation point at which to start simulation')
|
||||
drivers = VectorParam.EmulatedDriver([], 'Available emulated drivers')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user