#include <event.h>
Public Member Functions | |
Event () | |
Basic Constructor. | |
~Event () | |
Destructor. | |
void | pup (PUP::er &p) |
Pack/unpack/sizing operator. | |
void | sanitize () |
Check validity of data fields. | |
Data Fields | |
eventID | evID |
The event's unique ID. | |
int | fnIdx |
The event method index associated with this event. | |
POSE_TimeType | timestamp |
The timestamp of this event. | |
int | done |
Execution status: 0=not done, 1=done, 2=executing. | |
POSE_TimeType | svt |
Virtual start and end time. | |
POSE_TimeType | evt |
double | srt |
Real start and end time. | |
double | ert |
int | commitBfrLen |
Length of commitBfr. | |
int | commitErr |
Flag indicating commit error. | |
char * | commitBfr |
Buffered output generated by this event. | |
eventMsg * | msg |
The message corresponding to this event. | |
SpawnedEvent * | spawnedList |
List of events spawned by this event. | |
rep * | cpData |
Checkpointed state prior to execution of this event. | |
int | serialCPdataSz |
Serialized checkpointed state prior to execution of this event. | |
char * | serialCPdata |
Event * | next |
Links to next and previous events in event queue. | |
Event * | prev |
Definition at line 34 of file event.h.
Event::Event | ( | ) |
Event::~Event | ( | ) |
Destructor.
Definition at line 15 of file event.C.
References commitBfr, free(), msg, SpawnedEvent::next, and spawnedList.
void Event::pup | ( | PUP::er & | p | ) |
Pack/unpack/sizing operator.
Definition at line 33 of file event.C.
References CmiAlloc(), commitBfr, commitBfrLen, commitErr, cpData, done, EnvToUsr(), ert, evID, evt, fnIdx, PUP::er::isUnpacking(), msg, SpawnedEvent::next, p, SpawnedEvent::pup(), eventID::pup(), serialCPdata, serialCPdataSz, spawnedList, srt, svt, timestamp, and UsrToEnv().
Referenced by eventQueue::CommitEvents(), EqHeap::pup(), and HeapNode::pup().
void Event::sanitize | ( | ) |
Check validity of data fields.
Execution status: 0=not done, 1=done, 2=executing
check commitBfr... not sure how check msg... not sure how check spawnedList... later check cpData... not sure how check links
Definition at line 110 of file event.C.
References commitBfr, commitBfrLen, commitErr, done, evID, fnIdx, msg, eventMsg::sanitize(), and eventID::sanitize().
Referenced by eventQueue::CommitEvents(), and HeapNode::sanitize().
The event's unique ID.
Definition at line 37 of file event.h.
Referenced by con::CancelEvents(), eventQueue::CommitEvents(), HeapNode::conjoin(), EqHeap::DeleteEvent(), HeapNode::dump(), HeapNode::dumpString(), HeapNode::insert(), EqHeap::InsertDeterministic(), HeapNode::insertDeterministic(), eventQueue::InsertEvent(), EqHeap::InsertEvent(), eventQueue::InsertEventDeterministic(), pup(), HeapNode::remove(), opt::Rollback(), sanitize(), and eventQueue::SetRBevent().
The event method index associated with this event.
Definition at line 39 of file event.h.
Referenced by eventQueue::CommitEvents(), eventQueue::eventQueue(), pup(), opt::Rollback(), sanitize(), strat::Step(), spec::Step(), seq::Step(), opt3::Step(), opt2::Step(), opt::Step(), con::Step(), adapt5::Step(), adapt4::Step(), adapt3::Step(), adapt2::Step(), and adapt::Step().
The timestamp of this event.
Definition at line 41 of file event.h.
Referenced by con::CancelEvents(), chpt< StateType >::checkpoint(), sim::Commit(), eventQueue::CommitEvents(), eventQueue::CommitStatsHelper(), HeapNode::conjoin(), EqHeap::DeleteEvent(), HeapNode::dumpString(), eventQueue::eventQueue(), HeapNode::findMax(), HeapNode::insert(), EqHeap::InsertDeterministic(), HeapNode::insertDeterministic(), eventQueue::InsertEvent(), EqHeap::InsertEvent(), eventQueue::InsertEventDeterministic(), pup(), HeapNode::remove(), sim::ReportLBdata(), chpt< StateType >::restore(), opt::Rollback(), opt::SafeTime(), con::SafeTime(), eventQueue::SetRBevent(), strat::Step(), spec::Step(), seq::Step(), opt3::Step(), opt2::Step(), opt::Step(), con::Step(), adapt5::Step(), adapt4::Step(), adapt3::Step(), adapt2::Step(), and adapt::Step().
Execution status: 0=not done, 1=done, 2=executing.
Definition at line 43 of file event.h.
Referenced by con::CancelEvents(), eventQueue::CommitEvents(), eventQueue::eventQueue(), eventQueue::InsertEvent(), eventQueue::InsertEventDeterministic(), pup(), opt::Rollback(), sanitize(), strat::Step(), spec::Step(), seq::Step(), opt3::Step(), opt2::Step(), opt::Step(), con::Step(), adapt5::Step(), adapt4::Step(), adapt3::Step(), adapt2::Step(), and adapt::Step().
Virtual start and end time.
Definition at line 45 of file event.h.
Referenced by eventQueue::CommitStatsHelper(), pup(), and rep::update().
double Event::srt |
Real start and end time.
Definition at line 47 of file event.h.
Referenced by eventQueue::CommitStatsHelper(), pup(), sim::SeqResumeAfterCheckpoint(), and rep::update().
double Event::ert |
Length of commitBfr.
Definition at line 49 of file event.h.
Referenced by eventQueue::CommitEvents(), eventQueue::eventQueue(), sim::InternalCommitPrintf(), pup(), opt::Rollback(), and sanitize().
Flag indicating commit error.
Definition at line 51 of file event.h.
Referenced by sim::CommitError(), eventQueue::CommitEvents(), pup(), opt::Rollback(), and sanitize().
char* Event::commitBfr |
Buffered output generated by this event.
Definition at line 53 of file event.h.
Referenced by eventQueue::CommitEvents(), eventQueue::eventQueue(), sim::InternalCommitPrintf(), pup(), opt::Rollback(), sanitize(), and ~Event().
The message corresponding to this event.
Definition at line 55 of file event.h.
Referenced by eventQueue::CommitEvents(), eventQueue::eventQueue(), pup(), opt::Rollback(), sanitize(), strat::Step(), spec::Step(), seq::Step(), opt3::Step(), opt2::Step(), opt::Step(), con::Step(), adapt5::Step(), adapt4::Step(), adapt3::Step(), adapt2::Step(), adapt::Step(), and ~Event().
List of events spawned by this event.
Definition at line 57 of file event.h.
Referenced by opt::CancelSpawn(), eventQueue::CommitEvents(), eventQueue::eventQueue(), pup(), and ~Event().
Checkpointed state prior to execution of this event.
Definition at line 59 of file event.h.
Referenced by chpt< StateType >::checkpoint(), eventQueue::CommitEvents(), pup(), chpt< StateType >::restore(), and opt::Rollback().
Serialized checkpointed state prior to execution of this event.
Definition at line 61 of file event.h.
Referenced by chpt< StateType >::checkpoint(), pup(), chpt< StateType >::restore(), and opt::Rollback().
char* Event::serialCPdata |
Definition at line 62 of file event.h.
Referenced by chpt< StateType >::checkpoint(), eventQueue::CommitEvents(), pup(), chpt< StateType >::restore(), and opt::Rollback().
Links to next and previous events in event queue.
Definition at line 64 of file event.h.
Referenced by con::CancelEvents(), eventQueue::CommitEvents(), eventQueue::eventQueue(), eventQueue::InsertEvent(), eventQueue::InsertEventDeterministic(), sim::ReportLBdata(), opt::Rollback(), and eventQueue::~eventQueue().
Definition at line 64 of file event.h.
Referenced by chpt< StateType >::checkpoint(), eventQueue::CommitEvents(), eventQueue::eventQueue(), eventQueue::InsertEvent(), eventQueue::InsertEventDeterministic(), and opt::Rollback().