gem5  v20.1.0.0
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
StoreTrace Class Reference

#include <StoreTrace.hh>

Public Member Functions

 StoreTrace ()
 
 StoreTrace (Addr addr)
 
 ~StoreTrace ()
 
void store (NodeID node)
 
void downgrade (NodeID node)
 
int getTotal () const
 
void print (std::ostream &out) const
 

Static Public Member Functions

static void initSummary ()
 
static void printSummary (std::ostream &out)
 
static void clearSummary ()
 

Private Attributes

Addr m_addr
 
NodeID m_last_writer
 
Tick m_first_store
 
Tick m_last_store
 
int m_stores_this_interval
 
int64_t m_total_samples
 
Histogram m_store_count
 
Histogram m_store_first_to_stolen
 
Histogram m_store_last_to_stolen
 
Histogram m_store_first_to_last
 

Static Private Attributes

static bool s_init = false
 
static int64_t s_total_samples = 0
 
static Histograms_store_count_ptr = NULL
 
static Histograms_store_first_to_stolen_ptr = NULL
 
static Histograms_store_last_to_stolen_ptr = NULL
 
static Histograms_store_first_to_last_ptr = NULL
 

Detailed Description

Definition at line 38 of file StoreTrace.hh.

Constructor & Destructor Documentation

◆ StoreTrace() [1/2]

StoreTrace::StoreTrace ( )
inline

Definition at line 41 of file StoreTrace.hh.

◆ StoreTrace() [2/2]

StoreTrace::StoreTrace ( Addr  addr)
explicit

◆ ~StoreTrace()

StoreTrace::~StoreTrace ( )

Definition at line 57 of file StoreTrace.cc.

Member Function Documentation

◆ clearSummary()

void StoreTrace::clearSummary ( )
static

◆ downgrade()

void StoreTrace::downgrade ( NodeID  node)

◆ getTotal()

int StoreTrace::getTotal ( ) const
inline

Definition at line 47 of file StoreTrace.hh.

References m_total_samples.

Referenced by node_less_then_eq().

◆ initSummary()

void StoreTrace::initSummary ( )
static

◆ print()

void StoreTrace::print ( std::ostream &  out) const

◆ printSummary()

void StoreTrace::printSummary ( std::ostream &  out)
static

Definition at line 86 of file StoreTrace.cc.

References s_total_samples.

◆ store()

void StoreTrace::store ( NodeID  node)

Member Data Documentation

◆ m_addr

Addr StoreTrace::m_addr
private

Definition at line 63 of file StoreTrace.hh.

Referenced by print(), and StoreTrace().

◆ m_first_store

Tick StoreTrace::m_first_store
private

Definition at line 65 of file StoreTrace.hh.

Referenced by downgrade(), and store().

◆ m_last_store

Tick StoreTrace::m_last_store
private

Definition at line 66 of file StoreTrace.hh.

Referenced by downgrade(), and store().

◆ m_last_writer

NodeID StoreTrace::m_last_writer
private

Definition at line 64 of file StoreTrace.hh.

Referenced by downgrade(), store(), and StoreTrace().

◆ m_store_count

Histogram StoreTrace::m_store_count
private

Definition at line 70 of file StoreTrace.hh.

Referenced by downgrade(), and print().

◆ m_store_first_to_last

Histogram StoreTrace::m_store_first_to_last
private

Definition at line 73 of file StoreTrace.hh.

Referenced by downgrade(), and print().

◆ m_store_first_to_stolen

Histogram StoreTrace::m_store_first_to_stolen
private

Definition at line 71 of file StoreTrace.hh.

Referenced by downgrade(), and print().

◆ m_store_last_to_stolen

Histogram StoreTrace::m_store_last_to_stolen
private

Definition at line 72 of file StoreTrace.hh.

Referenced by downgrade(), and print().

◆ m_stores_this_interval

int StoreTrace::m_stores_this_interval
private

Definition at line 67 of file StoreTrace.hh.

Referenced by downgrade(), store(), and StoreTrace().

◆ m_total_samples

int64_t StoreTrace::m_total_samples
private

Definition at line 69 of file StoreTrace.hh.

Referenced by downgrade(), getTotal(), print(), and StoreTrace().

◆ s_init

bool StoreTrace::s_init = false
staticprivate

Definition at line 55 of file StoreTrace.hh.

Referenced by initSummary().

◆ s_store_count_ptr

Histogram * StoreTrace::s_store_count_ptr = NULL
staticprivate

Definition at line 58 of file StoreTrace.hh.

Referenced by clearSummary(), downgrade(), and initSummary().

◆ s_store_first_to_last_ptr

Histogram * StoreTrace::s_store_first_to_last_ptr = NULL
staticprivate

Definition at line 61 of file StoreTrace.hh.

Referenced by clearSummary(), downgrade(), and initSummary().

◆ s_store_first_to_stolen_ptr

Histogram * StoreTrace::s_store_first_to_stolen_ptr = NULL
staticprivate

Definition at line 59 of file StoreTrace.hh.

Referenced by clearSummary(), downgrade(), and initSummary().

◆ s_store_last_to_stolen_ptr

Histogram * StoreTrace::s_store_last_to_stolen_ptr = NULL
staticprivate

Definition at line 60 of file StoreTrace.hh.

Referenced by clearSummary(), downgrade(), and initSummary().

◆ s_total_samples

int64_t StoreTrace::s_total_samples = 0
staticprivate

Definition at line 56 of file StoreTrace.hh.

Referenced by clearSummary(), downgrade(), initSummary(), and printSummary().


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

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