gem5  v22.1.0.0
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
gem5::ruby::Sequencer Class Reference

#include <Sequencer.hh>

Inheritance diagram for gem5::ruby::Sequencer:
gem5::ruby::RubyPort gem5::ClockedObject gem5::SimObject gem5::Clocked gem5::EventManager gem5::Serializable gem5::Drainable gem5::statistics::Group gem5::Named gem5::ruby::HTMSequencer

Public Types

typedef RubySequencerParams Params
 
- Public Types inherited from gem5::ruby::RubyPort
typedef RubyPortParams Params
 
- Public Types inherited from gem5::ClockedObject
using Params = ClockedObjectParams
 Parameters of ClockedObject. More...
 
- Public Types inherited from gem5::SimObject
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::HistogramgetOutstandReqHist ()
 
statistics::HistogramgetLatencyHist ()
 
statistics::HistogramgetTypeLatencyHist (uint32_t t)
 
statistics::HistogramgetHitLatencyHist ()
 
statistics::HistogramgetHitTypeLatencyHist (uint32_t t)
 
statistics::HistogramgetHitMachLatencyHist (uint32_t t)
 
statistics::HistogramgetHitTypeMachLatencyHist (uint32_t r, uint32_t t)
 
statistics::HistogramgetMissLatencyHist ()
 
statistics::HistogramgetMissTypeLatencyHist (uint32_t t)
 
statistics::HistogramgetMissMachLatencyHist (uint32_t t) const
 
statistics::HistogramgetMissTypeMachLatencyHist (uint32_t r, uint32_t t) const
 
statistics::HistogramgetIssueToInitialDelayHist (uint32_t t) const
 
statistics::HistogramgetInitialToForwardDelayHist (const MachineType t) const
 
statistics::HistogramgetForwardRequestToFirstResponseHist (const MachineType t) const
 
statistics::HistogramgetFirstResponseToCompletionDelayHist (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...
 
- Public Member Functions inherited from gem5::ruby::RubyPort
 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...
 
PortgetPort (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 ()
 
- Public Member Functions inherited from gem5::ClockedObject
 ClockedObject (const ClockedObjectParams &p)
 
void serialize (CheckpointOut &cp) const override
 Serialize an object. More...
 
void unserialize (CheckpointIn &cp) override
 Unserialize an object. More...
 
- Public Member Functions inherited from gem5::SimObject
const Paramsparams () 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...
 
ProbeManagergetProbeManager ()
 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...
 
- Public Member Functions inherited from gem5::EventManager
EventQueueeventQueue () 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)
 
- 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. 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)
 
- Public Member Functions inherited from gem5::Drainable
DrainState drainState () const
 Return the current drain state of an object. More...
 
virtual void notifyFork ()
 Notify a child process of a fork. More...
 
- Public Member Functions inherited from gem5::statistics::Group
 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 InforesolveStat (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
 
Groupoperator= (const Group &)=delete
 
- Public Member Functions inherited from gem5::Named
 Named (const std::string &name_)
 
virtual ~Named ()=default
 
virtual std::string name () const
 
- Public Member Functions inherited from gem5::Clocked
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)
 
- Protected Member Functions inherited from gem5::ruby::RubyPort
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...
 
- Protected Member Functions inherited from gem5::Drainable
 Drainable ()
 
virtual ~Drainable ()
 
virtual void drainResume ()
 Resume execution after a successful drain. More...
 
void signalDrainDone () const
 Signal that an object is drained. More...
 
- Protected Member Functions inherited from gem5::Clocked
 Clocked (ClockDomain &clk_domain)
 Create a clocked object and set the clock domain based on the parameters. More...
 
 Clocked (Clocked &)=delete
 
Clockedoperator= (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, SequencerRequestm_UnaddressedRequestTable
 
Cycles m_deadlock_threshold
 
- Protected Attributes inherited from gem5::ruby::RubyPort
RubySystemm_ruby_system
 
uint32_t m_version
 
AbstractControllerm_controller
 
MessageBufferm_mandatory_q_ptr
 
bool m_usingRubyTester
 
Systemsystem
 
std::vector< MemResponsePort * > response_ports
 
- Protected Attributes inherited from gem5::SimObject
const SimObjectParams & _params
 Cached copy of the object parameters. More...
 
- Protected Attributes inherited from gem5::EventManager
EventQueueeventq
 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)
 
Sequenceroperator= (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...
 

Private Attributes

int m_max_outstanding_requests
 
CacheMemorym_dataCache_ptr
 
Cycles m_data_cache_hit_latency
 
Cycles m_inst_cache_hit_latency
 
int m_outstanding_count
 
bool m_deadlock_check_scheduled
 
int m_coreId
 
uint64_t m_unaddressedTransactionCnt
 
bool m_runningGarnetStandalone
 
statistics::Histogram m_outstandReqHist
 Histogram for number of outstanding requests per cycle. More...
 
statistics::Histogram m_latencyHist
 Histogram for holding latency profile of all requests. More...
 
std::vector< statistics::Histogram * > m_typeLatencyHist
 
statistics::Histogram m_hitLatencyHist
 Histogram for holding latency profile of all requests that hit in the controller connected to this sequencer. More...
 
std::vector< statistics::Histogram * > m_hitTypeLatencyHist
 
std::vector< statistics::Histogram * > m_hitMachLatencyHist
 Histograms for profiling the latencies for requests that did not required external messages. More...
 
std::vector< std::vector< statistics::Histogram * > > m_hitTypeMachLatencyHist
 
statistics::Histogram m_missLatencyHist
 Histogram for holding latency profile of all requests that miss in the controller connected to this sequencer. More...
 
std::vector< statistics::Histogram * > m_missTypeLatencyHist
 
std::vector< statistics::Histogram * > m_missMachLatencyHist
 Histograms for profiling the latencies for requests that required external messages. More...
 
std::vector< std::vector< statistics::Histogram * > > m_missTypeMachLatencyHist
 
std::vector< statistics::Histogram * > m_IssueToInitialDelayHist
 Histograms for recording the breakdown of miss latency. More...
 
std::vector< statistics::Histogram * > m_InitialToForwardDelayHist
 
std::vector< statistics::Histogram * > m_ForwardToFirstResponseDelayHist
 
std::vector< statistics::Histogram * > m_FirstResponseToCompletionDelayHist
 
std::vector< statistics::Counterm_IncompleteTimes
 
EventFunctionWrapper deadlockCheckEvent
 

Additional Inherited Members

- Static Public Member Functions inherited from gem5::SimObject
static void serializeAll (const std::string &cpt_dir)
 Create a checkpoint by serializing all SimObjects in the system. More...
 
static SimObjectfind (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 SimObjectResolvergetSimObjectResolver ()
 There is a single object name resolver, and it is only set when simulation is restoring from checkpoints. More...
 
- Static Public Member Functions inherited from gem5::Serializable
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...
 
- Public Attributes inherited from gem5::ClockedObject
PowerStatepowerState
 

Detailed Description

Definition at line 86 of file Sequencer.hh.

Member Typedef Documentation

◆ Params

typedef RubySequencerParams gem5::ruby::Sequencer::Params

Definition at line 89 of file Sequencer.hh.

Constructor & Destructor Documentation

◆ Sequencer() [1/2]

gem5::ruby::Sequencer::Sequencer ( const Params p)

Definition at line 70 of file Sequencer.cc.

References wakeup().

◆ ~Sequencer()

gem5::ruby::Sequencer::~Sequencer ( )

Definition at line 148 of file Sequencer.cc.

◆ Sequencer() [2/2]

gem5::ruby::Sequencer::Sequencer ( const Sequencer obj)
private

Member Function Documentation

◆ collateStats()

void gem5::ruby::Sequencer::collateStats ( )

◆ coreId()

int gem5::ruby::Sequencer::coreId ( ) const
inline

Definition at line 150 of file Sequencer.hh.

References m_coreId.

Referenced by issueRequest().

◆ descheduleDeadlockEvent()

void gem5::ruby::Sequencer::descheduleDeadlockEvent ( )
inlineoverridevirtual

Implements gem5::ruby::RubyPort.

Definition at line 143 of file Sequencer.hh.

References deadlockCheckEvent, and gem5::EventManager::deschedule().

◆ empty()

bool gem5::ruby::Sequencer::empty ( ) const
virtual

Reimplemented in gem5::ruby::HTMSequencer.

Definition at line 754 of file Sequencer.cc.

References m_RequestTable, and m_UnaddressedRequestTable.

Referenced by gem5::ruby::HTMSequencer::empty().

◆ evictionCallback()

void gem5::ruby::Sequencer::evictionCallback ( Addr  address)

◆ functionalWrite()

int gem5::ruby::Sequencer::functionalWrite ( Packet func_pkt)
overridevirtual

Reimplemented from gem5::ruby::RubyPort.

Definition at line 260 of file Sequencer.cc.

References gem5::ruby::RubyPort::functionalWrite(), and m_RequestTable.

◆ getCurrentUnaddressedTransactionID()

uint64_t gem5::ruby::Sequencer::getCurrentUnaddressedTransactionID ( ) const
private

Generate the current unaddressed transaction ID based on the counter and the Sequencer object's version id.

Definition at line 998 of file Sequencer.cc.

References gem5::ruby::RubySystem::getBlockSizeBits(), m_unaddressedTransactionCnt, and gem5::ruby::RubyPort::m_version.

Referenced by insertRequest().

◆ getFirstResponseToCompletionDelayHist()

statistics::Histogram& gem5::ruby::Sequencer::getFirstResponseToCompletionDelayHist ( const MachineType  t) const
inline

Definition at line 195 of file Sequencer.hh.

References m_FirstResponseToCompletionDelayHist, and gem5::VegaISA::t.

◆ getForwardRequestToFirstResponseHist()

statistics::Histogram& gem5::ruby::Sequencer::getForwardRequestToFirstResponseHist ( const MachineType  t) const
inline

Definition at line 191 of file Sequencer.hh.

References m_ForwardToFirstResponseDelayHist, and gem5::VegaISA::t.

◆ getHitLatencyHist()

statistics::Histogram& gem5::ruby::Sequencer::getHitLatencyHist ( )
inline

Definition at line 161 of file Sequencer.hh.

References m_hitLatencyHist.

Referenced by gem5::ruby::Profiler::collateStats().

◆ getHitMachLatencyHist()

statistics::Histogram& gem5::ruby::Sequencer::getHitMachLatencyHist ( uint32_t  t)
inline

Definition at line 165 of file Sequencer.hh.

References m_hitMachLatencyHist, and gem5::VegaISA::t.

Referenced by gem5::ruby::Profiler::collateStats().

◆ getHitTypeLatencyHist()

statistics::Histogram& gem5::ruby::Sequencer::getHitTypeLatencyHist ( uint32_t  t)
inline

Definition at line 162 of file Sequencer.hh.

References m_hitTypeLatencyHist, and gem5::VegaISA::t.

Referenced by gem5::ruby::Profiler::collateStats().

◆ getHitTypeMachLatencyHist()

statistics::Histogram& gem5::ruby::Sequencer::getHitTypeMachLatencyHist ( uint32_t  r,
uint32_t  t 
)
inline

◆ getIncompleteTimes()

statistics::Counter gem5::ruby::Sequencer::getIncompleteTimes ( const MachineType  t) const
inline

Definition at line 198 of file Sequencer.hh.

References m_IncompleteTimes, and gem5::VegaISA::t.

Referenced by gem5::ruby::Profiler::collateStats().

◆ getInitialToForwardDelayHist()

statistics::Histogram& gem5::ruby::Sequencer::getInitialToForwardDelayHist ( const MachineType  t) const
inline

Definition at line 187 of file Sequencer.hh.

References m_InitialToForwardDelayHist, and gem5::VegaISA::t.

◆ getIssueToInitialDelayHist()

statistics::Histogram& gem5::ruby::Sequencer::getIssueToInitialDelayHist ( uint32_t  t) const
inline

Definition at line 183 of file Sequencer.hh.

References m_IssueToInitialDelayHist, and gem5::VegaISA::t.

Referenced by gem5::ruby::Profiler::collateStats().

◆ getLatencyHist()

statistics::Histogram& gem5::ruby::Sequencer::getLatencyHist ( )
inline

Definition at line 157 of file Sequencer.hh.

References m_latencyHist.

Referenced by gem5::ruby::Profiler::collateStats().

◆ getMissLatencyHist()

statistics::Histogram& gem5::ruby::Sequencer::getMissLatencyHist ( )
inline

Definition at line 171 of file Sequencer.hh.

References m_missLatencyHist.

Referenced by gem5::ruby::Profiler::collateStats().

◆ getMissMachLatencyHist()

statistics::Histogram& gem5::ruby::Sequencer::getMissMachLatencyHist ( uint32_t  t) const
inline

Definition at line 176 of file Sequencer.hh.

References m_missMachLatencyHist, and gem5::VegaISA::t.

Referenced by gem5::ruby::Profiler::collateStats().

◆ getMissTypeLatencyHist()

statistics::Histogram& gem5::ruby::Sequencer::getMissTypeLatencyHist ( uint32_t  t)
inline

Definition at line 173 of file Sequencer.hh.

References m_missTypeLatencyHist, and gem5::VegaISA::t.

Referenced by gem5::ruby::Profiler::collateStats().

◆ getMissTypeMachLatencyHist()

statistics::Histogram& gem5::ruby::Sequencer::getMissTypeMachLatencyHist ( uint32_t  r,
uint32_t  t 
) const
inline

◆ getOutstandReqHist()

statistics::Histogram& gem5::ruby::Sequencer::getOutstandReqHist ( )
inline

Definition at line 155 of file Sequencer.hh.

References m_outstandReqHist.

Referenced by gem5::ruby::Profiler::collateStats().

◆ getTypeLatencyHist()

statistics::Histogram& gem5::ruby::Sequencer::getTypeLatencyHist ( uint32_t  t)
inline

Definition at line 158 of file Sequencer.hh.

References m_typeLatencyHist, and gem5::VegaISA::t.

Referenced by gem5::ruby::Profiler::collateStats().

◆ hitCallback()

void gem5::ruby::Sequencer::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 
)
private

◆ incrementUnaddressedTransactionCnt()

void gem5::ruby::Sequencer::incrementUnaddressedTransactionCnt ( )
private

Increment the unaddressed transaction counter.

Definition at line 984 of file Sequencer.cc.

References gem5::ruby::RubySystem::getBlockSizeBits(), and m_unaddressedTransactionCnt.

Referenced by insertRequest().

◆ insertRequest()

RequestStatus gem5::ruby::Sequencer::insertRequest ( PacketPtr  pkt,
RubyRequestType  primary_type,
RubyRequestType  secondary_type 
)
protectedvirtual

◆ isDeadlockEventScheduled()

bool gem5::ruby::Sequencer::isDeadlockEventScheduled ( ) const
inlineoverridevirtual

Implements gem5::ruby::RubyPort.

Definition at line 140 of file Sequencer.hh.

References deadlockCheckEvent, and gem5::Event::scheduled().

◆ issueRequest()

void gem5::ruby::Sequencer::issueRequest ( PacketPtr  pkt,
RubyRequestType  type 
)
private

◆ llscCheckMonitor()

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.

Returns
a boolean indicating if the line address was found.

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().

◆ llscClearLocalMonitor()

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.

◆ llscClearMonitor()

void gem5::ruby::Sequencer::llscClearMonitor ( const Addr  claddr)
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().

◆ llscLoadLinked()

void gem5::ruby::Sequencer::llscLoadLinked ( const Addr  claddr)
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().

◆ llscStoreConditional()

bool gem5::ruby::Sequencer::llscStoreConditional ( const Addr  claddr)
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.

Returns
a boolean indicating if the line address was found.

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().

◆ makeRequest()

RequestStatus gem5::ruby::Sequencer::makeRequest ( PacketPtr  pkt)
overridevirtual

◆ markRemoved()

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().

◆ operator=()

Sequencer& gem5::ruby::Sequencer::operator= ( const Sequencer obj)
private

◆ outstandingCount()

int gem5::ruby::Sequencer::outstandingCount ( ) const
inlineoverridevirtual

Implements gem5::ruby::RubyPort.

Definition at line 138 of file Sequencer.hh.

References m_outstanding_count.

◆ print()

void gem5::ruby::Sequencer::print ( std::ostream &  out) const
virtual

◆ readCallback()

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) 
)

◆ recordMissLatency()

void gem5::ruby::Sequencer::recordMissLatency ( SequencerRequest srequest,
bool  llscSuccess,
const MachineType  respondingMach,
bool  isExternalHit,
Cycles  initialRequestTime,
Cycles  forwardRequestTime,
Cycles  firstResponseTime 
)
private

◆ recordRequestType()

void gem5::ruby::Sequencer::recordRequestType ( SequencerRequestType  requestType)

Definition at line 971 of file Sequencer.cc.

References DPRINTF.

◆ resetStats()

void gem5::ruby::Sequencer::resetStats ( )
overridevirtual

◆ unaddressedCallback()

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) 
)

◆ wakeup()

void gem5::ruby::Sequencer::wakeup ( )
virtual

◆ writeCallback()

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 
)

◆ writeCallbackScFail()

void gem5::ruby::Sequencer::writeCallbackScFail ( Addr  address,
DataBlock data 
)

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().

◆ writeUniqueCallback()

void gem5::ruby::Sequencer::writeUniqueCallback ( Addr  address,
DataBlock data 
)
inline

Definition at line 115 of file Sequencer.hh.

References data, and writeCallback().

Member Data Documentation

◆ deadlockCheckEvent

EventFunctionWrapper gem5::ruby::Sequencer::deadlockCheckEvent
private

◆ m_coreId

int gem5::ruby::Sequencer::m_coreId
private

Definition at line 251 of file Sequencer.hh.

Referenced by coreId().

◆ m_data_cache_hit_latency

Cycles gem5::ruby::Sequencer::m_data_cache_hit_latency
private

Definition at line 244 of file Sequencer.hh.

◆ m_dataCache_ptr

CacheMemory* gem5::ruby::Sequencer::m_dataCache_ptr
private

◆ m_deadlock_check_scheduled

bool gem5::ruby::Sequencer::m_deadlock_check_scheduled
private

Definition at line 249 of file Sequencer.hh.

◆ m_deadlock_threshold

Cycles gem5::ruby::Sequencer::m_deadlock_threshold
protected

Definition at line 229 of file Sequencer.hh.

Referenced by insertRequest(), wakeup(), and gem5::ruby::HTMSequencer::wakeup().

◆ m_FirstResponseToCompletionDelayHist

std::vector<statistics::Histogram *> gem5::ruby::Sequencer::m_FirstResponseToCompletionDelayHist
private

◆ m_ForwardToFirstResponseDelayHist

std::vector<statistics::Histogram *> gem5::ruby::Sequencer::m_ForwardToFirstResponseDelayHist
private

◆ m_hitLatencyHist

statistics::Histogram gem5::ruby::Sequencer::m_hitLatencyHist
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().

◆ m_hitMachLatencyHist

std::vector<statistics::Histogram *> gem5::ruby::Sequencer::m_hitMachLatencyHist
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().

◆ m_hitTypeLatencyHist

std::vector<statistics::Histogram *> gem5::ruby::Sequencer::m_hitTypeLatencyHist
private

Definition at line 267 of file Sequencer.hh.

Referenced by getHitTypeLatencyHist(), recordMissLatency(), and resetStats().

◆ m_hitTypeMachLatencyHist

std::vector<std::vector<statistics::Histogram *> > gem5::ruby::Sequencer::m_hitTypeMachLatencyHist
private

Definition at line 272 of file Sequencer.hh.

Referenced by getHitTypeMachLatencyHist(), recordMissLatency(), and resetStats().

◆ m_IncompleteTimes

std::vector<statistics::Counter> gem5::ruby::Sequencer::m_IncompleteTimes
private

Definition at line 290 of file Sequencer.hh.

Referenced by getIncompleteTimes(), recordMissLatency(), and resetStats().

◆ m_InitialToForwardDelayHist

std::vector<statistics::Histogram *> gem5::ruby::Sequencer::m_InitialToForwardDelayHist
private

Definition at line 287 of file Sequencer.hh.

Referenced by getInitialToForwardDelayHist(), recordMissLatency(), and resetStats().

◆ m_inst_cache_hit_latency

Cycles gem5::ruby::Sequencer::m_inst_cache_hit_latency
private

Definition at line 245 of file Sequencer.hh.

◆ m_IssueToInitialDelayHist

std::vector<statistics::Histogram *> gem5::ruby::Sequencer::m_IssueToInitialDelayHist
private

Histograms for recording the breakdown of miss latency.

Definition at line 286 of file Sequencer.hh.

Referenced by getIssueToInitialDelayHist(), recordMissLatency(), and resetStats().

◆ m_latencyHist

statistics::Histogram gem5::ruby::Sequencer::m_latencyHist
private

Histogram for holding latency profile of all requests.

Definition at line 261 of file Sequencer.hh.

Referenced by getLatencyHist(), recordMissLatency(), and resetStats().

◆ m_max_outstanding_requests

int gem5::ruby::Sequencer::m_max_outstanding_requests
private

Definition at line 236 of file Sequencer.hh.

Referenced by makeRequest().

◆ m_missLatencyHist

statistics::Histogram gem5::ruby::Sequencer::m_missLatencyHist
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().

◆ m_missMachLatencyHist

std::vector<statistics::Histogram *> gem5::ruby::Sequencer::m_missMachLatencyHist
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().

◆ m_missTypeLatencyHist

std::vector<statistics::Histogram *> gem5::ruby::Sequencer::m_missTypeLatencyHist
private

Definition at line 277 of file Sequencer.hh.

Referenced by getMissTypeLatencyHist(), recordMissLatency(), and resetStats().

◆ m_missTypeMachLatencyHist

std::vector<std::vector<statistics::Histogram *> > gem5::ruby::Sequencer::m_missTypeMachLatencyHist
private

Definition at line 283 of file Sequencer.hh.

Referenced by getMissTypeMachLatencyHist(), recordMissLatency(), and resetStats().

◆ m_outstanding_count

int gem5::ruby::Sequencer::m_outstanding_count
private

Definition at line 248 of file Sequencer.hh.

Referenced by insertRequest(), makeRequest(), markRemoved(), outstandingCount(), print(), and wakeup().

◆ m_outstandReqHist

statistics::Histogram gem5::ruby::Sequencer::m_outstandReqHist
private

Histogram for number of outstanding requests per cycle.

Definition at line 258 of file Sequencer.hh.

Referenced by getOutstandReqHist(), insertRequest(), and resetStats().

◆ m_RequestTable

std::unordered_map<Addr, std::list<SequencerRequest> > gem5::ruby::Sequencer::m_RequestTable
protected

◆ m_runningGarnetStandalone

bool gem5::ruby::Sequencer::m_runningGarnetStandalone
private

Definition at line 255 of file Sequencer.hh.

◆ m_typeLatencyHist

std::vector<statistics::Histogram *> gem5::ruby::Sequencer::m_typeLatencyHist
private

Definition at line 262 of file Sequencer.hh.

Referenced by getTypeLatencyHist(), recordMissLatency(), and resetStats().

◆ m_UnaddressedRequestTable

std::unordered_map<uint64_t, SequencerRequest> gem5::ruby::Sequencer::m_UnaddressedRequestTable
protected

Definition at line 227 of file Sequencer.hh.

Referenced by empty(), and unaddressedCallback().

◆ m_unaddressedTransactionCnt

uint64_t gem5::ruby::Sequencer::m_unaddressedTransactionCnt
private

The documentation for this class was generated from the following files:

Generated on Wed Dec 21 2022 10:24:23 for gem5 by doxygen 1.9.1