gem5 v24.0.0.0
Loading...
Searching...
No Matches
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.
 
- 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.
 
virtual void wakeup ()
 
void resetStats () override
 Callback to reset stats.
 
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 atomicCallback (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))
 
void completeHitCallback (std::vector< PacketPtr > &list)
 
void invL1Callback ()
 
void invL1 ()
 
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.
 
void llscClearLocalMonitor ()
 Removes all addresses from the local monitor.
 
- 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.
 
PortgetPort (const std::string &if_name, PortID idx=InvalidPortID) override
 Get a port with a given name and index.
 
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.
 
bool isCPUSequencer ()
 
- Public Member Functions inherited from gem5::ClockedObject
 ClockedObject (const ClockedObjectParams &p)
 
void serialize (CheckpointOut &cp) const override
 Serialize an object.
 
void unserialize (CheckpointIn &cp) override
 Unserialize an object.
 
- 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.
 
virtual void initState ()
 initState() is called on each SimObject when not restoring from a checkpoint.
 
virtual void regProbePoints ()
 Register probe points for this object.
 
virtual void regProbeListeners ()
 Register probe listeners for this object.
 
ProbeManagergetProbeManager ()
 Get the probe manager for this object.
 
virtual void startup ()
 startup() is the final initialization call before simulation.
 
DrainState drain () override
 Provide a default implementation of the drain interface for objects that don't need draining.
 
virtual void memWriteback ()
 Write back dirty buffers to memory using functional writes.
 
virtual void memInvalidate ()
 Invalidate the contents of memory buffers.
 
void serialize (CheckpointOut &cp) const override
 Serialize an object.
 
void unserialize (CheckpointIn &cp) override
 Unserialize an object.
 
- 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.
 
void setCurTick (Tick newVal)
 
 EventManager (EventManager &em)
 Event manger manages events in the event queue.
 
 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.
 
void serializeSection (CheckpointOut &cp, const std::string &name) const
 
void unserializeSection (CheckpointIn &cp, const char *name)
 Unserialize an a child object.
 
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.
 
virtual void notifyFork ()
 Notify a child process of a fork.
 
- Public Member Functions inherited from gem5::statistics::Group
 Group (Group *parent, const char *name=nullptr)
 Construct a new statistics group.
 
virtual ~Group ()
 
virtual void regStats ()
 Callback to set stat parameters.
 
virtual void preDumpStats ()
 Callback before stats are dumped.
 
void addStat (statistics::Info *info)
 Register a stat with this group.
 
const std::map< std::string, Group * > & getStatGroups () const
 Get all child groups associated with this object.
 
const std::vector< Info * > & getStats () const
 Get all stats associated with this object.
 
void addStatGroup (const char *name, Group *block)
 Add a stat block as a child of this block.
 
const InforesolveStat (std::string name) const
 Resolve a stat by its name within this group.
 
void mergeStatGroup (Group *block)
 Merge the contents (stats & children) of a block to this block.
 
 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.
 
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.
 
Cycles curCycle () const
 Determine the current cycle, corresponding to a tick aligned to a clock edge.
 
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.
 
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.
 
- Protected Member Functions inherited from gem5::Drainable
 Drainable ()
 
virtual ~Drainable ()
 
virtual void drainResume ()
 Resume execution after a successful drain.
 
void signalDrainDone () const
 Signal that an object is drained.
 
- Protected Member Functions inherited from gem5::Clocked
 Clocked (ClockDomain &clk_domain)
 Create a clocked object and set the clock domain based on the parameters.
 
 Clocked (Clocked &)=delete
 
Clockedoperator= (Clocked &)=delete
 
virtual ~Clocked ()
 Virtual destructor due to inheritance.
 
void resetClock () const
 Reset the object's clock using the current global tick value.
 
virtual void clockPeriodUpdated ()
 A hook subclasses can implement so they can do any extra work that's needed when the clock rate is changed.
 

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.
 
- Protected Attributes inherited from gem5::EventManager
EventQueueeventq
 A pointer to this object's event queue.
 

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.
 
void llscClearMonitor (const Addr)
 Removes the cache line address from the global monitor.
 
bool llscStoreConditional (const Addr)
 Searches for cache line address in the global monitor tagged with this Sequencer object's version id.
 
void incrementUnaddressedTransactionCnt ()
 Increment the unaddressed transaction counter.
 
uint64_t getCurrentUnaddressedTransactionID () const
 Generate the current unaddressed transaction ID based on the counter and the Sequencer object's version id.
 

Private Attributes

int m_max_outstanding_requests
 
int m_num_pending_invs
 
PacketPtr m_cache_inv_pkt
 
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.
 
statistics::Histogram m_latencyHist
 Histogram for holding latency profile of all requests.
 
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.
 
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.
 
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.
 
std::vector< statistics::Histogram * > m_missTypeLatencyHist
 
std::vector< statistics::Histogram * > m_missMachLatencyHist
 Histograms for profiling the latencies for requests that required external messages.
 
std::vector< std::vector< statistics::Histogram * > > m_missTypeMachLatencyHist
 
std::vector< statistics::Histogram * > m_IssueToInitialDelayHist
 Histograms for recording the breakdown of miss latency.
 
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.
 
static SimObjectfind (const char *name)
 Find the SimObject with the given name and return a pointer to it.
 
static void setSimObjectResolver (SimObjectResolver *resolver)
 There is a single object name resolver, and it is only set when simulation is restoring from checkpoints.
 
static SimObjectResolvergetSimObjectResolver ()
 There is a single object name resolver, and it is only set when simulation is restoring from checkpoints.
 
- Static Public Member Functions inherited from gem5::Serializable
static const std::string & currentSection ()
 Gets the fully-qualified name of the active section.
 
static void generateCheckpointOut (const std::string &cpt_dir, std::ofstream &outstream)
 Generate a checkpoint file so that the serialization can be routed to it.
 
- 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 150 of file Sequencer.cc.

◆ Sequencer() [2/2]

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

Member Function Documentation

◆ atomicCallback()

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

◆ collateStats()

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

◆ completeHitCallback()

◆ coreId()

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

Definition at line 162 of file Sequencer.hh.

References m_coreId.

Referenced by issueRequest().

◆ descheduleDeadlockEvent()

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

Implements gem5::ruby::RubyPort.

Definition at line 155 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 907 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 262 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 1181 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 207 of file Sequencer.hh.

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

◆ getForwardRequestToFirstResponseHist()

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

Definition at line 203 of file Sequencer.hh.

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

◆ getHitLatencyHist()

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

Definition at line 173 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 177 of file Sequencer.hh.

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

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

◆ getHitTypeLatencyHist()

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

Definition at line 174 of file Sequencer.hh.

References m_hitTypeLatencyHist, and gem5::ArmISA::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 210 of file Sequencer.hh.

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

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

◆ getInitialToForwardDelayHist()

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

Definition at line 199 of file Sequencer.hh.

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

◆ getIssueToInitialDelayHist()

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

Definition at line 195 of file Sequencer.hh.

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

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

◆ getLatencyHist()

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

Definition at line 169 of file Sequencer.hh.

References m_latencyHist.

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

◆ getMissLatencyHist()

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

Definition at line 183 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 188 of file Sequencer.hh.

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

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

◆ getMissTypeLatencyHist()

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

Definition at line 185 of file Sequencer.hh.

References m_missTypeLatencyHist, and gem5::ArmISA::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 167 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 170 of file Sequencer.hh.

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

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

◆ hitCallback()

◆ incrementUnaddressedTransactionCnt()

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

Increment the unaddressed transaction counter.

Definition at line 1167 of file Sequencer.cc.

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

Referenced by insertRequest().

◆ insertRequest()

◆ invL1()

◆ invL1Callback()

void gem5::ruby::Sequencer::invL1Callback ( )

Definition at line 864 of file Sequencer.cc.

References completeHitCallback(), m_cache_inv_pkt, and m_num_pending_invs.

◆ isDeadlockEventScheduled()

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

Implements gem5::ruby::RubyPort.

Definition at line 152 of file Sequencer.hh.

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

◆ issueRequest()

◆ 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 205 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 221 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 168 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 atomicCallback(), 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 155 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 182 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()

◆ markRemoved()

void gem5::ruby::Sequencer::markRemoved ( )

◆ 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 150 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()

◆ recordRequestType()

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

Definition at line 1154 of file Sequencer.cc.

References DPRINTF.

◆ resetStats()

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

◆ 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 452 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_cache_inv_pkt

PacketPtr gem5::ruby::Sequencer::m_cache_inv_pkt
private

Definition at line 252 of file Sequencer.hh.

Referenced by invL1Callback(), and makeRequest().

◆ m_coreId

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

Definition at line 267 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 260 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 265 of file Sequencer.hh.

◆ m_deadlock_threshold

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

Definition at line 241 of file Sequencer.hh.

Referenced by insertRequest(), gem5::ruby::HTMSequencer::wakeup(), and 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 282 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 287 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 283 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 288 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 306 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 303 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 261 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 302 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 277 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 248 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 292 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 297 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 293 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 299 of file Sequencer.hh.

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

◆ m_num_pending_invs

int gem5::ruby::Sequencer::m_num_pending_invs
private

Definition at line 250 of file Sequencer.hh.

Referenced by invL1(), and invL1Callback().

◆ m_outstanding_count

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

Definition at line 264 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 274 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 271 of file Sequencer.hh.

◆ m_typeLatencyHist

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

Definition at line 278 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 239 of file Sequencer.hh.

Referenced by empty(), insertRequest(), 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 Tue Jun 18 2024 16:24:22 for gem5 by doxygen 1.11.0