gem5
v21.0.1.0
|
These methods relate to the event queue interface. More...
Typedefs | |
typedef int8_t | EventBase::Priority |
Functions | |
virtual void | Event::trace (const char *action) |
This function isn't really useful if TRACING_ON is not defined. More... | |
bool | Event::scheduled () const |
Determine if the current event is scheduled. More... | |
void | Event::squash () |
Squash the current event. More... | |
bool | Event::squashed () const |
Check whether the event is squashed. More... | |
bool | Event::isExitEvent () const |
See if this is a SimExitEvent (without resorting to RTTI) More... | |
bool | Event::isManaged () const |
Check whether this event will auto-delete. More... | |
bool | Event::isAutoDelete () const |
The function returns true if the object is automatically deleted after the event is processed. More... | |
Tick | Event::when () const |
Get the time that the event is scheduled. More... | |
Priority | Event::priority () const |
Get the event priority. More... | |
bool | operator< (const Event &l, const Event &r) |
bool | operator> (const Event &l, const Event &r) |
bool | operator<= (const Event &l, const Event &r) |
bool | operator>= (const Event &l, const Event &r) |
bool | operator== (const Event &l, const Event &r) |
bool | operator!= (const Event &l, const Event &r) |
EventQueue::ScopedMigration::ScopedMigration (EventQueue *_new_eq, bool _doMigrate=true) | |
Temporarily migrate execution to a different event queue. More... | |
EventQueue::EventQueue (const std::string &n) | |
void | EventQueue::schedule (Event *event, Tick when, bool global=false) |
Schedule the given event on this queue. More... | |
void | EventQueue::deschedule (Event *event) |
Deschedule the specified event. More... | |
void | EventQueue::reschedule (Event *event, Tick when, bool always=false) |
Reschedule the specified event. More... | |
Tick | EventQueue::getCurTick () const |
While curTick() is useful for any object assigned to this event queue, if an object that is assigned to another event queue (or a non-event object) need to access the current tick of this event queue, this function is used. More... | |
void | EventQueue::serviceEvents (Tick when) |
process all events up to the given timestamp. More... | |
bool | EventQueue::empty () const |
Returns true if no events are queued. More... | |
void | EventQueue::dump () const |
This is a debugging function which will print everything on the event queue. More... | |
virtual void | EventQueue::wakeup (Tick when=(Tick) -1) |
Function to signal that the event loop should be woken up because an event has been scheduled by an agent outside the gem5 event loop(s) whose event insertion may not have been noticed by gem5. More... | |
EventQueue * | EventManager::eventQueue () const |
void | EventManager::schedule (Event &event, Tick when) |
void | EventManager::deschedule (Event &event) |
void | EventManager::reschedule (Event &event, Tick when, bool always=false) |
void | EventManager::schedule (Event *event, Tick when) |
void | EventManager::deschedule (Event *event) |
void | EventManager::reschedule (Event *event, Tick when, bool always=false) |
void | EventManager::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. More... | |
EventFunctionWrapper::EventFunctionWrapper (const std::function< void(void)> &callback, const std::string &name, bool del=false, Priority p=Default_Pri) | |
This function wraps a function into an event, to be executed later. More... | |
void | EventFunctionWrapper::process () |
const std::string | EventFunctionWrapper::name () const |
const char * | EventFunctionWrapper::description () const |
Return a C string describing the event. More... | |
Variables | |
static const Priority | EventBase::Minimum_Pri = SCHAR_MIN |
Event priorities, to provide tie-breakers for events scheduled at the same cycle. More... | |
static const Priority | EventBase::Debug_Enable_Pri = -101 |
If we enable tracing on a particular cycle, do that as the very first thing so we don't miss any of the events on that cycle (even if we enter the debugger). More... | |
static const Priority | EventBase::Debug_Break_Pri = -100 |
Breakpoints should happen before anything else (except enabling trace output), so we don't miss any action when debugging. More... | |
static const Priority | EventBase::CPU_Switch_Pri = -31 |
CPU switches schedule the new CPU's tick event for the same cycle (after unscheduling the old CPU's tick event). More... | |
static const Priority | EventBase::Delayed_Writeback_Pri = -1 |
For some reason "delayed" inter-cluster writebacks are scheduled before regular writebacks (which have default priority). More... | |
static const Priority | EventBase::Default_Pri = 0 |
Default is zero for historical reasons. More... | |
static const Priority | EventBase::DVFS_Update_Pri = 31 |
DVFS update event leads to stats dump therefore given a lower priority to ensure all relevant states have been updated. More... | |
static const Priority | EventBase::Serialize_Pri = 32 |
Serailization needs to occur before tick events also, so that a serialize/unserialize is identical to an on-line CPU switch. More... | |
static const Priority | EventBase::CPU_Tick_Pri = 50 |
CPU ticks must come after other associated CPU events (such as writebacks). More... | |
static const Priority | EventBase::CPU_Exit_Pri = 64 |
If we want to exit a thread in a CPU, it comes after CPU_Tick_Pri. More... | |
static const Priority | EventBase::Stat_Event_Pri = 90 |
Statistics events (dump, reset, etc.) come after everything else, but before exit. More... | |
static const Priority | EventBase::Progress_Event_Pri = 95 |
Progress events come at the end. More... | |
static const Priority | EventBase::Sim_Exit_Pri = 100 |
If we want to exit on this cycle, it's the very last thing we do. More... | |
static const Priority | EventBase::Maximum_Pri = SCHAR_MAX |
Maximum priority. More... | |
virtual | Event::~Event () |
virtual const std::string | Event::name () const |
virtual const char * | Event::description () const |
Return a C string describing the event. More... | |
void | Event::dump () const |
Dump the current event data. More... | |
virtual const std::string | EventQueue::name () const |
void | EventQueue::name (const std::string &st) |
EventManager::EventManager (EventManager &em) | |
Event manger manages events in the event queue. More... | |
EventManager::EventManager (EventManager *em) | |
EventManager::EventManager (EventQueue *eq) | |
These methods relate to the event queue interface.
typedef int8_t EventBase::Priority |
|
inline |
Definition at line 1025 of file eventq.hh.
References EventQueue::deschedule(), MipsISA::event, and EventManager::eventq.
Referenced by BaseCPU::activateContext(), IGbE::chkInterrupt(), HSADriver::EventList::clearEvents(), HDLcd::cmdDisable(), MemTest::completeRequest(), IGbE::cpuPostInt(), Sequencer::descheduleDeadlockEvent(), GPUCoalescer::descheduleDeadlockEvent(), BaseCPU::deschedulePowerGatingEvent(), BaseKvmCPU::drain(), AtomicSimpleCPU::drain(), BaseTrafficGen::drain(), ArchTimer::drain(), FullO3CPU< O3CPUImpl >::drain(), IGbE::drain(), GenericTimer::handleStream(), DVFSHandler::perfLevel(), IGbE::postInterrupt(), PL031::resyncMatch(), BaseCache::CacheResponsePort::setBlocked(), SparcISA::ISA::setFSReg(), Iris::ThreadContext::setStatus(), BasePixelPump::stop(), Sp805::stopCounter(), DRAMInterface::Rank::suspend(), BaseKvmCPU::suspendContext(), AtomicSimpleCPU::suspendContext(), TimingSimpleCPU::suspendContext(), Root::timeSyncEnable(), FullO3CPU< O3CPUImpl >::tryDrain(), GPUDispatcher::unserialize(), ArchTimer::updateCounter(), EnergyCtrl::write(), MC146818::writeData(), Uart8250::writeIer(), AtomicSimpleCPU::~AtomicSimpleCPU(), MC146818::~MC146818(), and Iris::ThreadContext::~ThreadContext().
|
inline |
Deschedule the specified event.
Should be called only from the owning thread.
Definition at line 794 of file eventq.hh.
References EventQueue::curEventQueue, DTRACE, MipsISA::event, inParallelMode, EventQueue::remove(), EventBase::Scheduled, and EventBase::Squashed.
Referenced by sc_gem5::Scheduler::deschedule(), EventManager::deschedule(), Iris::ThreadContext::descheduleInstCountEvent(), SimpleThread::descheduleInstCountEvent(), RubySystem::memWriteback(), pybind_init_event(), and EventQueue::~EventQueue().
|
inline |
Definition at line 1052 of file eventq.hh.
References EventQueue::deschedule(), MipsISA::event, and EventManager::eventq.
|
virtual |
Return a C string describing the event.
This string should not be dynamically allocated; just a const char array describing the event class.
Reimplemented in HSAPacketProcessor::UpdateReadDispIdDmaEvent, CountedExitEvent, LocalSimLoopExitEvent, HSADriver::DriverWakeupEvent, EventFunctionWrapper, EventWrapper< T, F >, ComputeUnit::ScalarDataPort::MemReqEvent, LSQUnit< Impl >::WritebackEvent, HSAPacketProcessor::CmdQueueCmdDmaEvent, HSAPacketProcessor::DepSignalsReadDmaEvent, X86ISA::GpuTLB::TLBEvent, TimingSimpleCPU::IprEvent, HSAPacketProcessor::QueueProcessEvent, TimingSimpleCPU::TimingCPUPort::TickEvent, DefaultFetch< Impl >::FinishTranslationEvent, InstructionQueue< Impl >::FUCompletion, Trace::TarmacParserRecord::TarmacParserRecordEvent, CPUProgressEvent, Intel8254Timer::Counter::CounterEvent, MC146818::RTCTickEvent, HWScheduler::SchedulerWakeupEvent, MC146818::RTCEvent, and SMMUDeviceRetryEvent.
Definition at line 371 of file eventq.cc.
Referenced by Event::dump(), and Event::trace().
|
inlinevirtual |
void Event::dump | ( | ) | const |
Dump the current event data.
Definition at line 403 of file eventq.cc.
References Event::_priority, cprintf(), Event::description(), Event::flags, Event::name(), Event::scheduled(), and Event::when().
Referenced by EventQueue::debugVerify(), EventQueue::dump(), and pybind_init_event().
void EventQueue::dump | ( | ) | const |
This is a debugging function which will print everything on the event queue.
Definition at line 287 of file eventq.cc.
References cprintf(), curTick(), Event::dump(), EventQueue::empty(), EventQueue::head, Event::nextBin, and Event::nextInBin.
Referenced by pybind_init_event().
|
inline |
Returns true if no events are queued.
Definition at line 895 of file eventq.hh.
References EventQueue::head.
Referenced by doSimLoop(), EventQueue::dump(), RubySystem::eventQueueEmpty(), Iris::ThreadContext::maintainStepping(), RubySystem::memWriteback(), EventQueue::serviceEvents(), BaseKvmCPU::setupInstStop(), and EventQueue::~EventQueue().
|
inline |
This function wraps a function into an event, to be executed later.
Definition at line 1125 of file eventq.hh.
References EventBase::AutoDelete, and Event::setFlags().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 1007 of file eventq.hh.
References EventManager::eventq.
Referenced by VncServer::accept(), TapListener::accept(), X86KvmCPU::deliverInterrupts(), BaseKvmCPU::deviceEventQueue(), BaseKvmCPU::drain(), sc_gem5::Kernel::Kernel(), TapEvent::process(), and BaseKvmCPU::wakeup().
|
inline |
While curTick() is useful for any object assigned to this event queue, if an object that is assigned to another event queue (or a non-event object) need to access the current tick of this event queue, this function is used.
Tick is the unit of time used in gem5.
Definition at line 854 of file eventq.hh.
References EventQueue::_curTick.
Referenced by SimpleThread::getCurrentInstCount(), sc_gem5::Scheduler::getCurTick(), EventQueue::reschedule(), and EventQueue::schedule().
|
inline |
The function returns true if the object is automatically deleted after the event is processed.
Definition at line 498 of file eventq.hh.
References Event::isManaged().
Referenced by RubySystem::memWriteback().
|
inline |
See if this is a SimExitEvent (without resorting to RTTI)
Definition at line 483 of file eventq.hh.
References Event::flags, EventBase::IsExitEvent, and Flags< T >::isSet().
Referenced by pybind_init_event().
|
inline |
Check whether this event will auto-delete.
Definition at line 490 of file eventq.hh.
References Event::flags, Flags< T >::isSet(), and EventBase::Managed.
Referenced by Event::isAutoDelete().
|
virtual |
Reimplemented in BasePixelPump::PixelEvent, TesterThread::DeadlockCheckEvent, TesterThread::TesterThreadEvent, EventFunctionWrapper, EventWrapper< T, F >, and SMMUDeviceRetryEvent.
Definition at line 82 of file eventq.cc.
References csprintf(), and Event::instanceString().
Referenced by Event::dump(), RubySystem::memWriteback(), pybind_init_event(), and Event::unserialize().
|
inlinevirtual |
Definition at line 751 of file eventq.hh.
References EventQueue::objName.
|
inlinevirtual |
Reimplemented from Event.
Definition at line 1144 of file eventq.hh.
References EventFunctionWrapper::_name.
|
inline |
Definition at line 752 of file eventq.hh.
References EventQueue::objName, and ArmISA::st.
Definition at line 576 of file eventq.hh.
References MipsISA::l, and MipsISA::r.
Definition at line 527 of file eventq.hh.
References MipsISA::l, and MipsISA::r.
Definition at line 547 of file eventq.hh.
References MipsISA::l, and MipsISA::r.
Definition at line 567 of file eventq.hh.
References MipsISA::l, and MipsISA::r.
Definition at line 537 of file eventq.hh.
References MipsISA::l, and MipsISA::r.
Definition at line 557 of file eventq.hh.
References MipsISA::l, and MipsISA::r.
|
inline |
Get the event priority.
Definition at line 512 of file eventq.hh.
References Event::_priority.
Referenced by EventQueue::debugVerify(), and pybind_init_event().
|
inlinevirtual |
Implements Event.
Definition at line 1138 of file eventq.hh.
References EventFunctionWrapper::callback.
Referenced by StubSlavePort::recvRespRetry(), and Uart8250::writeIer().
Definition at line 1034 of file eventq.hh.
References MipsISA::event, EventManager::eventq, and EventQueue::reschedule().
Referenced by FlashDevice::accessDevice(), FlashDevice::actionComplete(), DRAMInterface::activateBank(), TimingSimpleCPU::advanceInst(), NVMInterface::chooseRead(), MemTest::completeRequest(), SimpleMemory::dequeue(), DRAMInterface::doBurstAccess(), NVMInterface::doBurstAccess(), SystemCounter::freqUpdateSchedule(), GenericTimer::handleStream(), DRAMInterface::prechargeBank(), System::Threads::quiesceTick(), MemTest::recvRetry(), GenericWatchdog::refresh(), Sp805::restartCounter(), TraceCPU::schedDcacheNextEvent(), PacketQueue::schedSendEvent(), Shader::ScheduleAdd(), Uart8250::scheduleIntr(), Consumer::scheduleNextWakeup(), FullO3CPU< O3CPUImpl >::scheduleTickEvent(), IdeDisk::serialize(), AtomicSimpleCPU::tick(), MemTest::tick(), Sinic::Device::transferDone(), NSGigE::transferDone(), Sp805::unserialize(), GenericWatchdog::unserialize(), SystemCounter::unserialize(), IdeDisk::unserialize(), and BaseTrafficGen::update().
Reschedule the specified event.
Should be called only from the owning thread.
Definition at line 818 of file eventq.hh.
References EventQueue::curEventQueue, DTRACE, MipsISA::event, EventQueue::getCurTick(), inParallelMode, EventQueue::insert(), EventQueue::remove(), EventBase::Scheduled, and EventBase::Squashed.
Referenced by pybind_init_event(), and EventManager::reschedule().
Definition at line 1061 of file eventq.hh.
References MipsISA::event, EventManager::eventq, and EventQueue::reschedule().
Definition at line 1016 of file eventq.hh.
References MipsISA::event, EventManager::eventq, and EventQueue::schedule().
Referenced by DRAMSim2::accessAndRespond(), DRAMsim3::accessAndRespond(), FlashDevice::accessDevice(), DRAMInterface::activateBank(), BaseKvmCPU::activateContext(), MinorCPU::activateContext(), AtomicSimpleCPU::activateContext(), TimingSimpleCPU::activateContext(), BasePixelPump::beginLine(), TraceCPU::checkAndSchedExitEvent(), TesterThread::checkDeadlock(), DRAMInterface::Rank::checkDrainDone(), DRAMInterface::checkRefreshState(), IGbE::chkInterrupt(), NVMInterface::chooseRead(), HDLcd::cmdEnable(), GPUCoalescer::completeHitCallback(), Sinic::Base::cpuIntrPost(), NSGigE::cpuIntrPost(), CPUProgressEvent::CPUProgressEvent(), TraceCPU::dcacheRetryRecvd(), Prefetcher::BOP::delayQueueEventWrapper(), GPUDispatcher::dispatch(), ComputeUnit::dispWorkgroup(), Pl111::dmaDone(), HSADevice::dmaVirt(), HSAPacketProcessor::dmaVirt(), DRAMInterface::doBurstAccess(), NVMInterface::doBurstAccess(), IdeDisk::doDmaDataRead(), IdeDisk::doDmaDataWrite(), IdeDisk::doDmaRead(), IdeDisk::doDmaTransfer(), IdeDisk::doDmaWrite(), ThermalModel::doStep(), TimingSimpleCPU::drain(), BaseKvmCPU::drainResume(), AtomicSimpleCPU::drainResume(), FullO3CPU< O3CPUImpl >::drainResume(), TimingSimpleCPU::drainResume(), RegisterFile::enqRegBusyEvent(), RegisterFile::enqRegFreeEvent(), RubySystem::enqueueRubyEvent(), ComputeUnit::exec(), Shader::execScheduledAdds(), GoodbyeObject::fillBuffer(), BaseKvmCPU::finishMMIOPending(), Compressor::FrequentValues::generateCodes(), SimpleCache::handleRequest(), DmaPort::handleResp(), X86ISA::GpuTLB::handleTranslationReturn(), RubyDirectedTester::hitCallback(), TraceCPU::icacheRetryRecvd(), TraceCPU::init(), ComputeUnit::injectGlobalMemFence(), Prefetcher::BOP::insertIntoDelayQueue(), Sequencer::insertRequest(), TimingSimpleCPU::IprEvent::IprEvent(), VIPERCoalescer::issueRequest(), X86ISA::GpuTLB::issueTLBLookup(), GPUCoalescer::makeRequest(), ArmISA::TableWalker::nextWalk(), GPUDispatcher::notifyWgCompl(), DVFSHandler::perfLevel(), IGbE::postInterrupt(), DRAMInterface::prechargeBank(), CPUProgressEvent::process(), Prefetcher::AccessMapPatternMatching::processEpochEvent(), HelloObject::processEvent(), SparcISA::ISA::processHSTickCompare(), DRAMInterface::Rank::processPowerEvent(), NVMInterface::processReadReadyEvent(), DRAMInterface::Rank::processRefreshEvent(), SparcISA::ISA::processSTickCompare(), NVMInterface::processWriteRespondEvent(), Plic::propagateOutput(), PowerDomain::pwrStateChangeCallback(), Pl111::readFramebuffer(), BaseCache::recvAtomic(), MemTest::recvRetry(), StubSlavePort::recvTimingReq(), TLBCoalescer::CpuSidePort::recvTimingReq(), SimpleMemory::recvTimingReq(), X86ISA::Walker::recvTimingResp(), RiscvISA::Walker::recvTimingResp(), TimingSimpleCPU::DcachePort::recvTimingResp(), ComputeUnit::DataPort::recvTimingResp(), BasePixelPump::renderPixels(), System::Threads::replace(), IGbE::restartClock(), PL031::resyncMatch(), EtherTapBase::retransmit(), Gicv3Its::runProcessTiming(), NSGigE::rxKick(), CommMonitor::samplePeriodic(), HSAPacketProcessor::schedAQLProcessing(), SMMUv3DeviceInterface::schedAtsTimingResp(), TraceCPU::schedDcacheNextEvent(), TraceCPU::schedIcacheNext(), PacketQueue::schedSendEvent(), TimingSimpleCPU::TimingCPUPort::TickEvent::schedule(), MipsISA::ISA::scheduleCP0Update(), TesterThread::scheduleDeadlockCheckEvent(), SMMUv3DeviceInterface::scheduleDeviceRetry(), GPUDispatcher::scheduleDispatch(), Uart8250::scheduleIntr(), Consumer::scheduleNextWakeup(), DRAMInterface::Rank::schedulePowerEvent(), BaseCPU::schedulePowerGatingEvent(), FullO3CPU< O3CPUImpl >::scheduleThreadExitEvent(), FullO3CPU< O3CPUImpl >::scheduleTickEvent(), BaseTrafficGen::scheduleUpdate(), TesterThread::scheduleWakeup(), SMMUProcess::scheduleWakeup(), DRAMInterface::Rank::scheduleWakeUpEvent(), HWScheduler::schedWakeup(), Iris::ThreadContext::semihostingEvent(), EtherBus::send(), ComputeUnit::sendRequest(), DRAMSim2::sendResponse(), DRAMsim3::sendResponse(), EtherTapBase::sendSimulated(), SparcISA::ISA::setFSReg(), Pl011::setInterrupts(), Intel8254Timer::Counter::CounterEvent::setTo(), BasePixelPump::start(), IdeDisk::startDma(), sc_gem5::Kernel::startup(), HelloObject::startup(), CommMonitor::startup(), BaseKvmCPU::startup(), MC146818::startup(), ThermalModel::startup(), Prefetcher::AccessMapPatternMatching::startup(), DRAMSim2::startup(), DRAMsim3::startup(), DRAMInterface::Rank::startup(), BaseCPU::suspendContext(), GarnetSyntheticTraffic::tick(), MemTest::tick(), IGbE::tick(), DRAMSim2::tick(), DRAMsim3::tick(), FullO3CPU< O3CPUImpl >::tick(), BaseKvmCPU::tick(), Root::timeSync(), Root::timeSyncEnable(), X86ISA::GpuTLB::translationReturn(), NSGigE::transmit(), DmaPort::trySendTimingReq(), NSGigE::txKick(), GPUDispatcher::unserialize(), Sinic::Base::unserialize(), PL031::unserialize(), EnergyCtrl::unserialize(), Plic::unserialize(), SparcISA::ISA::unserialize(), DVFSHandler::unserialize(), VGic::unserialize(), Uart8250::unserialize(), BaseTrafficGen::unserialize(), Sinic::Device::unserialize(), NSGigE::unserialize(), IdeDisk::unserialize(), Pl111::unserialize(), GicV2::unserialize(), IGbE::unserialize(), ArchTimer::updateCounter(), GPUDispatcher::updateInvCounter(), Plic::updateOutput(), TLBCoalescer::updatePhysAddresses(), HDLcd::virtRefresh(), FullO3CPU< O3CPUImpl >::wakeCPU(), RubyDirectedTester::wakeup(), Sequencer::wakeup(), RubyTester::wakeup(), GPUCoalescer::wakeup(), EnergyCtrl::write(), SMMUv3::writeControl(), and MC146818::writeData().
Definition at line 1043 of file eventq.hh.
References MipsISA::event, EventManager::eventq, and EventQueue::schedule().
Schedule the given event on this queue.
Safe to call from any thread.
Definition at line 761 of file eventq.hh.
References EventQueue::asyncInsert(), EventQueue::curEventQueue, DTRACE, MipsISA::event, EventQueue::getCurTick(), inParallelMode, EventQueue::insert(), and EventBase::Scheduled.
Referenced by sc_gem5::Scheduler::initPhase(), RubySystem::memWriteback(), GicV2::postFiq(), GicV2::postInt(), VGic::postVInt(), sc_gem5::Scheduler::schedule(), EventManager::schedule(), Iris::ThreadContext::scheduleInstCountEvent(), and SimpleThread::scheduleInstCountEvent().
|
inline |
Determine if the current event is scheduled.
Definition at line 462 of file eventq.hh.
References Event::flags, Flags< T >::isSet(), and EventBase::Scheduled.
Referenced by DRAMSim2::accessAndRespond(), DRAMsim3::accessAndRespond(), FlashDevice::accessDevice(), DRAMInterface::activateBank(), BaseKvmCPU::activateContext(), AtomicSimpleCPU::activateContext(), TimingSimpleCPU::activateContext(), BaseCPU::activateContext(), BasePixelPump::PixelEvent::active(), MemCtrl::addToReadQueue(), MemCtrl::addToWriteQueue(), TesterThread::checkDeadlock(), DRAMInterface::checkRefreshState(), IGbE::chkInterrupt(), NVMInterface::chooseRead(), HSADriver::EventList::clearEvents(), HDLcd::cmdDisable(), GPUCoalescer::completeHitCallback(), MemTest::completeRequest(), IGbE::cpuPostInt(), BaseRemoteGDB::descheduleInstCommitEvent(), BaseCPU::deschedulePowerGatingEvent(), GPUDispatcher::dispatch(), Shader::dispatchWorkgroups(), ComputeUnit::dispWorkgroup(), Pl111::dmaDone(), DRAMInterface::doBurstAccess(), NVMInterface::doBurstAccess(), FlashDevice::drain(), BaseKvmCPU::drain(), AtomicSimpleCPU::drain(), BaseTrafficGen::drain(), ArchTimer::drain(), FullO3CPU< O3CPUImpl >::drain(), TimingSimpleCPU::drain(), IGbE::drain(), MemCtrl::drain(), BaseKvmCPU::drainResume(), AtomicSimpleCPU::drainResume(), FullO3CPU< O3CPUImpl >::drainResume(), TimingSimpleCPU::drainResume(), Event::dump(), IGbE::ethRxPkt(), BaseKvmCPU::finishMMIOPending(), DefaultFetch< Impl >::finishTranslation(), FullO3CPU< O3CPUImpl >::haltContext(), DmaPort::handleResp(), GenericTimer::handleStream(), X86ISA::GpuTLB::handleTranslationReturn(), IGbE::DescCache< iGbReg::RxDesc >::hasOutstandingEvents(), DmaThread::hitCallback(), GpuWavefront::hitCallback(), BaseRemoteGDB::incomingData(), Prefetcher::BOP::insertIntoDelayQueue(), Sequencer::insertRequest(), TimingSimpleCPU::isCpuDrained(), Sequencer::isDeadlockEventScheduled(), GPUCoalescer::isDeadlockEventScheduled(), DefaultFetch< Impl >::isDrained(), TesterThread::issueNextAction(), GpuWavefront::issueReleaseOp(), VIPERCoalescer::issueRequest(), GPUCoalescer::makeRequest(), BaseKvmCPU::notifyFork(), GPUDispatcher::notifyWgCompl(), DVFSHandler::perfLevel(), IGbE::postInterrupt(), DRAMInterface::prechargeBank(), LdsState::process(), MemCtrl::processNextReqEvent(), NVMInterface::processReadReadyEvent(), MemCtrl::processRespondEvent(), NVMInterface::processWriteRespondEvent(), Plic::propagateOutput(), pybind_init_event(), UFSHostDevice::readDevice(), Pl111::readFramebuffer(), TLBCoalescer::CpuSidePort::recvTimingReq(), SimpleMemory::recvTimingReq(), RiscvISA::Walker::recvTimingResp(), X86ISA::Walker::recvTimingResp(), TimingSimpleCPU::DcachePort::recvTimingResp(), sc_gem5::Scheduler::TimeSlot::releaseImpl(), Event::releaseImpl(), MemCtrl::requestEventScheduled(), DRAMInterface::respondEvent(), MemCtrl::respondEventScheduled(), IGbE::restartClock(), PL031::resyncMatch(), EtherTapBase::retransmit(), LdsState::returnQueuePush(), Gicv3Its::runProcessTiming(), NSGigE::rxKick(), HSAPacketProcessor::schedAQLProcessing(), TraceCPU::schedDcacheNextEvent(), PacketQueue::schedSendEvent(), Shader::ScheduleAdd(), TesterThread::scheduleDeadlockCheckEvent(), SMMUv3DeviceInterface::scheduleDeviceRetry(), GPUDispatcher::scheduleDispatch(), Consumer::scheduleNextWakeup(), BaseCPU::schedulePowerGatingEvent(), FullO3CPU< O3CPUImpl >::scheduleThreadExitEvent(), FullO3CPU< O3CPUImpl >::scheduleTickEvent(), TesterThread::scheduleWakeup(), HWScheduler::schedWakeup(), Iris::ThreadContext::semihostingEvent(), DmaPort::sendDma(), DRAMSim2::sendResponse(), DRAMsim3::sendResponse(), EtherTapBase::sendSimulated(), Sp805::serialize(), GenericWatchdog::serialize(), GPUDispatcher::serialize(), PL031::serialize(), EnergyCtrl::serialize(), SystemCounter::serialize(), SparcISA::ISA::serialize(), Uart8250::serialize(), BaseTrafficGen::serialize(), Sinic::Device::serialize(), NSGigE::serialize(), IdeDisk::serialize(), Pl111::serialize(), IGbE::serialize(), BaseCache::CacheResponsePort::setBlocked(), SparcISA::ISA::setFSReg(), Pl011::setInterrupts(), BaseRemoteGDB::setSingleStep(), Iris::ThreadContext::setStatus(), BaseRemoteGDB::singleStep(), Ticked::start(), Pl111::startDma(), MC146818::startup(), Ticked::stop(), BasePixelPump::stop(), BaseKvmCPU::suspendContext(), AtomicSimpleCPU::suspendContext(), TimingSimpleCPU::suspendContext(), BaseKvmCPU::switchOut(), AtomicSimpleCPU::switchOut(), TimingSimpleCPU::switchOut(), BaseKvmCPU::takeOverFrom(), AtomicSimpleCPU::takeOverFrom(), FullO3CPU< O3CPUImpl >::takeOverFrom(), GarnetSyntheticTraffic::tick(), MemTest::tick(), FullO3CPU< O3CPUImpl >::tick(), UFSHostDevice::transferHandler(), BaseTrafficGen::transition(), NSGigE::transmit(), FullO3CPU< O3CPUImpl >::tryDrain(), NSGigE::txKick(), HWScheduler::unregisterQueue(), FullO3CPU< O3CPUImpl >::unscheduleTickEvent(), GPUDispatcher::unserialize(), Event::unserialize(), ArchTimer::updateCounter(), GPUDispatcher::updateInvCounter(), TLBCoalescer::updatePhysAddresses(), Sp805::value(), FullO3CPU< O3CPUImpl >::wakeCPU(), TesterThread::wakeup(), Sp805::write(), EnergyCtrl::write(), MC146818::writeData(), UFSHostDevice::writeDevice(), Uart8250::writeIer(), AtomicSimpleCPU::~AtomicSimpleCPU(), Event::~Event(), and Iris::ThreadContext::~ThreadContext().
|
inline |
Temporarily migrate execution to a different event queue.
An instance of this class temporarily migrates execution to different event queue by releasing the current queue, locking the new queue, and updating curEventQueue(). This can, for example, be useful when performing IO across thread event queues when timing is not crucial (e.g., during fast forwarding).
ScopedMigration does nothing if both eqs are the same
Definition at line 686 of file eventq.hh.
References EventQueue::curEventQueue, EventQueue::ScopedMigration::doMigrate, EventQueue::lock(), EventQueue::ScopedMigration::new_eq, EventQueue::ScopedMigration::old_eq, and EventQueue::unlock().
|
inline |
process all events up to the given timestamp.
we inline a quick test to see if there are any events to process; if so, call the internal out-of-line version to process them all.
Notes:
Definition at line 873 of file eventq.hh.
References EventQueue::empty(), EventQueue::nextTick(), EventQueue::serviceOne(), and EventQueue::setCurTick().
Referenced by Minor::Execute::doInstCommitAccounting(), Iris::ThreadContext::maintainStepping(), and BaseSimpleCPU::preExecute().
|
inline |
Squash the current event.
Definition at line 469 of file eventq.hh.
References Event::flags, Flags< T >::set(), and EventBase::Squashed.
Referenced by Sinic::Base::cpuIntrClear(), NSGigE::cpuIntrClear(), Sinic::Base::cpuIntrPost(), NSGigE::cpuIntrPost(), pybind_init_event(), and FullO3CPU< O3CPUImpl >::unscheduleTickEvent().
|
inline |
Check whether the event is squashed.
Definition at line 476 of file eventq.hh.
References Event::flags, Flags< T >::isSet(), and EventBase::Squashed.
Referenced by pybind_init_event(), and FullO3CPU< O3CPUImpl >::scheduleTickEvent().
|
protectedvirtual |
This function isn't really useful if TRACING_ON is not defined.
trace event activity
Definition at line 377 of file eventq.cc.
References Event::description(), DPRINTF_UNCONDITIONAL, Event::instanceString(), and Event::when().
Function to signal that the event loop should be woken up because an event has been scheduled by an agent outside the gem5 event loop(s) whose event insertion may not have been noticed by gem5.
This function isn't needed by the usual gem5 event loop but may be necessary in derived EventQueues which host gem5 onto other schedulers.
when | Time of a delayed wakeup (if known). This parameter can be used by an implementation to schedule a wakeup in the future if it is sure it will remain active until then. Or it can be ignored and the event queue can be woken up now. |
Definition at line 927 of file eventq.hh.
Referenced by dumprstStatsHandler(), dumpStatsHandler(), exitNowHandler(), ioHandler(), PollQueue::setupAsyncIO(), and EventManager::wakeupEventQueue().
This function is not needed by the usual gem5 event loop but may be necessary in derived EventQueues which host gem5 on other schedulers.
Definition at line 1072 of file eventq.hh.
References EventManager::eventq, and EventQueue::wakeup().
|
inline |
Get the time that the event is scheduled.
Definition at line 505 of file eventq.hh.
References Event::_when.
Referenced by FlashDevice::accessDevice(), FlashDevice::actionComplete(), DRAMInterface::activateBank(), FlashDevice::checkDrain(), NVMInterface::chooseRead(), EventQueue::debugVerify(), DRAMInterface::doBurstAccess(), NVMInterface::doBurstAccess(), Event::dump(), RubySystem::memWriteback(), EventQueue::nextTick(), DRAMInterface::prechargeBank(), LdsState::process(), pybind_init_event(), TraceCPU::schedDcacheNextEvent(), PacketQueue::schedSendEvent(), LdsState::TickEvent::schedule(), Shader::ScheduleAdd(), Consumer::scheduleNextWakeup(), Sp805::serialize(), GenericWatchdog::serialize(), GPUDispatcher::serialize(), Sinic::Base::serialize(), PL031::serialize(), EnergyCtrl::serialize(), SystemCounter::serialize(), SparcISA::ISA::serialize(), MC146818::serialize(), VGic::serialize(), Uart8250::serialize(), BaseTrafficGen::serialize(), Sinic::Device::serialize(), NSGigE::serialize(), IdeDisk::serialize(), Pl111::serialize(), IGbE::serialize(), Event::setWhen(), Event::trace(), and Sp805::value().
|
virtual |
Definition at line 75 of file eventq.cc.
References Event::flags, and Event::scheduled().
|
static |
|
static |
|
static |
CPU ticks must come after other associated CPU events (such as writebacks).
Definition at line 201 of file eventq.hh.
Referenced by DefaultCommit< Impl >::generateTrapEvent(), and MipsISA::ISA::scheduleCP0Update().
|
static |
|
static |
|
static |
Default is zero for historical reasons.
Definition at line 176 of file eventq.hh.
Referenced by pybind_init_event().
|
static |
|
static |
|
static |
|
static |
|
static |
Progress events come at the end.
Definition at line 223 of file eventq.hh.
Referenced by simulate().
|
static |
|
static |
If we want to exit on this cycle, it's the very last thing we do.
Definition at line 231 of file eventq.hh.
Referenced by Iris::ThreadContext::ThreadContext().