Brandon Potter has uploaded a new patch set (#7). (
https://gem5-review.googlesource.com/c/public/gem5/+/12119 )
Change subject: sim-se: add a pseudo-filesystem
......................................................................
sim-se: add a pseudo-filesystem
This change introduce the concept of a pseudo-filesystem
in gem5. The pseudo-filesystm works by creating a directory
structure in m5out (or whichever output dir the user specifies)
that system calls may be redirected to.
This is useful for cases where SE mode would introduce some
non-determinism due to reading files with varying path names
(e.g., variation from run to run if your gem5 job is scheduled
on a cluster where paths may change).
It is also useful for opening files that have information
specific to the host CPU, such as cache hierarchy or CPU
information. This is useful when running runtimes in
SE mode in the absence of a real OS kernel since many
runtime layers provide system-level services to user
space applications.
Change-Id: I90821b3b403168b904a662fa98b85def1628621c
---
A configs/common/FileSystemConfig.py
M configs/common/Options.py
M configs/example/se.py
M src/kern/linux/linux.cc
A src/sim/RedirectPath.py
M src/sim/SConscript
M src/sim/System.py
M src/sim/process.cc
M src/sim/process.hh
A src/sim/redirect_path.cc
A src/sim/redirect_path.hh
M src/sim/syscall_emul.cc
M src/sim/syscall_emul.hh
M src/sim/system.cc
M src/sim/system.hh
15 files changed, 593 insertions(+), 96 deletions(-)
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/12119
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I90821b3b403168b904a662fa98b85def1628621c
Gerrit-Change-Number: 12119
Gerrit-PatchSet: 7
Gerrit-Owner: Brandon Potter <[email protected]>
Gerrit-CC: Andreas Sandberg <[email protected]>
Gerrit-CC: Giacomo Travaglini <[email protected]>
Gerrit-CC: Jason Lowe-Power <[email protected]>
Gerrit-MessageType: newpatchset
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev