gem5
[DEVELOP-FOR-23.0]
|
#include <Sequencer.hh>
Public Types | |
typedef RubySequencerParams | Params |
![]() | |
typedef RubyPortParams | Params |
![]() | |
using | Params = ClockedObjectParams |
Parameters of ClockedObject. More... | |
![]() | |
typedef SimObjectParams | Params |
Public Member Functions | |
Sequencer (const Params &) | |
~Sequencer () | |
void | writeCallbackScFail (Addr address, DataBlock &data) |
Proxy function to writeCallback that first invalidates the line address in the local monitor. More... | |
virtual void | wakeup () |
void | resetStats () override |
Callback to reset stats. More... | |
void | collateStats () |
void | writeCallback (Addr address, DataBlock &data, const bool externalHit=false, const MachineType mach=MachineType_NUM, const Cycles initialRequestTime=Cycles(0), const Cycles forwardRequestTime=Cycles(0), const Cycles firstResponseTime=Cycles(0), const bool noCoales=false) |
void | writeUniqueCallback (Addr address, DataBlock &data) |
void | readCallback (Addr address, DataBlock &data, const bool externalHit=false, const MachineType mach=MachineType_NUM, const Cycles initialRequestTime=Cycles(0), const Cycles forwardRequestTime=Cycles(0), const Cycles firstResponseTime=Cycles(0)) |
void | unaddressedCallback (Addr unaddressedReqId, RubyRequestType requestType, const MachineType mach=MachineType_NUM, const Cycles initialRequestTime=Cycles(0), const Cycles forwardRequestTime=Cycles(0), const Cycles firstResponseTime=Cycles(0)) |
RequestStatus | makeRequest (PacketPtr pkt) override |
virtual bool | empty () const |
int | outstandingCount () const override |
bool | isDeadlockEventScheduled () const override |
void | descheduleDeadlockEvent () override |
virtual void | print (std::ostream &out) const |
void | markRemoved () |
void | evictionCallback (Addr address) |
int | coreId () const |
virtual int | functionalWrite (Packet *func_pkt) override |
void | recordRequestType (SequencerRequestType requestType) |
statistics::Histogram & | getOutstandReqHist () |
statistics::Histogram & | getLatencyHist () |
statistics::Histogram & | getTypeLatencyHist (uint32_t t) |
statistics::Histogram & | getHitLatencyHist () |
statistics::Histogram & | getHitTypeLatencyHist (uint32_t t) |
statistics::Histogram & | getHitMachLatencyHist (uint32_t t) |
statistics::Histogram & | getHitTypeMachLatencyHist (uint32_t r, uint32_t t) |
statistics::Histogram & | getMissLatencyHist () |
statistics::Histogram & | getMissTypeLatencyHist (uint32_t t) |
statistics::Histogram & | getMissMachLatencyHist (uint32_t t) const |
statistics::Histogram & | getMissTypeMachLatencyHist (uint32_t r, uint32_t t) const |
statistics::Histogram & | getIssueToInitialDelayHist (uint32_t t) const |
statistics::Histogram & | getInitialToForwardDelayHist (const MachineType t) const |
statistics::Histogram & | getForwardRequestToFirstResponseHist (const MachineType t) const |
statistics::Histogram & | getFirstResponseToCompletionDelayHist (const MachineType t) const |
statistics::Counter | getIncompleteTimes (const MachineType t) const |
bool | llscCheckMonitor (const Addr) |
Searches for cache line address in the global monitor tagged with this Sequencer object's version id. More... | |
void | llscClearLocalMonitor () |
Removes all addresses from the local monitor. More... | |
![]() | |
RubyPort (const Params &p) | |
virtual | ~RubyPort () |
void | init () override |
init() is called after all C++ SimObjects have been created and all ports are connected. More... | |
Port & | getPort (const std::string &if_name, PortID idx=InvalidPortID) override |
Get a port with a given name and index. More... | |
void | setController (AbstractController *_cntrl) |
uint32_t | getId () |
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. More... | |
bool | isCPUSequencer () |
![]() | |
ClockedObject (const ClockedObjectParams &p) | |
void | serialize (CheckpointOut &cp) const override |
Serialize an object. More... | |
void | unserialize (CheckpointIn &cp) override |
Unserialize an object. More... | |
![]() | |
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. More... | |
virtual void | initState () |
initState() is called on each SimObject when not restoring from a checkpoint. More... | |
virtual void | regProbePoints () |
Register probe points for this object. More... | |
virtual void | regProbeListeners () |
Register probe listeners for this object. More... | |
ProbeManager * | getProbeManager () |
Get the probe manager for this object. More... | |
virtual void | startup () |
startup() is the final initialization call before simulation. More... | |
DrainState | drain () override |
Provide a default implementation of the drain interface for objects that don't need draining. More... | |
virtual void | memWriteback () |
Write back dirty buffers to memory using functional writes. More... | |
virtual void | memInvalidate () |
Invalidate the contents of memory buffers. More... | |
void | serialize (CheckpointOut &cp) const override |
Serialize an object. More... | |
void | unserialize (CheckpointIn &cp) override |
Unserialize an object. More... | |
![]() | |
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. More... | |
void | setCurTick (Tick newVal) |
EventManager (EventManager &em) | |
Event manger manages events in the event queue. More... | |
EventManager (EventManager *em) | |
EventManager (EventQueue *eq) | |
![]() | |
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) |
![]() | |
DrainState | drainState () const |
Return the current drain state of an object. More... | |
virtual void | notifyFork () |
Notify a child process of a fork. More... | |
![]() | |
Group (Group *parent, const char *name=nullptr) | |
Construct a new statistics group. More... | |
virtual | ~Group () |
virtual void | regStats () |
Callback to set stat parameters. More... | |
virtual void | preDumpStats () |
Callback before stats are dumped. More... | |
void | addStat (statistics::Info *info) |
Register a stat with this group. More... | |
const std::map< std::string, Group * > & | getStatGroups () const |
Get all child groups associated with this object. More... | |
const std::vector< Info * > & | getStats () const |
Get all stats associated with this object. More... | |
void | addStatGroup (const char *name, Group *block) |
Add a stat block as a child of this block. More... | |
const Info * | resolveStat (std::string name) const |
Resolve a stat by its name within this group. More... | |
void | mergeStatGroup (Group *block) |
Merge the contents (stats & children) of a block to this block. More... | |
Group ()=delete | |
Group (const Group &)=delete | |
Group & | operator= (const Group &)=delete |
![]() | |
Named (const std::string &name_) | |
virtual | ~Named ()=default |
virtual std::string | name () const |
![]() | |
void | updateClockPeriod () |
Update the tick to the current tick. More... | |
Tick | clockEdge (Cycles cycles=Cycles(0)) const |
Determine the tick when a cycle begins, by default the current one, but the argument also enables the caller to determine a future cycle. More... | |
Cycles | curCycle () const |
Determine the current cycle, corresponding to a tick aligned to a clock edge. More... | |
Tick | nextCycle () const |
Based on the clock of the object, determine the start tick of the first cycle that is at least one cycle in the future. More... | |
uint64_t | frequency () const |
Tick | clockPeriod () const |
double | voltage () const |
Cycles | ticksToCycles (Tick t) const |
Tick | cyclesToTicks (Cycles c) const |
Protected Member Functions | |
virtual RequestStatus | insertRequest (PacketPtr pkt, RubyRequestType primary_type, RubyRequestType secondary_type) |
![]() | |
void | trySendRetries () |
void | ruby_hit_callback (PacketPtr pkt) |
void | ruby_unaddressed_callback (PacketPtr pkt) |
void | ruby_stale_translation_callback (Addr txnId) |
void | testDrainComplete () |
void | ruby_eviction_callback (Addr address) |
bool | recvTimingResp (PacketPtr pkt, PortID request_port_id) |
Called by the PIO port when receiving a timing response. More... | |
![]() | |
Drainable () | |
virtual | ~Drainable () |
virtual void | drainResume () |
Resume execution after a successful drain. More... | |
void | signalDrainDone () const |
Signal that an object is drained. More... | |
![]() | |
Clocked (ClockDomain &clk_domain) | |
Create a clocked object and set the clock domain based on the parameters. More... | |
Clocked (Clocked &)=delete | |
Clocked & | operator= (Clocked &)=delete |
virtual | ~Clocked () |
Virtual destructor due to inheritance. More... | |
void | resetClock () const |
Reset the object's clock using the current global tick value. More... | |
virtual void | clockPeriodUpdated () |
A hook subclasses can implement so they can do any extra work that's needed when the clock rate is changed. More... | |
Protected Attributes | |
std::unordered_map< Addr, std::list< SequencerRequest > > | m_RequestTable |
std::unordered_map< uint64_t, SequencerRequest > | m_UnaddressedRequestTable |
Cycles | m_deadlock_threshold |
![]() | |
RubySystem * | m_ruby_system |
uint32_t | m_version |
AbstractController * | m_controller |
MessageBuffer * | m_mandatory_q_ptr |
bool | m_usingRubyTester |
System * | system |
std::vector< MemResponsePort * > | response_ports |
![]() | |
const SimObjectParams & | _params |
Cached copy of the object parameters. More... | |
![]() | |
EventQueue * | eventq |
A pointer to this object's event queue. More... | |
Private Member Functions | |
void | issueRequest (PacketPtr pkt, RubyRequestType type) |
void | hitCallback (SequencerRequest *srequest, DataBlock &data, bool llscSuccess, const MachineType mach, const bool externalHit, const Cycles initialRequestTime, const Cycles forwardRequestTime, const Cycles firstResponseTime, const bool was_coalesced) |
void | recordMissLatency (SequencerRequest *srequest, bool llscSuccess, const MachineType respondingMach, bool isExternalHit, Cycles initialRequestTime, Cycles forwardRequestTime, Cycles firstResponseTime) |
Sequencer (const Sequencer &obj) | |
Sequencer & | operator= (const Sequencer &obj) |
void | llscLoadLinked (const Addr) |
Places the cache line address into the global monitor tagged with this Sequencer object's version id. More... | |
void | llscClearMonitor (const Addr) |
Removes the cache line address from the global monitor. More... | |
bool | llscStoreConditional (const Addr) |
Searches for cache line address in the global monitor tagged with this Sequencer object's version id. More... | |
void | incrementUnaddressedTransactionCnt () |
Increment the unaddressed transaction counter. More... | |
uint64_t | getCurrentUnaddressedTransactionID () const |
Generate the current unaddressed transaction ID based on the counter and the Sequencer object's version id. More... | |
Additional Inherited Members | |
![]() | |
static void | serializeAll (const std::string &cpt_dir) |
Create a checkpoint by serializing all SimObjects in the system. More... | |
static SimObject * | find (const char *name) |
Find the SimObject with the given name and return a pointer to it. More... | |
static void | setSimObjectResolver (SimObjectResolver *resolver) |
There is a single object name resolver, and it is only set when simulation is restoring from checkpoints. More... | |
static SimObjectResolver * | getSimObjectResolver () |
There is a single object name resolver, and it is only set when simulation is restoring from checkpoints. More... | |
![]() | |
static const std::string & | currentSection () |
Gets the fully-qualified name of the active section. More... | |
static void | generateCheckpointOut (const std::string &cpt_dir, std::ofstream &outstream) |
Generate a checkpoint file so that the serialization can be routed to it. More... | |
![]() | |
PowerState * | powerState |
Definition at line 86 of file Sequencer.hh.
typedef RubySequencerParams gem5::ruby::Sequencer::Params |
Definition at line 89 of file Sequencer.hh.
gem5::ruby::Sequencer::Sequencer | ( | const Params & | p | ) |
Definition at line 70 of file Sequencer.cc.
References wakeup().
gem5::ruby::Sequencer::~Sequencer | ( | ) |
Definition at line 148 of file Sequencer.cc.
|
private |
void gem5::ruby::Sequencer::collateStats | ( | ) |
|
inline |
|
inlineoverridevirtual |
Implements gem5::ruby::RubyPort.
Definition at line 143 of file Sequencer.hh.
References deadlockCheckEvent, and gem5::EventManager::deschedule().
|
virtual |
Reimplemented in gem5::ruby::HTMSequencer.
Definition at line 747 of file Sequencer.cc.
References m_RequestTable, and m_UnaddressedRequestTable.
Referenced by gem5::ruby::HTMSequencer::empty().
void gem5::ruby::Sequencer::evictionCallback | ( | Addr | address | ) |
Definition at line 970 of file Sequencer.cc.
References llscClearMonitor(), and gem5::ruby::RubyPort::ruby_eviction_callback().
|
overridevirtual |
Reimplemented from gem5::ruby::RubyPort.
Definition at line 260 of file Sequencer.cc.
References gem5::ruby::RubyPort::functionalWrite(), and m_RequestTable.
|
private |
Generate the current unaddressed transaction ID based on the counter and the Sequencer object's version id.
Definition at line 991 of file Sequencer.cc.
References gem5::ruby::RubySystem::getBlockSizeBits(), m_unaddressedTransactionCnt, and gem5::ruby::RubyPort::m_version.
Referenced by insertRequest().
|
inline |
Definition at line 195 of file Sequencer.hh.
References m_FirstResponseToCompletionDelayHist, and gem5::VegaISA::t.
|
inline |
Definition at line 191 of file Sequencer.hh.
References m_ForwardToFirstResponseDelayHist, and gem5::VegaISA::t.
|
inline |
Definition at line 161 of file Sequencer.hh.
References m_hitLatencyHist.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 165 of file Sequencer.hh.
References m_hitMachLatencyHist, and gem5::VegaISA::t.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 162 of file Sequencer.hh.
References m_hitTypeLatencyHist, and gem5::VegaISA::t.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 168 of file Sequencer.hh.
References m_hitTypeMachLatencyHist, gem5::VegaISA::r, and gem5::VegaISA::t.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 198 of file Sequencer.hh.
References m_IncompleteTimes, and gem5::VegaISA::t.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 187 of file Sequencer.hh.
References m_InitialToForwardDelayHist, and gem5::VegaISA::t.
|
inline |
Definition at line 183 of file Sequencer.hh.
References m_IssueToInitialDelayHist, and gem5::VegaISA::t.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 157 of file Sequencer.hh.
References m_latencyHist.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 171 of file Sequencer.hh.
References m_missLatencyHist.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 176 of file Sequencer.hh.
References m_missMachLatencyHist, and gem5::VegaISA::t.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 173 of file Sequencer.hh.
References m_missTypeLatencyHist, and gem5::VegaISA::t.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 180 of file Sequencer.hh.
References m_missTypeMachLatencyHist, gem5::VegaISA::r, and gem5::VegaISA::t.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 155 of file Sequencer.hh.
References m_outstandReqHist.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 158 of file Sequencer.hh.
References m_typeLatencyHist, and gem5::VegaISA::t.
Referenced by gem5::ruby::Profiler::collateStats().
|
private |
Definition at line 598 of file Sequencer.cc.
References gem5::Packet::cmdString(), data, DPRINTF, gem5::Packet::findNextSenderState(), gem5::Packet::getAddr(), gem5::Packet::getAtomicOp(), gem5::ruby::RubySystem::getCooldownEnabled(), gem5::ruby::getOffset(), gem5::Packet::getSize(), gem5::ruby::RubySystem::getWarmupEnabled(), gem5::Packet::isAtomicOp(), gem5::Packet::isFlush(), gem5::Packet::isMaskedWrite(), llscLoadLinked(), gem5::ruby::RubyPort::m_controller, gem5::ruby::RubyPort::m_ruby_system, gem5::ruby::SequencerRequest::m_type, gem5::ruby::RubyPort::m_usingRubyTester, gem5::ruby::makeLineAddress(), gem5::ruby::SubBlock::mergeFrom(), gem5::ruby::AbstractController::notifyCoalesced(), gem5::ruby::SequencerRequest::pkt, gem5::ruby::printAddress(), gem5::Packet::req, gem5::ArmISA::rs, gem5::ruby::RubyPort::ruby_hit_callback(), gem5::Packet::setData(), gem5::RubyTester::SenderState::subBlock, gem5::ruby::RubyPort::testDrainComplete(), gem5::X86ISA::type, warn_once, and gem5::Packet::writeData().
Referenced by readCallback(), and writeCallback().
|
private |
Increment the unaddressed transaction counter.
Definition at line 977 of file Sequencer.cc.
References gem5::ruby::RubySystem::getBlockSizeBits(), and m_unaddressedTransactionCnt.
Referenced by insertRequest().
|
protectedvirtual |
Reimplemented in gem5::ruby::HTMSequencer.
Definition at line 306 of file Sequencer.cc.
References gem5::Clocked::clockEdge(), gem5::Clocked::curCycle(), deadlockCheckEvent, DPRINTF, gem5::Draining, gem5::Drainable::drainState(), gem5::Packet::getAddr(), getCurrentUnaddressedTransactionID(), incrementUnaddressedTransactionCnt(), gem5::ruby::isTlbiCmdRequest(), m_deadlock_threshold, m_outstanding_count, m_outstandReqHist, m_RequestTable, gem5::ruby::makeLineAddress(), panic, gem5::statistics::DistBase< Derived, Stor >::sample(), gem5::EventManager::schedule(), and gem5::Event::scheduled().
Referenced by gem5::ruby::HTMSequencer::insertRequest(), and makeRequest().
|
inlineoverridevirtual |
Implements gem5::ruby::RubyPort.
Definition at line 140 of file Sequencer.hh.
References deadlockCheckEvent, and gem5::Event::scheduled().
|
private |
Definition at line 867 of file Sequencer.cc.
References gem5::Clocked::clockEdge(), coreId(), gem5::curTick(), gem5::Clocked::cyclesToTicks(), DPRINTF, DPRINTFR, gem5::ruby::MessageBuffer::enqueue(), gem5::Packet::getAddr(), gem5::Packet::getHtmTransactionUid(), gem5::Packet::getSize(), gem5::InvalidContextID, gem5::Packet::isHtmTransactional(), gem5::ruby::RubyPort::m_controller, gem5::ruby::RubyPort::m_mandatory_q_ptr, gem5::ruby::RubyPort::m_version, gem5::ruby::AbstractController::mandatoryQueueLatency(), panic, gem5::MipsISA::pc, gem5::ruby::printAddress(), and gem5::Packet::req.
Referenced by makeRequest(), readCallback(), and writeCallback().
bool gem5::ruby::Sequencer::llscCheckMonitor | ( | const Addr | address | ) |
Searches for cache line address in the global monitor tagged with this Sequencer object's version id.
Definition at line 203 of file Sequencer.cc.
References gem5::ruby::AbstractCacheEntry::isLocked(), gem5::ruby::CacheMemory::lookup(), m_dataCache_ptr, gem5::ruby::RubyPort::m_version, and gem5::ruby::makeLineAddress().
void gem5::ruby::Sequencer::llscClearLocalMonitor | ( | ) |
Removes all addresses from the local monitor.
This is independent of this Sequencer object's version id.
Definition at line 219 of file Sequencer.cc.
References gem5::ruby::CacheMemory::clearLockedAll(), m_dataCache_ptr, and gem5::ruby::RubyPort::m_version.
|
private |
Removes the cache line address from the global monitor.
This is independent of this Sequencer object's version id.
Definition at line 166 of file Sequencer.cc.
References gem5::ruby::AbstractCacheEntry::clearLocked(), DPRINTF, gem5::ruby::AbstractCacheEntry::isLocked(), gem5::ruby::CacheMemory::lookup(), m_dataCache_ptr, and gem5::ruby::RubyPort::m_version.
Referenced by evictionCallback(), writeCallback(), and writeCallbackScFail().
|
private |
Places the cache line address into the global monitor tagged with this Sequencer object's version id.
Definition at line 153 of file Sequencer.cc.
References DPRINTF, fatal_if, gem5::ruby::CacheMemory::lookup(), m_dataCache_ptr, gem5::ruby::RubyPort::m_version, gem5::Named::name(), and gem5::ruby::AbstractCacheEntry::setLocked().
Referenced by hitCallback().
|
private |
Searches for cache line address in the global monitor tagged with this Sequencer object's version id.
If a match is found, the entry is is erased from the global monitor.
Definition at line 180 of file Sequencer.cc.
References gem5::ruby::AbstractCacheEntry::clearLocked(), DPRINTF, fatal_if, gem5::ruby::AbstractCacheEntry::isLocked(), gem5::ruby::CacheMemory::lookup(), m_dataCache_ptr, gem5::ruby::RubyPort::m_version, and gem5::Named::name().
Referenced by writeCallback().
|
overridevirtual |
Implements gem5::ruby::RubyPort.
Definition at line 754 of file Sequencer.cc.
References DPRINTF, gem5::Packet::getAddr(), gem5::ruby::htmCmdToRubyRequestType(), insertRequest(), gem5::ruby::AbstractController::isBlocked(), gem5::Packet::isFlush(), gem5::Packet::isLLSC(), gem5::Packet::isRead(), issueRequest(), gem5::Packet::isWrite(), gem5::ruby::RubyPort::m_controller, m_max_outstanding_requests, m_outstanding_count, gem5::ruby::makeLineAddress(), panic, gem5::Packet::req, gem5::ArmISA::status, and gem5::ruby::tlbiCmdToRubyRequestType().
Referenced by gem5::ruby::CacheRecorder::enqueueNextFetchRequest(), and gem5::ruby::CacheRecorder::enqueueNextFlushRequest().
void gem5::ruby::Sequencer::markRemoved | ( | ) |
Definition at line 369 of file Sequencer.cc.
References m_outstanding_count.
Referenced by gem5::ruby::HTMSequencer::htmCallback(), readCallback(), and writeCallback().
|
inlineoverridevirtual |
Implements gem5::ruby::RubyPort.
Definition at line 138 of file Sequencer.hh.
References m_outstanding_count.
|
virtual |
Reimplemented in gem5::ruby::HTMSequencer.
Definition at line 955 of file Sequencer.cc.
References m_outstanding_count, m_RequestTable, and gem5::ruby::RubyPort::m_version.
Referenced by gem5::ruby::operator<<(), and gem5::ruby::HTMSequencer::print().
void gem5::ruby::Sequencer::readCallback | ( | Addr | address, |
DataBlock & | data, | ||
const bool | externalHit = false , |
||
const MachineType | mach = MachineType_NUM , |
||
const Cycles | initialRequestTime = Cycles(0) , |
||
const Cycles | forwardRequestTime = Cycles(0) , |
||
const Cycles | firstResponseTime = Cycles(0) |
||
) |
Definition at line 546 of file Sequencer.cc.
References data, hitCallback(), issueRequest(), m_RequestTable, gem5::ruby::SequencerRequest::m_second_type, gem5::ruby::SequencerRequest::m_type, gem5::ruby::makeLineAddress(), markRemoved(), gem5::ruby::SequencerRequest::pkt, and recordMissLatency().
|
private |
Definition at line 375 of file Sequencer.cc.
References gem5::Clocked::curCycle(), gem5::curTick(), DPRINTFR, gem5::Packet::getAddr(), gem5::ruby::SequencerRequest::issue_time, m_FirstResponseToCompletionDelayHist, m_ForwardToFirstResponseDelayHist, m_hitLatencyHist, m_hitMachLatencyHist, m_hitTypeLatencyHist, m_hitTypeMachLatencyHist, m_IncompleteTimes, m_InitialToForwardDelayHist, m_IssueToInitialDelayHist, m_latencyHist, m_missLatencyHist, m_missMachLatencyHist, m_missTypeLatencyHist, m_missTypeMachLatencyHist, gem5::ruby::SequencerRequest::m_type, m_typeLatencyHist, gem5::ruby::RubyPort::m_version, gem5::ruby::SequencerRequest::pkt, gem5::ruby::printAddress(), gem5::statistics::DistBase< Derived, Stor >::sample(), and gem5::X86ISA::type.
Referenced by readCallback(), and writeCallback().
void gem5::ruby::Sequencer::recordRequestType | ( | SequencerRequestType | requestType | ) |
Definition at line 964 of file Sequencer.cc.
References DPRINTF.
|
overridevirtual |
Callback to reset stats.
Reimplemented from gem5::statistics::Group.
Definition at line 274 of file Sequencer.cc.
References gem5::ArmISA::i, gem5::ArmISA::j, m_FirstResponseToCompletionDelayHist, m_ForwardToFirstResponseDelayHist, m_hitLatencyHist, m_hitMachLatencyHist, m_hitTypeLatencyHist, m_hitTypeMachLatencyHist, m_IncompleteTimes, m_InitialToForwardDelayHist, m_IssueToInitialDelayHist, m_latencyHist, m_missLatencyHist, m_missMachLatencyHist, m_missTypeLatencyHist, m_missTypeMachLatencyHist, m_outstandReqHist, m_typeLatencyHist, and gem5::statistics::DistBase< Derived, Stor >::reset().
void gem5::ruby::Sequencer::unaddressedCallback | ( | Addr | unaddressedReqId, |
RubyRequestType | requestType, | ||
const MachineType | mach = MachineType_NUM , |
||
const Cycles | initialRequestTime = Cycles(0) , |
||
const Cycles | forwardRequestTime = Cycles(0) , |
||
const Cycles | firstResponseTime = Cycles(0) |
||
) |
Definition at line 697 of file Sequencer.cc.
References DPRINTF, gem5::ruby::SequencerRequest::m_type, m_UnaddressedRequestTable, panic, gem5::ruby::SequencerRequest::pkt, gem5::ruby::RubyPort::ruby_stale_translation_callback(), gem5::ruby::RubyPort::ruby_unaddressed_callback(), and gem5::ruby::RubyPort::testDrainComplete().
|
virtual |
Reimplemented in gem5::ruby::HTMSequencer.
Definition at line 225 of file Sequencer.cc.
References gem5::Clocked::clockEdge(), gem5::Clocked::clockPeriod(), gem5::Clocked::curCycle(), deadlockCheckEvent, gem5::Draining, gem5::Drainable::drainState(), m_deadlock_threshold, m_outstanding_count, m_RequestTable, gem5::ruby::RubyPort::m_version, panic, and gem5::EventManager::schedule().
Referenced by Sequencer(), and gem5::ruby::HTMSequencer::wakeup().
void gem5::ruby::Sequencer::writeCallback | ( | Addr | address, |
DataBlock & | data, | ||
const bool | externalHit = false , |
||
const MachineType | mach = MachineType_NUM , |
||
const Cycles | initialRequestTime = Cycles(0) , |
||
const Cycles | forwardRequestTime = Cycles(0) , |
||
const Cycles | firstResponseTime = Cycles(0) , |
||
const bool | noCoales = false |
||
) |
Definition at line 448 of file Sequencer.cc.
References gem5::ruby::AbstractController::blockOnQueue(), data, hitCallback(), issueRequest(), llscClearMonitor(), llscStoreConditional(), gem5::ruby::RubyPort::m_controller, gem5::ruby::RubyPort::m_mandatory_q_ptr, m_RequestTable, gem5::ruby::SequencerRequest::m_second_type, gem5::ruby::SequencerRequest::m_type, gem5::ruby::makeLineAddress(), markRemoved(), gem5::ruby::SequencerRequest::pkt, recordMissLatency(), gem5::Packet::req, and gem5::ruby::AbstractController::unblock().
Referenced by writeCallbackScFail(), and writeUniqueCallback().
Proxy function to writeCallback that first invalidates the line address in the local monitor.
Definition at line 441 of file Sequencer.cc.
References data, llscClearMonitor(), and writeCallback().
Definition at line 115 of file Sequencer.hh.
References data, and writeCallback().
|
private |
Definition at line 292 of file Sequencer.hh.
Referenced by descheduleDeadlockEvent(), insertRequest(), isDeadlockEventScheduled(), and wakeup().
|
private |
Definition at line 251 of file Sequencer.hh.
Referenced by coreId().
|
private |
Definition at line 244 of file Sequencer.hh.
|
private |
Definition at line 238 of file Sequencer.hh.
Referenced by llscCheckMonitor(), llscClearLocalMonitor(), llscClearMonitor(), llscLoadLinked(), and llscStoreConditional().
|
private |
Definition at line 249 of file Sequencer.hh.
|
protected |
Definition at line 229 of file Sequencer.hh.
Referenced by insertRequest(), gem5::ruby::HTMSequencer::wakeup(), and wakeup().
|
private |
Definition at line 289 of file Sequencer.hh.
Referenced by getFirstResponseToCompletionDelayHist(), recordMissLatency(), and resetStats().
|
private |
Definition at line 288 of file Sequencer.hh.
Referenced by getForwardRequestToFirstResponseHist(), recordMissLatency(), and resetStats().
|
private |
Histogram for holding latency profile of all requests that hit in the controller connected to this sequencer.
Definition at line 266 of file Sequencer.hh.
Referenced by getHitLatencyHist(), recordMissLatency(), and resetStats().
|
private |
Histograms for profiling the latencies for requests that did not required external messages.
Definition at line 271 of file Sequencer.hh.
Referenced by getHitMachLatencyHist(), recordMissLatency(), and resetStats().
|
private |
Definition at line 267 of file Sequencer.hh.
Referenced by getHitTypeLatencyHist(), recordMissLatency(), and resetStats().
|
private |
Definition at line 272 of file Sequencer.hh.
Referenced by getHitTypeMachLatencyHist(), recordMissLatency(), and resetStats().
|
private |
Definition at line 290 of file Sequencer.hh.
Referenced by getIncompleteTimes(), recordMissLatency(), and resetStats().
|
private |
Definition at line 287 of file Sequencer.hh.
Referenced by getInitialToForwardDelayHist(), recordMissLatency(), and resetStats().
|
private |
Definition at line 245 of file Sequencer.hh.
|
private |
Histograms for recording the breakdown of miss latency.
Definition at line 286 of file Sequencer.hh.
Referenced by getIssueToInitialDelayHist(), recordMissLatency(), and resetStats().
|
private |
Histogram for holding latency profile of all requests.
Definition at line 261 of file Sequencer.hh.
Referenced by getLatencyHist(), recordMissLatency(), and resetStats().
|
private |
Definition at line 236 of file Sequencer.hh.
Referenced by makeRequest().
|
private |
Histogram for holding latency profile of all requests that miss in the controller connected to this sequencer.
Definition at line 276 of file Sequencer.hh.
Referenced by getMissLatencyHist(), recordMissLatency(), and resetStats().
|
private |
Histograms for profiling the latencies for requests that required external messages.
Definition at line 281 of file Sequencer.hh.
Referenced by getMissMachLatencyHist(), recordMissLatency(), and resetStats().
|
private |
Definition at line 277 of file Sequencer.hh.
Referenced by getMissTypeLatencyHist(), recordMissLatency(), and resetStats().
|
private |
Definition at line 283 of file Sequencer.hh.
Referenced by getMissTypeMachLatencyHist(), recordMissLatency(), and resetStats().
|
private |
Definition at line 248 of file Sequencer.hh.
Referenced by insertRequest(), makeRequest(), markRemoved(), outstandingCount(), print(), and wakeup().
|
private |
Histogram for number of outstanding requests per cycle.
Definition at line 258 of file Sequencer.hh.
Referenced by getOutstandReqHist(), insertRequest(), and resetStats().
|
protected |
Definition at line 224 of file Sequencer.hh.
Referenced by empty(), functionalWrite(), gem5::ruby::HTMSequencer::htmCallback(), insertRequest(), print(), readCallback(), wakeup(), and writeCallback().
|
private |
Definition at line 255 of file Sequencer.hh.
|
private |
Definition at line 262 of file Sequencer.hh.
Referenced by getTypeLatencyHist(), recordMissLatency(), and resetStats().
|
protected |
Definition at line 227 of file Sequencer.hh.
Referenced by empty(), and unaddressedCallback().
|
private |
Definition at line 253 of file Sequencer.hh.
Referenced by getCurrentUnaddressedTransactionID(), and incrementUnaddressedTransactionCnt().