|
| | SyncSwitch (int num_nodes) |
| |
| | ~SyncSwitch () |
| |
| bool | run (bool same_tick) override |
| | Core method to perform a full dist sync. More...
|
| |
| 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. More...
|
| |
| void | requestCkpt (ReqType) override |
| |
| void | requestExit (ReqType) override |
| |
| void | requestStopSync (ReqType) override |
| |
| void | serialize (CheckpointOut &cp) const override |
| | Serialize an object. More...
|
| |
| void | unserialize (CheckpointIn &cp) override |
| | Unserialize an object. More...
|
| |
| void | init (Tick start, Tick repeat) |
| | Initialize periodic sync params. More...
|
| |
| void | abort () |
| | Abort processing an on-going sync event (in case of an error, e.g. More...
|
| |
| void | drainComplete () |
| |
| | Serializable () |
| |
| virtual | ~Serializable () |
| |
| void | serializeSection (CheckpointOut &cp, const char *name) const |
| | Serialize an object into a new section. More...
|
| |
| void | serializeSection (CheckpointOut &cp, const std::string &name) const |
| |
| void | unserializeSection (CheckpointIn &cp, const char *name) |
| | Unserialize an a child object. More...
|
| |
| void | unserializeSection (CheckpointIn &cp, const std::string &name) |
| |
Definition at line 240 of file dist_iface.hh.
| DistIface::SyncSwitch::SyncSwitch |
( |
int |
num_nodes | ) |
|
| DistIface::SyncSwitch::~SyncSwitch |
( |
| ) |
|
|
inline |
| void DistIface::SyncSwitch::requestCkpt |
( |
ReqType |
| ) |
|
|
inlineoverridevirtual |
| void DistIface::SyncSwitch::requestExit |
( |
ReqType |
| ) |
|
|
inlineoverridevirtual |
| void DistIface::SyncSwitch::requestStopSync |
( |
ReqType |
| ) |
|
|
inlineoverridevirtual |
| bool DistIface::SyncSwitch::run |
( |
bool |
same_tick | ) |
|
|
overridevirtual |
Core method to perform a full dist sync.
- Returns
- true if the sync completes, false if it gets aborted
Implements DistIface::Sync.
Definition at line 158 of file dist_iface.cc.
References curTick(), X86ISA::lock, DistIface::master, DistHeaderPkt::Header::msgType, DistHeaderPkt::Header::needCkpt, DistHeaderPkt::Header::needExit, DistHeaderPkt::Header::needStopSync, Stats::none, DistIface::sendCmd(), DistHeaderPkt::Header::sendTick, and DistHeaderPkt::Header::syncRepeat.
| void DistIface::SyncSwitch::serialize |
( |
CheckpointOut & |
cp | ) |
const |
|
overridevirtual |
| void DistIface::SyncSwitch::unserialize |
( |
CheckpointIn & |
cp | ) |
|
|
overridevirtual |
| unsigned DistIface::SyncSwitch::numCkptReq |
|
private |
Counter for recording ckpt requests.
Definition at line 250 of file dist_iface.hh.
| unsigned DistIface::SyncSwitch::numExitReq |
|
private |
Counter for recording exit requests.
Definition at line 246 of file dist_iface.hh.
| unsigned DistIface::SyncSwitch::numNodes |
|
private |
Number of connected simulated nodes.
Definition at line 258 of file dist_iface.hh.
| unsigned DistIface::SyncSwitch::numStopSyncReq |
|
private |
Counter for recording stop sync requests.
Definition at line 254 of file dist_iface.hh.
The documentation for this class was generated from the following files: