|
gem5 [DEVELOP-FOR-25.0]
|
Public Member Functions | |
| SyncNode () | |
| ~SyncNode () | |
| bool | run (bool same_tick) override |
| Core method to perform a full dist sync. | |
| bool | progress (Tick max_req_tick, Tick next_repeat, ReqType do_ckpt, ReqType do_exit, ReqType do_stop_sync) override |
| Callback when the receiver thread gets a sync ack message. | |
| void | requestCkpt (ReqType req) override |
| void | requestExit (ReqType req) override |
| void | requestStopSync (ReqType req) override |
| void | serialize (CheckpointOut &cp) const override |
| Serialize an object. | |
| void | unserialize (CheckpointIn &cp) override |
| Unserialize an object. | |
Public Member Functions inherited from gem5::DistIface::Sync | |
| void | init (Tick start, Tick repeat) |
| Initialize periodic sync params. | |
| void | abort () |
| Abort processing an on-going sync event (in case of an error, e.g. | |
| void | drainComplete () |
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) |
Private Attributes | |
| ReqType | needExit |
| Exit requested. | |
| ReqType | needCkpt |
| Ckpt requested. | |
| ReqType | needStopSync |
| Sync stop requested. | |
Additional Inherited Members | |
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. | |
Protected Attributes inherited from gem5::DistIface::Sync | |
| std::mutex | lock |
| The lock to protect access to the Sync object. | |
| std::condition_variable | cv |
| Condition variable for the simulation thread to wait on until all receiver threads completes the current global synchronisation. | |
| unsigned | waitNum |
| Number of receiver threads that not yet completed the current global synchronisation. | |
| bool | doExit |
| Flag is set if exit is permitted upon sync completion. | |
| bool | doCkpt |
| Flag is set if taking a ckpt is permitted upon sync completion. | |
| bool | doStopSync |
| Flag is set if sync is to stop upon sync completion. | |
| Tick | nextRepeat |
| The repeat value for the next periodic sync. | |
| Tick | nextAt |
| Tick for the next periodic sync (if the event is not scheduled yet) | |
| bool | isAbort |
| Flag is set if the sync is aborted (e.g. | |
Definition at line 206 of file dist_iface.hh.
| gem5::DistIface::SyncNode::SyncNode | ( | ) |
Definition at line 111 of file dist_iface.cc.
References gem5::DistIface::Sync::doCkpt, gem5::DistIface::Sync::doExit, gem5::DistIface::Sync::doStopSync, gem5::DistIface::Sync::isAbort, needCkpt, needExit, needStopSync, gem5::DistIface::Sync::nextAt, gem5::DistIface::Sync::nextRepeat, and gem5::DistIface::Sync::waitNum.
|
inline |
Definition at line 225 of file dist_iface.hh.
|
overridevirtual |
Callback when the receiver thread gets a sync ack message.
Implements gem5::DistIface::Sync.
Definition at line 242 of file dist_iface.cc.
References gem5::DistIface::Sync::cv, gem5::DistIface::Sync::doCkpt, gem5::DistIface::Sync::doExit, gem5::DistIface::Sync::doStopSync, gem5::DistIface::Sync::isAbort, gem5::DistIface::Sync::lock, gem5::DistIface::Sync::nextAt, gem5::DistIface::Sync::nextRepeat, and gem5::DistIface::Sync::waitNum.
|
overridevirtual |
Implements gem5::DistIface::Sync.
Definition at line 270 of file dist_iface.cc.
References gem5::DistIface::Sync::lock, needCkpt, and warn.
|
overridevirtual |
Implements gem5::DistIface::Sync.
Definition at line 281 of file dist_iface.cc.
References gem5::DistIface::Sync::lock, needExit, and warn.
|
overridevirtual |
Implements gem5::DistIface::Sync.
Definition at line 846 of file dist_iface.cc.
References gem5::DistIface::Sync::lock, and needStopSync.
|
overridevirtual |
Core method to perform a full dist sync.
Implements gem5::DistIface::Sync.
Definition at line 126 of file dist_iface.cc.
References gem5::curTick(), gem5::DistIface::Sync::cv, header, gem5::DistIface::Sync::isAbort, gem5::DistIface::Sync::lock, needCkpt, needExit, needStopSync, gem5::DistIface::Sync::nextAt, gem5::DistIface::Sync::nextRepeat, gem5::DistIface::primary, gem5::DistIface::recvThreadsNum, and gem5::DistIface::Sync::waitNum.
|
overridevirtual |
Serialize an object.
Output an object's state into the current checkpoint section.
| cp | Checkpoint state |
Implements gem5::DistIface::Sync.
Definition at line 306 of file dist_iface.cc.
References needExit, and SERIALIZE_SCALAR.
|
overridevirtual |
Unserialize an object.
Read an object's state from the current checkpoint section.
| cp | Checkpoint state |
Implements gem5::DistIface::Sync.
Definition at line 313 of file dist_iface.cc.
References needExit, and UNSERIALIZE_SCALAR.
|
private |
Ckpt requested.
Definition at line 216 of file dist_iface.hh.
Referenced by requestCkpt(), run(), and SyncNode().
|
private |
Exit requested.
Definition at line 212 of file dist_iface.hh.
Referenced by requestExit(), run(), serialize(), SyncNode(), and unserialize().
|
private |
Sync stop requested.
Definition at line 220 of file dist_iface.hh.
Referenced by requestStopSync(), run(), and SyncNode().