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

#include <Sequencer.hh>

Inheritance diagram for Sequencer:
RubyPort ClockedObject SimObject Clocked EventManager Serializable Drainable Stats::Group HTMSequencer

Public Types

typedef RubySequencerParams Params
 
- Public Types inherited from RubyPort
typedef RubyPortParams Params
 
- Public Types inherited from ClockedObject
typedef ClockedObjectParams Params
 Parameters of ClockedObject. More...
 
- Public Types inherited from 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 regStats () override
 Callback to set stat parameters. More...
 
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))
 
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))
 
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)
 
Stats::HistogramgetOutstandReqHist ()
 
Stats::HistogramgetLatencyHist ()
 
Stats::HistogramgetTypeLatencyHist (uint32_t t)
 
Stats::HistogramgetHitLatencyHist ()
 
Stats::HistogramgetHitTypeLatencyHist (uint32_t t)
 
Stats::HistogramgetHitMachLatencyHist (uint32_t t)
 
Stats::HistogramgetHitTypeMachLatencyHist (uint32_t r, uint32_t t)
 
Stats::HistogramgetMissLatencyHist ()
 
Stats::HistogramgetMissTypeLatencyHist (uint32_t t)
 
Stats::HistogramgetMissMachLatencyHist (uint32_t t) const
 
Stats::HistogramgetMissTypeMachLatencyHist (uint32_t r, uint32_t t) const
 
Stats::HistogramgetIssueToInitialDelayHist (uint32_t t) const
 
Stats::HistogramgetInitialToForwardDelayHist (const MachineType t) const
 
Stats::HistogramgetForwardRequestToFirstResponseHist (const MachineType t) const
 
Stats::HistogramgetFirstResponseToCompletionDelayHist (const MachineType t) const
 
Stats::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 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 ClockedObject
 ClockedObject (const ClockedObjectParams *p)
 
const Paramsparams () const
 
void serialize (CheckpointOut &cp) const override
 Serialize an object. More...
 
void unserialize (CheckpointIn &cp) override
 Unserialize an object. More...
 
- Public Member Functions inherited from SimObject
const Paramsparams () const
 
 SimObject (const Params *_params)
 
virtual ~SimObject ()
 
virtual const std::string name () const
 
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 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 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 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 Stats::Group
 Group (Group *parent, const char *name=nullptr)
 Construct a new statistics group. More...
 
virtual ~Group ()
 
virtual void preDumpStats ()
 Callback before stats are dumped. More...
 
void addStat (Stats::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...
 
 Group ()=delete
 
 Group (const Group &)=delete
 
Groupoperator= (const Group &)=delete
 
- Public Member Functions inherited from 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 RubyPort
void trySendRetries ()
 
void ruby_hit_callback (PacketPtr pkt)
 
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 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 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
 
Cycles m_deadlock_threshold
 
- Protected Attributes inherited from 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 SimObject
const SimObjectParams * _params
 Cached copy of the object parameters. More...
 
- Protected Attributes inherited from 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)
 
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...
 

Private Attributes

int m_max_outstanding_requests
 
CacheMemorym_dataCache_ptr
 
CacheMemorym_instCache_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
 
bool m_runningGarnetStandalone
 
Stats::Histogram m_outstandReqHist
 Histogram for number of outstanding requests per cycle. More...
 
Stats::Histogram m_latencyHist
 Histogram for holding latency profile of all requests. More...
 
std::vector< Stats::Histogram * > m_typeLatencyHist
 
Stats::Histogram m_hitLatencyHist
 Histogram for holding latency profile of all requests that hit in the controller connected to this sequencer. More...
 
std::vector< Stats::Histogram * > m_hitTypeLatencyHist
 
std::vector< Stats::Histogram * > m_hitMachLatencyHist
 Histograms for profiling the latencies for requests that did not required external messages. More...
 
std::vector< std::vector< Stats::Histogram * > > m_hitTypeMachLatencyHist
 
Stats::Histogram m_missLatencyHist
 Histogram for holding latency profile of all requests that miss in the controller connected to this sequencer. More...
 
std::vector< Stats::Histogram * > m_missTypeLatencyHist
 
std::vector< Stats::Histogram * > m_missMachLatencyHist
 Histograms for profiling the latencies for requests that required external messages. More...
 
std::vector< std::vector< Stats::Histogram * > > m_missTypeMachLatencyHist
 
