gem5 v24.0.0.0
|
#include <process.hh>
Classes | |
class | Loader |
Each instance of a Loader subclass will have a chance to try to load an object file when tryLoaders is called. More... | |
Public Member Functions | |
Process (const ProcessParams ¶ms, EmulationPageTable *pTable, loader::ObjectFile *obj_file) | |
void | serialize (CheckpointOut &cp) const override |
Serialize an object. | |
void | unserialize (CheckpointIn &cp) override |
Unserialize an object. | |
void | init () override |
init() is called after all C++ SimObjects have been created and all ports are connected. | |
void | initState () override |
initState() is called on each SimObject when not restoring from a checkpoint. | |
DrainState | drain () override |
Draining is the process of clearing out the states of SimObjects.These are the SimObjects that are partially executed or are partially in flight. | |
virtual void | syscall (ThreadContext *tc) |
uint64_t | uid () |
uint64_t | euid () |
uint64_t | gid () |
uint64_t | egid () |
uint64_t | pid () |
uint64_t | ppid () |
uint64_t | pgid () |
void | pgid (uint64_t pgid) |
uint64_t | tgid () |
const char * | progName () const |
EmulatedDriver * | findDriver (std::string filename) |
Find an emulated device driver. | |
void | updateBias () |
Addr | getBias () |
Addr | getStartPC () |
loader::ObjectFile * | getInterpreter () |
void | allocateMem (Addr vaddr, int64_t size, bool clobber=false) |
bool | fixupFault (Addr vaddr) |
Attempt to fix up a fault at vaddr by allocating a page on the stack. | |
void | assignThreadContext (ContextID context_id) |
void | revokeThreadContext (int context_id) |
After delegating a thread context to a child process no longer should relate to the ThreadContext. | |
virtual bool | mmapGrowsDown () const |
Does mmap region grow upward or downward from mmapEnd? Most platforms grow downward, but a few (such as Alpha) grow upward instead, so they can override this method to return false. | |
bool | map (Addr vaddr, Addr paddr, int64_t size, bool cacheable=true) |
Maps a contiguous range of virtual addresses in this process's address space to a contiguous range of physical addresses. | |
void | replicatePage (Addr vaddr, Addr new_paddr, ThreadContext *old_tc, ThreadContext *new_tc, bool alloc_page) |
virtual void | clone (ThreadContext *old_tc, ThreadContext *new_tc, Process *new_p, RegVal flags) |
std::string | absolutePath (const std::string &path, bool host_fs) |
Return an absolute path given a relative path paired with the current working directory of the process running under simulation. | |
std::string | checkPathRedirect (const std::string &filename) |
Redirect file path if it matches any keys initialized by system object. | |
Public Member Functions inherited from gem5::SimObject | |
const Params & | params () const |
SimObject (const Params &p) | |
virtual | ~SimObject () |
virtual void | loadState (CheckpointIn &cp) |
loadState() is called on each SimObject when restoring from a checkpoint. | |
virtual void | regProbePoints () |
Register probe points for this object. | |
virtual void | regProbeListeners () |
Register probe listeners for this object. | |
ProbeManager * | getProbeManager () |
Get the probe manager for this object. | |
virtual Port & | getPort (const std::string &if_name, PortID idx=InvalidPortID) |
Get a port with a given name and index. | |
virtual void | startup () |
startup() is the final initialization call before simulation. | |
DrainState | drain () override |
Provide a default implementation of the drain interface for objects that don't need draining. | |
virtual void | memWriteback () |
Write back dirty buffers to memory using functional writes. | |
virtual void | memInvalidate () |
Invalidate the contents of memory buffers. | |
void | serialize (CheckpointOut &cp) const override |
Serialize an object. | |
void | unserialize (CheckpointIn &cp) override |
Unserialize an object. | |
Public Member Functions inherited from gem5::EventManager | |
EventQueue * | eventQueue () const |
void | schedule (Event &event, Tick when) |
void | deschedule (Event &event) |
void | reschedule (Event &event, Tick when, bool always=false) |
void | schedule (Event *event, Tick when) |
void | deschedule (Event *event) |
void | reschedule (Event *event, Tick when, bool always=false) |
void | wakeupEventQueue (Tick when=(Tick) -1) |
This function is not needed by the usual gem5 event loop but may be necessary in derived EventQueues which host gem5 on other schedulers. | |
void | setCurTick (Tick newVal) |
EventManager (EventManager &em) | |
Event manger manages events in the event queue. | |
EventManager (EventManager *em) | |
EventManager (EventQueue *eq) | |
Public Member Functions inherited from gem5::Serializable | |
Serializable () | |
virtual | ~Serializable () |
void | serializeSection (CheckpointOut &cp, const char *name) const |
Serialize an object into a new section. | |
void | serializeSection (CheckpointOut &cp, const std::string &name) const |
void | unserializeSection (CheckpointIn &cp, const char *name) |
Unserialize an a child object. | |
void | unserializeSection (CheckpointIn &cp, const std::string &name) |
Public Member Functions inherited from gem5::Drainable | |
DrainState | drainState () const |
Return the current drain state of an object. | |
virtual void | notifyFork () |
Notify a child process of a fork. | |
Public Member Functions inherited from gem5::statistics::Group | |
Group (Group *parent, const char *name=nullptr) | |
Construct a new statistics group. | |
virtual | ~Group () |
virtual void | regStats () |
Callback to set stat parameters. | |
virtual void | resetStats () |
Callback to reset stats. | |
virtual void | preDumpStats () |
Callback before stats are dumped. | |
void | addStat (statistics::Info *info) |
Register a stat with this group. | |
const std::map< std::string, Group * > & | getStatGroups () const |
Get all child groups associated with this object. | |
const std::vector< Info * > & | getStats () const |
Get all stats associated with this object. | |
void | addStatGroup (const char *name, Group *block) |
Add a stat block as a child of this block. | |
const Info * | resolveStat (std::string name) const |
Resolve a stat by its name within this group. | |
void | mergeStatGroup (Group *block) |
Merge the contents (stats & children) of a block to this block. | |
Group ()=delete | |
Group (const Group &)=delete | |
Group & | operator= (const Group &)=delete |
Public Member Functions inherited from gem5::Named | |
Named (const std::string &name_) | |
virtual | ~Named ()=default |
virtual std::string | name () const |
Static Public Member Functions | |
static Process * | tryLoaders (const ProcessParams ¶ms, loader::ObjectFile *obj_file) |
Static Public Member Functions inherited from gem5::SimObject | |
static void | serializeAll (const std::string &cpt_dir) |
Create a checkpoint by serializing all SimObjects in the system. | |
static SimObject * | find (const char *name) |
Find the SimObject with the given name and return a pointer to it. | |
static void | setSimObjectResolver (SimObjectResolver *resolver) |
There is a single object name resolver, and it is only set when simulation is restoring from checkpoints. | |
static SimObjectResolver * | getSimObjectResolver () |
There is a single object name resolver, and it is only set when simulation is restoring from checkpoints. | |
Static Public Member Functions inherited from gem5::Serializable | |
static const std::string & | currentSection () |
Gets the fully-qualified name of the active section. | |
static void | generateCheckpointOut (const std::string &cpt_dir, std::ofstream &outstream) |
Generate a checkpoint file so that the serialization can be routed to it. | |
Public Attributes | |
std::vector< ContextID > | contextIds |
System * | system |
SEWorkload * | seWorkload |
bool | useArchPT |
bool | kvmInSE |
bool | useForClone |
EmulationPageTable * | pTable |
std::unique_ptr< SETranslatingPortProxy > | initVirtMem |
loader::ObjectFile * | objFile |
loader::MemoryImage | image |
loader::MemoryImage | interpImage |
std::vector< std::string > | argv |
std::vector< std::string > | envp |
std::string | executable |
std::string | tgtCwd |
The cwd members are used to track changes to the current working directory for the purpose of executing system calls which depend on relative paths (i.e. | |
std::string | hostCwd |
std::string | release |
uint64_t | _uid |
uint64_t | _euid |
uint64_t | _gid |
uint64_t | _egid |
uint64_t | _pid |
uint64_t | _ppid |
uint64_t | _pgid |
uint64_t | _tgid |
std::vector< EmulatedDriver * > | drivers |
std::shared_ptr< FDArray > | fds |
bool * | exitGroup |
std::shared_ptr< MemState > | memState |
uint64_t | childClearTID |
Calls a futex wakeup at the address specified by this pointer when this process exits. | |
bool * | sigchld |
std::vector< ContextID > | vforkContexts |
statistics::Scalar | numSyscalls |
Additional Inherited Members | |
Public Types inherited from gem5::SimObject | |
typedef SimObjectParams | Params |
Protected Member Functions inherited from gem5::Drainable | |
Drainable () | |
virtual | ~Drainable () |
virtual void | drainResume () |
Resume execution after a successful drain. | |
void | signalDrainDone () const |
Signal that an object is drained. | |
Protected Attributes inherited from gem5::SimObject | |
const SimObjectParams & | _params |
Cached copy of the object parameters. | |
Protected Attributes inherited from gem5::EventManager | |
EventQueue * | eventq |
A pointer to this object's event queue. | |
Definition at line 67 of file process.hh.
gem5::Process::Process | ( | const ProcessParams & | params, |
EmulationPageTable * | pTable, | ||
loader::ObjectFile * | obj_file ) |
Linux bundles together processes into this concept called a thread group. The thread group is responsible for recording which processes behave as threads within a process context. The thread group leader is the process who's tgid is equal to its pid. Other processes which belong to the thread group, but do not lead the thread group, are treated as child threads. These threads are created by the clone system call with options specified to create threads (differing from the options used to implement a fork). By default, set up the tgid/pid with a new, equivalent value. If CLONE_THREAD is specified, patch the tgid value with the old process' value.
Definition at line 113 of file process.cc.
References _pid, _tgid, gem5::loader::ImageFile::buildImage(), gem5::loader::debugSymbolTable, exitGroup, fatal_if, image, gem5::System::maxPID, objFile, gem5::SimObject::params(), gem5::System::PIDs, seWorkload, sigchld, gem5::loader::ObjectFile::symtab(), and system.
std::string gem5::Process::absolutePath | ( | const std::string & | path, |
bool | host_fs ) |
Return an absolute path given a relative path paired with the current working directory of the process running under simulation.
path | The relative path (generally a filename) that needs the current working directory prepended. |
host_fs | A flag which determines whether to return a path for the host filesystem or the filesystem of the process running under simulation. Only matters if filesysem redirection is used to replace files (or directories) that would normally appear via the host filesystem. |
Definition at line 505 of file process.cc.
References hostCwd, gem5::normalize(), gem5::startswith(), and tgtCwd.
Referenced by checkPathRedirect().
void gem5::Process::allocateMem | ( | Addr | vaddr, |
int64_t | size, | ||
bool | clobber = false ) |
Definition at line 317 of file process.cc.
References gem5::SEWorkload::allocPhysPages(), gem5::EmulationPageTable::Clobber, gem5::divCeil(), gem5::EmulationPageTable::lookup(), gem5::EmulationPageTable::map(), gem5::EmulationPageTable::pageSize(), pTable, gem5::roundDown(), seWorkload, gem5::MipsISA::vaddr, and warn.
Referenced by gem5::MemState::fixupFault(), gem5::SETranslatingPortProxy::fixupRange(), gem5::ArmLinuxProcess32::initState(), and gem5::Shader::mmap().
|
inline |
Definition at line 130 of file process.hh.
References contextIds.
Referenced by gem5::doClone(), gem5::execveFunc(), and gem5::BaseCPU::registerThreadContexts().
std::string gem5::Process::checkPathRedirect | ( | const std::string & | filename | ) |
Redirect file path if it matches any keys initialized by system object.
filename | An input parameter containing either a relative path or an absolute path. If given a relative path, the path will be prepended to the current working directory of the simulation with respect to the host filesystem. |
Definition at line 424 of file process.cc.
References absolutePath(), gem5::Serializable::path, gem5::System::redirectPaths, gem5::startswith(), and system.
Referenced by gem5::accessImpl(), gem5::chdirFunc(), gem5::chownImpl(), gem5::fchmodatFunc(), gem5::fstatat64Func(), gem5::futimesatFunc(), gem5::lstat64Func(), gem5::lstatFunc(), gem5::mkdirImpl(), gem5::mknodImpl(), gem5::newfstatatFunc(), gem5::readlinkatFunc(), gem5::renameImpl(), gem5::rmdirImpl(), gem5::statfsFunc(), gem5::statFunc(), gem5::statxFunc(), gem5::truncate64Func(), gem5::truncateFunc(), gem5::unlinkImpl(), and gem5::FDArray::unserialize().
|
virtual |
Share the process memory address space between the new process and the old process. Changes in one will be visible in the other due to the pointer use.
Duplicate the process memory address space. The state needs to be copied over (rather than using pointers to share everything).
The parent and child file descriptors are shared because the two FDArray pointers are pointing to the same FDArray. Opening and closing file descriptors will be visible to both processes.
Copy the file descriptors from the old process into the new child process. The file descriptors entry can be opened and closed independently of the other process being considered. The host file descriptors are also dup'd so that the flags for the host file descriptor is independent of the other process.
Reimplemented in gem5::X86ISA::I386Process, gem5::X86ISA::X86_64Process, and gem5::X86ISA::X86Process.
Definition at line 167 of file process.cc.
References _tgid, argv, CLONE_FILES, CLONE_THREAD, CLONE_VFORK, CLONE_VM, gem5::ThreadContext::contextId(), envp, exitGroup, fds, flags, gem5::EmulationPageTable::getMappings(), memState, pTable, replicatePage(), gem5::EmulationPageTable::translate(), gem5::MipsISA::vaddr, and vforkContexts.
Referenced by gem5::X86ISA::X86Process::clone().
|
overridevirtual |
Draining is the process of clearing out the states of SimObjects.These are the SimObjects that are partially executed or are partially in flight.
Draining is mostly used before forking and creating a check point.
This function notifies an object that it needs to drain its state.
If the object does not need further simulation to drain internal buffers, it returns DrainState::Drained and automatically switches to the Drained state. If the object needs more simulation, it returns DrainState::Draining and automatically enters the Draining state. Other return values are invalid.
Implements gem5::Drainable.
Definition at line 310 of file process.cc.
References gem5::Drained, and fds.
|
inline |
Definition at line 85 of file process.hh.
References _egid.
Referenced by gem5::ArmProcess::argsInit(), gem5::MipsProcess::argsInit(), gem5::PowerProcess::argsInit(), gem5::SparcProcess::argsInit(), gem5::X86ISA::X86Process::argsInit(), and gem5::getegidFunc().
|
inline |
Definition at line 83 of file process.hh.
References _euid.
Referenced by gem5::ArmProcess::argsInit(), gem5::MipsProcess::argsInit(), gem5::PowerProcess::argsInit(), gem5::SparcProcess::argsInit(), gem5::X86ISA::X86Process::argsInit(), and gem5::geteuidFunc().
EmulatedDriver * gem5::Process::findDriver | ( | std::string | filename | ) |
Find an emulated device driver.
filename | Name of the device (under /dev) |
Definition at line 413 of file process.cc.
References gem5::ArmISA::d, and drivers.
bool gem5::Process::fixupFault | ( | Addr | vaddr | ) |
Attempt to fix up a fault at vaddr by allocating a page on the stack.
Definition at line 365 of file process.cc.
References memState, and gem5::MipsISA::vaddr.
Referenced by gem5::GenericPageTableFault::invoke(), and gem5::X86ISA::PageFault::invoke().
Addr gem5::Process::getBias | ( | ) |
Definition at line 489 of file process.cc.
References gem5::loader::ObjectFile::bias(), getInterpreter(), and objFile.
Referenced by gem5::ArmProcess::argsInit(), gem5::MipsProcess::argsInit(), gem5::PowerProcess::argsInit(), gem5::SparcProcess::argsInit(), and gem5::X86ISA::X86Process::argsInit().
loader::ObjectFile * gem5::Process::getInterpreter | ( | ) |
Definition at line 483 of file process.cc.
References gem5::loader::ObjectFile::getInterpreter(), and objFile.
Referenced by getBias(), and getStartPC().
Addr gem5::Process::getStartPC | ( | ) |
Definition at line 497 of file process.cc.
References gem5::loader::ObjectFile::entryPoint(), getInterpreter(), and objFile.
Referenced by gem5::ArmProcess::argsInit(), gem5::MipsProcess::argsInit(), gem5::PowerProcess::argsInit(), gem5::RiscvProcess::argsInit(), gem5::SparcProcess::argsInit(), gem5::X86ISA::X86Process::argsInit(), and gem5::PowerProcess::initState().
|
inline |
Definition at line 84 of file process.hh.
References _gid.
Referenced by gem5::ArmProcess::argsInit(), gem5::MipsProcess::argsInit(), gem5::PowerProcess::argsInit(), gem5::SparcProcess::argsInit(), gem5::X86ISA::X86Process::argsInit(), and gem5::getgidFunc().
|
overridevirtual |
init() is called after all C++ SimObjects have been created and all ports are connected.
Initializations that are independent of unserialization but rely on a fully instantiated and connected SimObject graph should be done here.
Reimplemented from gem5::SimObject.
Definition at line 278 of file process.cc.
References gem5::loader::ImageFile::buildImage(), gem5::loader::ObjectFile::getInterpreter(), interpImage, objFile, and updateBias().
Referenced by gem5::execveFunc().
|
overridevirtual |
initState() is called on each SimObject when not restoring from a checkpoint.
This provides a hook for state initializations that are only required for a "cold start".
Reimplemented from gem5::SimObject.
Reimplemented in gem5::RiscvProcess32, gem5::RiscvProcess64, gem5::Sparc32Process, gem5::Sparc64Process, gem5::SparcProcess, and gem5::X86ISA::X86_64Process.
Definition at line 288 of file process.cc.
References gem5::ThreadContext::activate(), gem5::SETranslatingPortProxy::Always, contextIds, fatal, image, gem5::EmulationPageTable::initState(), initVirtMem, interpImage, gem5::Named::name(), pTable, system, gem5::System::threads, and gem5::loader::MemoryImage::write().
Referenced by gem5::doClone(), gem5::execveFunc(), gem5::ArmProcess32::initState(), gem5::ArmProcess64::initState(), gem5::MipsProcess::initState(), gem5::PowerProcess::initState(), gem5::RiscvProcess32::initState(), gem5::RiscvProcess64::initState(), gem5::SparcProcess::initState(), and gem5::X86ISA::X86_64Process::initState().
Maps a contiguous range of virtual addresses in this process's address space to a contiguous range of physical addresses.
This function exists primarily to expose the map operation to python, so that configuration scripts can set up mappings in SE mode.
vaddr | The starting virtual address of the range. |
paddr | The starting physical address of the range. |
size | The length of the range in bytes. |
cacheable | Specifies whether accesses are cacheable. |
Definition at line 404 of file process.cc.
References gem5::EmulationPageTable::map(), pTable, gem5::EmulationPageTable::Uncacheable, and gem5::MipsISA::vaddr.
|
inlinevirtual |
Does mmap region grow upward or downward from mmapEnd? Most platforms grow downward, but a few (such as Alpha) grow upward instead, so they can override this method to return false.
Reimplemented in gem5::RiscvProcess.
Definition at line 146 of file process.hh.
Referenced by gem5::MemState::extendMmap(), gem5::Shader::mmap(), and updateBias().
|
inline |
Definition at line 88 of file process.hh.
References _pgid.
Referenced by gem5::getpgrpFunc(), and gem5::setpgidFunc().
|
inline |
|
inline |
Definition at line 86 of file process.hh.
References _pid.
Referenced by gem5::doClone(), gem5::exitImpl(), gem5::gettidFunc(), gem5::setpgidFunc(), and gem5::tgkillFunc().
|
inline |
|
inline |
Definition at line 92 of file process.hh.
References executable.
void gem5::Process::replicatePage | ( | Addr | vaddr, |
Addr | new_paddr, | ||
ThreadContext * | old_tc, | ||
ThreadContext * | new_tc, | ||
bool | alloc_page ) |
Definition at line 347 of file process.cc.
References gem5::SEWorkload::allocPhysPages(), gem5::EmulationPageTable::map(), gem5::EmulationPageTable::pageSize(), pTable, gem5::PortProxy::readBlob(), seWorkload, gem5::MipsISA::vaddr, and gem5::PortProxy::writeBlob().
Referenced by clone().
void gem5::Process::revokeThreadContext | ( | int | context_id | ) |
After delegating a thread context to a child process no longer should relate to the ThreadContext.
Definition at line 265 of file process.cc.
References contextIds, and warn.
Referenced by gem5::doClone().
|
overridevirtual |
Serialize an object.
Output an object's state into the current checkpoint section.
cp | Checkpoint state |
Checkpoints for pipes, device drivers or sockets currently do not work. Need to come back and fix them at a later date.
Implements gem5::Serializable.
Definition at line 371 of file process.cc.
References fds, memState, pTable, gem5::EmulationPageTable::serialize(), and warn.
|
inlinevirtual |
Definition at line 80 of file process.hh.
References numSyscalls.
Referenced by gem5::SEWorkload::syscall().
|
inline |
Definition at line 90 of file process.hh.
References _tgid.
Referenced by gem5::exitImpl(), gem5::getpidFunc(), and gem5::tgkillFunc().
|
static |
Definition at line 93 of file process.cc.
References gem5::MipsISA::p, and gem5::SimObject::params().
|
inline |
Definition at line 82 of file process.hh.
References _uid.
Referenced by gem5::ArmProcess::argsInit(), gem5::MipsProcess::argsInit(), gem5::PowerProcess::argsInit(), gem5::SparcProcess::argsInit(), gem5::X86ISA::X86Process::argsInit(), and gem5::getuidFunc().
|
overridevirtual |
Unserialize an object.
Read an object's state from the current checkpoint section.
cp | Checkpoint state |
Checkpoints for pipes, device drivers or sockets currently do not work. Need to come back and fix them at a later date.
Implements gem5::Serializable.
Definition at line 386 of file process.cc.
References fds, memState, pTable, gem5::EmulationPageTable::unserialize(), and warn.
void gem5::Process::updateBias | ( | ) |
Definition at line 457 of file process.cc.
References gem5::loader::ObjectFile::getInterpreter(), memState, mmapGrowsDown(), objFile, gem5::EmulationPageTable::pageSize(), pTable, and gem5::roundUp().
Referenced by init().
uint64_t gem5::Process::_egid |
Definition at line 275 of file process.hh.
Referenced by egid().
uint64_t gem5::Process::_euid |
Definition at line 273 of file process.hh.
Referenced by euid().
uint64_t gem5::Process::_gid |
Definition at line 274 of file process.hh.
Referenced by gid().
uint64_t gem5::Process::_pgid |
Definition at line 280 of file process.hh.
uint64_t gem5::Process::_pid |
Definition at line 278 of file process.hh.
Referenced by gem5::SparcProcess::initState(), pid(), and Process().
uint64_t gem5::Process::_ppid |
Definition at line 279 of file process.hh.
Referenced by ppid().
uint64_t gem5::Process::_tgid |
Definition at line 281 of file process.hh.
uint64_t gem5::Process::_uid |
Definition at line 272 of file process.hh.
Referenced by uid().
std::vector<std::string> gem5::Process::argv |
Definition at line 226 of file process.hh.
Referenced by gem5::ArmProcess::argsInit(), gem5::MipsProcess::argsInit(), gem5::PowerProcess::argsInit(), gem5::RiscvProcess::argsInit(), gem5::SparcProcess::argsInit(), gem5::X86ISA::X86Process::argsInit(), and clone().
uint64_t gem5::Process::childClearTID |
Calls a futex wakeup at the address specified by this pointer when this process exits.
Definition at line 295 of file process.hh.
Referenced by gem5::doClone(), and gem5::setTidAddressFunc().
std::vector<ContextID> gem5::Process::contextIds |
Definition at line 170 of file process.hh.
Referenced by gem5::ArmProcess::argsInit(), gem5::MipsProcess::argsInit(), gem5::PowerProcess::argsInit(), gem5::RiscvProcess::argsInit(), gem5::SparcProcess::argsInit(), gem5::X86ISA::X86Process::argsInit(), gem5::ArmProcess64::armHwcapImpl(), gem5::ArmProcess64::armHwcapImpl2(), assignThreadContext(), gem5::MemState::fixupFault(), gem5::ArmLinuxProcess32::initState(), gem5::ArmProcess32::initState(), gem5::ArmProcess64::initState(), gem5::PowerProcess::initState(), initState(), gem5::RiscvProcess32::initState(), gem5::RiscvProcess64::initState(), gem5::Sparc32Process::initState(), gem5::Sparc64Process::initState(), gem5::SparcProcess::initState(), gem5::X86ISA::X86_64Process::initState(), and revokeThreadContext().
std::vector<EmulatedDriver *> gem5::Process::drivers |
Definition at line 284 of file process.hh.
Referenced by findDriver().
std::vector<std::string> gem5::Process::envp |
Definition at line 227 of file process.hh.
Referenced by gem5::ArmProcess::argsInit(), gem5::MipsProcess::argsInit(), gem5::PowerProcess::argsInit(), gem5::RiscvProcess::argsInit(), gem5::SparcProcess::argsInit(), gem5::X86ISA::X86Process::argsInit(), and clone().
std::string gem5::Process::executable |
Definition at line 228 of file process.hh.
Referenced by progName().
bool* gem5::Process::exitGroup |
Definition at line 288 of file process.hh.
std::shared_ptr<FDArray> gem5::Process::fds |
Definition at line 286 of file process.hh.
Referenced by clone(), gem5::closeFunc(), drain(), gem5::execveFunc(), serialize(), and unserialize().
std::string gem5::Process::hostCwd |
Definition at line 266 of file process.hh.
Referenced by absolutePath().
loader::MemoryImage gem5::Process::image |
Definition at line 224 of file process.hh.
Referenced by gem5::PowerProcess::argsInit(), gem5::ArmProcess32::ArmProcess32(), gem5::ArmProcess64::ArmProcess64(), gem5::X86ISA::I386Process::I386Process(), initState(), gem5::MipsProcess::MipsProcess(), gem5::PowerProcess::PowerProcess(), Process(), gem5::RiscvProcess32::RiscvProcess32(), gem5::RiscvProcess64::RiscvProcess64(), gem5::Sparc32Process::Sparc32Process(), gem5::Sparc64Process::Sparc64Process(), and gem5::X86ISA::X86_64Process::X86_64Process().
std::unique_ptr<SETranslatingPortProxy> gem5::Process::initVirtMem |
Definition at line 187 of file process.hh.
Referenced by gem5::ArmProcess::argsInit(), gem5::MipsProcess::argsInit(), gem5::PowerProcess::argsInit(), gem5::RiscvProcess::argsInit(), gem5::Sparc32Process::argsInit(), gem5::Sparc64Process::argsInit(), gem5::SparcProcess::argsInit(), gem5::X86ISA::X86Process::argsInit(), gem5::PowerProcess::initState(), initState(), and gem5::X86ISA::X86_64Process::initState().
loader::MemoryImage gem5::Process::interpImage |
Definition at line 225 of file process.hh.
Referenced by gem5::PowerProcess::argsInit(), init(), and initState().
bool gem5::Process::kvmInSE |
Definition at line 180 of file process.hh.
Referenced by gem5::X86ISA::EmuLinux::event(), gem5::X86ISA::I386Process::I386Process(), and gem5::X86ISA::X86_64Process::initState().
std::shared_ptr<MemState> gem5::Process::memState |
Definition at line 289 of file process.hh.
Referenced by gem5::ArmProcess::argsInit(), gem5::MipsProcess::argsInit(), gem5::PowerProcess::argsInit(), gem5::RiscvProcess::argsInit(), gem5::SparcProcess::argsInit(), gem5::X86ISA::X86Process::argsInit(), gem5::ArmProcess32::ArmProcess32(), gem5::ArmProcess64::ArmProcess64(), gem5::brkFunc(), clone(), fixupFault(), gem5::X86ISA::I386Process::I386Process(), gem5::X86ISA::X86_64Process::initState(), gem5::GPUComputeDriver::ioctl(), gem5::MipsProcess::MipsProcess(), gem5::GPUComputeDriver::mmap(), gem5::Shader::mmap(), gem5::PowerProcess::PowerProcess(), gem5::Linux::procSelfMaps(), gem5::RiscvProcess32::RiscvProcess32(), gem5::RiscvProcess64::RiscvProcess64(), serialize(), gem5::Sparc32Process::Sparc32Process(), gem5::Sparc64Process::Sparc64Process(), unserialize(), updateBias(), and gem5::X86ISA::X86_64Process::X86_64Process().
statistics::Scalar gem5::Process::numSyscalls |
Definition at line 304 of file process.hh.
Referenced by syscall().
loader::ObjectFile* gem5::Process::objFile |
Definition at line 223 of file process.hh.
Referenced by gem5::ArmProcess::argsInit(), gem5::MipsProcess::argsInit(), gem5::PowerProcess::argsInit(), gem5::RiscvProcess::argsInit(), gem5::SparcProcess::argsInit(), gem5::X86ISA::X86Process::argsInit(), getBias(), getInterpreter(), getStartPC(), init(), gem5::PowerProcess::initState(), Process(), and updateBias().
EmulationPageTable* gem5::Process::pTable |
Definition at line 184 of file process.hh.
Referenced by gem5::ArmISA::RemoteGDB::acc(), allocateMem(), clone(), gem5::BaseRemoteGDB::cmdDumpPageTable(), gem5::doClone(), gem5::getpagesizeFunc(), initState(), gem5::X86ISA::X86_64Process::initState(), gem5::MemState::isUnmapped(), map(), gem5::mmap2Func(), gem5::mmapFunc(), gem5::mremapFunc(), gem5::MemState::remapRegion(), replicatePage(), serialize(), gem5::SparcISA::TLB::translateData(), gem5::SparcISA::TLB::translateFunctional(), gem5::X86ISA::TLB::translateFunctional(), gem5::SparcISA::TLB::translateInst(), gem5::MemState::unmapRegion(), unserialize(), and updateBias().
std::string gem5::Process::release |
Definition at line 269 of file process.hh.
SEWorkload* gem5::Process::seWorkload |
Definition at line 175 of file process.hh.
Referenced by allocateMem(), gem5::X86ISA::X86_64Process::initState(), Process(), gem5::Linux::procMeminfo(), and replicatePage().
bool* gem5::Process::sigchld |
Definition at line 298 of file process.hh.
Referenced by gem5::doClone(), gem5::execveFunc(), and Process().
System* gem5::Process::system |
Definition at line 173 of file process.hh.
Referenced by gem5::ArmProcess::argsInit(), gem5::MipsProcess::argsInit(), gem5::PowerProcess::argsInit(), gem5::RiscvProcess::argsInit(), gem5::SparcProcess::argsInit(), gem5::X86ISA::X86Process::argsInit(), checkPathRedirect(), gem5::MemState::fixupFault(), gem5::PowerProcess::initState(), initState(), gem5::SparcProcess::initState(), Process(), gem5::MemState::remapRegion(), and gem5::MemState::unmapRegion().
std::string gem5::Process::tgtCwd |
The cwd members are used to track changes to the current working directory for the purpose of executing system calls which depend on relative paths (i.e.
open, chdir).
The tgt member and host member may differ if the path for the current working directory is redirected to point to a different location (i.e. cd /proc
should point to '/m5out/fs/proc' instead of '/proc').
Definition at line 265 of file process.hh.
Referenced by absolutePath(), and gem5::Linux::etcPasswd().
bool gem5::Process::useArchPT |
Definition at line 178 of file process.hh.
bool gem5::Process::useForClone |
Definition at line 182 of file process.hh.
Referenced by gem5::doClone(), and gem5::X86ISA::X86_64Process::initState().
std::vector<ContextID> gem5::Process::vforkContexts |
Definition at line 301 of file process.hh.
Referenced by clone().