std::vector< Stats::Histogram * > m_IssueToInitialDelayHist
 Histograms for recording the breakdown of miss latency. More...
 
std::vector< Stats::Histogram * > m_InitialToForwardDelayHist
 
std::vector< Stats::Histogram * > m_ForwardToFirstResponseDelayHist
 
std::vector< Stats::Histogram * > m_FirstResponseToCompletionDelayHist
 
std::vector< Stats::Counterm_IncompleteTimes
 
EventFunctionWrapper deadlockCheckEvent
 

Additional Inherited Members

- Static Public Member Functions inherited from SimObject
static void serializeAll (CheckpointOut &cp)
 Serialize 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 Public Member Functions inherited from Serializable
static const std::string & currentSection ()
 Gets the fully-qualified name of the active section. More...
 
static void serializeAll (const std::string &cpt_dir)
 Serializes all the SimObjects. More...
 
static void unserializeGlobals (CheckpointIn &cp)
 
- Public Attributes inherited from ClockedObject
PowerStatepowerState
 

Detailed Description

Definition at line 80 of file Sequencer.hh.

Member Typedef Documentation

◆ Params

typedef RubySequencerParams Sequencer::Params

Definition at line 83 of file Sequencer.hh.

Constructor & Destructor Documentation

◆ Sequencer() [1/2]

Sequencer::Sequencer ( const Params p)

Definition at line 70 of file Sequencer.cc.

References wakeup().

◆ ~Sequencer()

Sequencer::~Sequencer ( )

Definition at line 90 of file Sequencer.cc.

◆ Sequencer() [2/2]

Sequencer::Sequencer ( const Sequencer obj)
private

Member Function Documentation

◆ collateStats()

void Sequencer::collateStats ( )

◆ coreId()

int Sequencer::coreId ( ) const
inline

Definition at line 130 of file Sequencer.hh.

References m_coreId.

Referenced by issueRequest().

◆ descheduleDeadlockEvent()

void Sequencer::descheduleDeadlockEvent ( )
inlineoverridevirtual

Implements RubyPort.

Definition at line 123 of file Sequencer.hh.

References deadlockCheckEvent, and EventManager::deschedule().

◆ empty()

bool Sequencer::empty ( ) const
virtual

Reimplemented in HTMSequencer.

Definition at line 572 of file Sequencer.cc.

References m_RequestTable.

Referenced by HTMSequencer::empty().

◆ evictionCallback()

void Sequencer::evictionCallback ( Addr  address)

Definition at line 770 of file Sequencer.cc.

References llscClearMonitor(), and RubyPort::ruby_eviction_callback().

◆ functionalWrite()

int Sequencer::functionalWrite ( Packet func_pkt)
overridevirtual

Reimplemented from RubyPort.

Definition at line 194 of file Sequencer.cc.

References RubyPort::functionalWrite(), and m_RequestTable.

◆ getFirstResponseToCompletionDelayHist()

Stats::Histogram& Sequencer::getFirstResponseToCompletionDelayHist ( const MachineType  t) const
inline

Definition at line 175 of file Sequencer.hh.

References m_FirstResponseToCompletionDelayHist, and ArmISA::t.

◆ getForwardRequestToFirstResponseHist()

Stats::Histogram& Sequencer::getForwardRequestToFirstResponseHist ( const MachineType  t) const
inline

Definition at line 171 of file Sequencer.hh.

References m_ForwardToFirstResponseDelayHist, and ArmISA::t.

◆ getHitLatencyHist()

Stats::Histogram& Sequencer::getHitLatencyHist ( )
inline

Definition at line 141 of file Sequencer.hh.

References m_hitLatencyHist.

Referenced by Profiler::collateStats().

◆ getHitMachLatencyHist()

Stats::Histogram& Sequencer::getHitMachLatencyHist ( uint32_t  t)
inline

Definition at line 145 of file Sequencer.hh.

References m_hitMachLatencyHist, and ArmISA::t.

Referenced by Profiler::collateStats().

◆ getHitTypeLatencyHist()

Stats::Histogram& Sequencer::getHitTypeLatencyHist ( uint32_t  t)
inline

Definition at line 142 of file Sequencer.hh.

References m_hitTypeLatencyHist, and ArmISA::t.

Referenced by Profiler::collateStats().

◆ getHitTypeMachLatencyHist()

Stats::Histogram& Sequencer::getHitTypeMachLatencyHist ( uint32_t  r,
uint32_t  t 
)
inline

Definition at line 148 of file Sequencer.hh.

References m_hitTypeMachLatencyHist, MipsISA::r, and ArmISA::t.

Referenced by Profiler::collateStats().

◆ getIncompleteTimes()

Stats::Counter Sequencer::getIncompleteTimes ( const MachineType  t) const
inline

Definition at line 178 of file Sequencer.hh.

References m_IncompleteTimes, and ArmISA::t.

Referenced by Profiler::collateStats().

◆ getInitialToForwardDelayHist()

Stats::Histogram& Sequencer::getInitialToForwardDelayHist ( const MachineType  t) const
inline

Definition at line 167 of file Sequencer.hh.

References m_InitialToForwardDelayHist, and ArmISA::t.

Referenced by Profiler::collateStats().

◆ getIssueToInitialDelayHist()

Stats::Histogram& Sequencer::getIssueToInitialDelayHist ( uint32_t  t) const
inline

Definition at line 163 of file Sequencer.hh.

References m_IssueToInitialDelayHist, and ArmISA::t.

Referenced by Profiler::collateStats().

◆ getLatencyHist()

Stats::Histogram& Sequencer::getLatencyHist ( )
inline

Definition at line 137 of file Sequencer.hh.

References m_latencyHist.

Referenced by Profiler::collateStats().

◆ getMissLatencyHist()

Stats::Histogram& Sequencer::getMissLatencyHist ( )
inline

Definition at line 151 of file Sequencer.hh.

References m_missLatencyHist.

Referenced by Profiler::collateStats().

◆ getMissMachLatencyHist()

Stats::Histogram& Sequencer::getMissMachLatencyHist ( uint32_t  t) const
inline

Definition at line 156 of file Sequencer.hh.

References m_missMachLatencyHist, and ArmISA::t.

Referenced by Profiler::collateStats().

◆ getMissTypeLatencyHist()

Stats::Histogram& Sequencer::getMissTypeLatencyHist ( uint32_t  t)
inline

Definition at line 153 of file Sequencer.hh.

References m_missTypeLatencyHist, and ArmISA::t.

Referenced by Profiler::collateStats().

◆ getMissTypeMachLatencyHist()

Stats::Histogram& Sequencer::getMissTypeMachLatencyHist ( uint32_t  r,
uint32_t  t 
) const
inline

Definition at line 160 of file Sequencer.hh.

References m_missTypeMachLatencyHist, MipsISA::r, and ArmISA::t.

Referenced by Profiler::collateStats().

◆ getOutstandReqHist()

Stats::Histogram& Sequencer::getOutstandReqHist ( )
inline

Definition at line 135 of file Sequencer.hh.

References m_outstandReqHist.

Referenced by Profiler::collateStats().

◆ getTypeLatencyHist()

Stats::Histogram& Sequencer::getTypeLatencyHist ( uint32_t  t)
inline

Definition at line 138 of file Sequencer.hh.

References m_typeLatencyHist, and ArmISA::t.

Referenced by Profiler::collateStats().

◆ hitCallback()

void Sequencer::hitCallback ( SequencerRequest srequest,
DataBlock data,
bool  llscSuccess,
const MachineType  mach,
const bool  externalHit,
const Cycles  initialRequestTime,
const Cycles  forwardRequestTime,
const Cycles  firstResponseTime 
)
private

◆ insertRequest()

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

◆ isDeadlockEventScheduled()

bool Sequencer::isDeadlockEventScheduled ( ) const
inlineoverridevirtual

Implements RubyPort.

Definition at line 120 of file Sequencer.hh.

References deadlockCheckEvent, and Event::scheduled().

◆ issueRequest()

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

◆ llscCheckMonitor()

bool 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 138 of file Sequencer.cc.

References AbstractCacheEntry::isLocked(), CacheMemory::lookup(), m_dataCache_ptr, RubyPort::m_version, and makeLineAddress().

◆ llscClearLocalMonitor()

void Sequencer::llscClearLocalMonitor ( )

Removes all addresses from the local monitor.

This is independent of this Sequencer object's version id.

Definition at line 153 of file Sequencer.cc.

References CacheMemory::clearLockedAll(), m_dataCache_ptr, and RubyPort::m_version.

◆ llscClearMonitor()

void 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 106 of file Sequencer.cc.

References AbstractCacheEntry::clearLocked(), DPRINTF, AbstractCacheEntry::isLocked(), CacheMemory::lookup(), m_dataCache_ptr, and RubyPort::m_version.

Referenced by evictionCallback(), writeCallback(), and writeCallbackScFail().

◆ llscLoadLinked()

void 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 95 of file Sequencer.cc.

References DPRINTF, CacheMemory::lookup(), m_dataCache_ptr, RubyPort::m_version, and AbstractCacheEntry::setLocked().

Referenced by hitCallback().

◆ llscStoreConditional()

bool 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 117 of file Sequencer.cc.

References AbstractCacheEntry::clearLocked(), DPRINTF, AbstractCacheEntry::isLocked(), CacheMemory::lookup(), m_dataCache_ptr, and RubyPort::m_version.

Referenced by writeCallback().

◆ makeRequest()

RequestStatus Sequencer::makeRequest ( PacketPtr  pkt)
overridevirtual

◆ markRemoved()

void Sequencer::markRemoved ( )

Definition at line 267 of file Sequencer.cc.

References m_outstanding_count.

Referenced by HTMSequencer::htmCallback(), readCallback(), and writeCallback().

◆ operator=()

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

◆ outstandingCount()

int Sequencer::outstandingCount ( ) const
inlineoverridevirtual

Implements RubyPort.

Definition at line 118 of file Sequencer.hh.

References m_outstanding_count.

◆ print()

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

Reimplemented in HTMSequencer.

Definition at line 755 of file Sequencer.cc.

References m_outstanding_count, m_RequestTable, and RubyPort::m_version.

Referenced by operator<<(), and HTMSequencer::print().

◆ readCallback()

void 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 Sequencer::recordMissLatency ( SequencerRequest srequest,
bool  llscSuccess,
const MachineType  respondingMach,
bool  isExternalHit,
Cycles  initialRequestTime,
Cycles  forwardRequestTime,
Cycles  firstResponseTime 
)
private

◆ recordRequestType()

void Sequencer::recordRequestType ( SequencerRequestType  requestType)

Definition at line 764 of file Sequencer.cc.

References DPRINTF.

◆ regStats()

void Sequencer::regStats ( )
overridevirtual

Callback to set stat parameters.

This callback is typically used for complex stats (e.g., distributions) that need parameters in addition to a name and a description. Stat names and descriptions should typically be set from the constructor usingo from the constructor using the ADD_STAT macro.

Reimplemented from Stats::Group.

Definition at line 777 of file Sequencer.cc.

References ArmISA::i, Stats::Histogram::init(), ArmISA::j, m_FirstResponseToCompletionDelayHist, m_ForwardToFirstResponseDelayHist, m_hitLatencyHist, m_hitMachLatencyHist, m_hitTypeLatencyHist, m_hitTypeMachLatencyHist, m_InitialToForwardDelayHist, m_IssueToInitialDelayHist, m_latencyHist, m_missLatencyHist, m_missMachLatencyHist, m_missTypeLatencyHist, m_missTypeMachLatencyHist, m_outstandReqHist, m_typeLatencyHist, and Stats::Group::regStats().

Referenced by HTMSequencer::regStats().

◆ resetStats()

void Sequencer::resetStats ( )
overridevirtual

◆ wakeup()

void Sequencer::wakeup ( )
virtual

◆ writeCallback()

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

◆ writeCallbackScFail()

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

Proxy function to writeCallback that first invalidates the line address in the local monitor.

Definition at line 339 of file Sequencer.cc.

References data, llscClearMonitor(), and writeCallback().

Member Data Documentation

◆ deadlockCheckEvent

EventFunctionWrapper Sequencer::deadlockCheckEvent
private

◆ m_coreId

int Sequencer::m_coreId
private

Definition at line 228 of file Sequencer.hh.

Referenced by coreId().

◆ m_data_cache_hit_latency

Cycles Sequencer::m_data_cache_hit_latency
private

Definition at line 221 of file Sequencer.hh.

◆ m_dataCache_ptr

CacheMemory* Sequencer::m_dataCache_ptr
private

◆ m_deadlock_check_scheduled

bool Sequencer::m_deadlock_check_scheduled
private

Definition at line 226 of file Sequencer.hh.

◆ m_deadlock_threshold

Cycles Sequencer::m_deadlock_threshold
protected

Definition at line 205 of file Sequencer.hh.

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

◆ m_FirstResponseToCompletionDelayHist

std::vector<Stats::Histogram *> Sequencer::m_FirstResponseToCompletionDelayHist
private

◆ m_ForwardToFirstResponseDelayHist

std::vector<Stats::Histogram *> Sequencer::m_ForwardToFirstResponseDelayHist
private

◆ m_hitLatencyHist

Stats::Histogram Sequencer::m_hitLatencyHist
private

Histogram for holding latency profile of all requests that hit in the controller connected to this sequencer.

Definition at line 241 of file Sequencer.hh.

Referenced by getHitLatencyHist(), recordMissLatency(), regStats(), and resetStats().

◆ m_hitMachLatencyHist

std::vector<Stats::Histogram *> Sequencer::m_hitMachLatencyHist
private

Histograms for profiling the latencies for requests that did not required external messages.

Definition at line 246 of file Sequencer.hh.

Referenced by getHitMachLatencyHist(), recordMissLatency(), regStats(), and resetStats().

◆ m_hitTypeLatencyHist

std::vector<Stats::Histogram *> Sequencer::m_hitTypeLatencyHist
private

Definition at line 242 of file Sequencer.hh.

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

◆ m_hitTypeMachLatencyHist

std::vector< std::vector<Stats::Histogram *> > Sequencer::m_hitTypeMachLatencyHist
private

Definition at line 247 of file Sequencer.hh.

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

◆ m_IncompleteTimes

std::vector<Stats::Counter> Sequencer::m_IncompleteTimes
private

Definition at line 264 of file Sequencer.hh.

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

◆ m_InitialToForwardDelayHist

std::vector<Stats::Histogram *> Sequencer::m_InitialToForwardDelayHist
private

◆ m_inst_cache_hit_latency

Cycles Sequencer::m_inst_cache_hit_latency
private

Definition at line 222 of file Sequencer.hh.

◆ m_instCache_ptr

CacheMemory* Sequencer::m_instCache_ptr
private

Definition at line 215 of file Sequencer.hh.

◆ m_IssueToInitialDelayHist

std::vector<Stats::Histogram *> Sequencer::m_IssueToInitialDelayHist
private

Histograms for recording the breakdown of miss latency.

Definition at line 260 of file Sequencer.hh.

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

◆ m_latencyHist

Stats::Histogram Sequencer::m_latencyHist
private

Histogram for holding latency profile of all requests.

Definition at line 236 of file Sequencer.hh.

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

◆ m_max_outstanding_requests

int Sequencer::m_max_outstanding_requests
private

Definition at line 212 of file Sequencer.hh.

Referenced by makeRequest().

◆ m_missLatencyHist

Stats::Histogram Sequencer::m_missLatencyHist
private

Histogram for holding latency profile of all requests that miss in the controller connected to this sequencer.

Definition at line 251 of file Sequencer.hh.

Referenced by getMissLatencyHist(), recordMissLatency(), regStats(), and resetStats().

◆ m_missMachLatencyHist

std::vector<Stats::Histogram *> Sequencer::m_missMachLatencyHist
private

Histograms for profiling the latencies for requests that required external messages.

Definition at line 256 of file Sequencer.hh.

Referenced by getMissMachLatencyHist(), recordMissLatency(), regStats(), and resetStats().

◆ m_missTypeLatencyHist

std::vector<Stats::Histogram *> Sequencer::m_missTypeLatencyHist
private

Definition at line 252 of file Sequencer.hh.

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

◆ m_missTypeMachLatencyHist

std::vector< std::vector<Stats::Histogram *> > Sequencer::m_missTypeMachLatencyHist
private

Definition at line 257 of file Sequencer.hh.

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

◆ m_outstanding_count

int Sequencer::m_outstanding_count
private

Definition at line 225 of file Sequencer.hh.

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

◆ m_outstandReqHist

Stats::Histogram Sequencer::m_outstandReqHist
private

Histogram for number of outstanding requests per cycle.

Definition at line 233 of file Sequencer.hh.

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

◆ m_RequestTable

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

◆ m_runningGarnetStandalone

bool Sequencer::m_runningGarnetStandalone
private

Definition at line 230 of file Sequencer.hh.

◆ m_typeLatencyHist

std::vector<Stats::Histogram *> Sequencer::m_typeLatencyHist
private

Definition at line 237 of file Sequencer.hh.

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


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

Generated on Wed Sep 30 2020 14:02:31 for gem5 by doxygen 1.8.17