gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
AccessTraceForAddress Class Reference

#include <AccessTraceForAddress.hh>

Public Member Functions

 AccessTraceForAddress ()
 
 ~AccessTraceForAddress ()
 
void setAddress (Addr addr)
 
void update (RubyRequestType type, RubyAccessMode access_mode, NodeID cpu, bool sharing_miss)
 
int getTotal () const
 
int getSharing () const
 
int getTouchedBy () const
 
Addr getAddress () const
 
void addSample (int value)
 
void print (std::ostream &out) const
 

Static Public Member Functions

static bool less_equal (const AccessTraceForAddress *n1, const AccessTraceForAddress *n2)
 

Private Attributes

Addr m_addr
 
uint64_t m_loads
 
uint64_t m_stores
 
uint64_t m_atomics
 
uint64_t m_total
 
uint64_t m_user
 
uint64_t m_sharing
 
Set m_touched_by
 
Histogramm_histogram_ptr
 

Detailed Description

Definition at line 41 of file AccessTraceForAddress.hh.

Constructor & Destructor Documentation

AccessTraceForAddress::AccessTraceForAddress ( )
inline

Definition at line 44 of file AccessTraceForAddress.hh.

AccessTraceForAddress::~AccessTraceForAddress ( )

Definition at line 33 of file AccessTraceForAddress.cc.

References m_histogram_ptr.

Member Function Documentation

void AccessTraceForAddress::addSample ( int  value)

Definition at line 98 of file AccessTraceForAddress.cc.

References Histogram::add(), m_histogram_ptr, and m_total.

Referenced by AddressProfiler::profileRetry().

Addr AccessTraceForAddress::getAddress ( ) const
inline

Definition at line 56 of file AccessTraceForAddress.hh.

References m_addr.

int AccessTraceForAddress::getSharing ( ) const
inline

Definition at line 54 of file AccessTraceForAddress.hh.

References m_sharing.

int AccessTraceForAddress::getTotal ( ) const

Definition at line 88 of file AccessTraceForAddress.cc.

References Histogram::getTotal(), m_histogram_ptr, and m_total.

Referenced by less_equal(), and printSorted().

int AccessTraceForAddress::getTouchedBy ( ) const
inline

Definition at line 55 of file AccessTraceForAddress.hh.

References Set::count(), and m_touched_by.

Referenced by printSorted().

static bool AccessTraceForAddress::less_equal ( const AccessTraceForAddress n1,
const AccessTraceForAddress n2 
)
inlinestatic

Definition at line 62 of file AccessTraceForAddress.hh.

References getTotal().

Referenced by printSorted().

void AccessTraceForAddress::print ( std::ostream &  out) const
void AccessTraceForAddress::setAddress ( Addr  addr)
inline

Definition at line 50 of file AccessTraceForAddress.hh.

References addr, and m_addr.

Referenced by lookupTraceForAddress().

void AccessTraceForAddress::update ( RubyRequestType  type,
RubyAccessMode  access_mode,
NodeID  cpu,
bool  sharing_miss 
)

Member Data Documentation

Addr AccessTraceForAddress::m_addr
private

Definition at line 69 of file AccessTraceForAddress.hh.

Referenced by getAddress(), print(), and setAddress().

uint64_t AccessTraceForAddress::m_atomics
private

Definition at line 72 of file AccessTraceForAddress.hh.

Referenced by print(), and update().

Histogram* AccessTraceForAddress::m_histogram_ptr
private

Definition at line 77 of file AccessTraceForAddress.hh.

Referenced by addSample(), getTotal(), print(), and ~AccessTraceForAddress().

uint64_t AccessTraceForAddress::m_loads
private

Definition at line 70 of file AccessTraceForAddress.hh.

Referenced by print(), and update().

uint64_t AccessTraceForAddress::m_sharing
private

Definition at line 75 of file AccessTraceForAddress.hh.

Referenced by getSharing(), print(), and update().

uint64_t AccessTraceForAddress::m_stores
private

Definition at line 71 of file AccessTraceForAddress.hh.

Referenced by print(), and update().

uint64_t AccessTraceForAddress::m_total
private

Definition at line 73 of file AccessTraceForAddress.hh.

Referenced by addSample(), getTotal(), print(), and update().

Set AccessTraceForAddress::m_touched_by
private

Definition at line 76 of file AccessTraceForAddress.hh.

Referenced by getTouchedBy(), print(), and update().

uint64_t AccessTraceForAddress::m_user
private

Definition at line 74 of file AccessTraceForAddress.hh.

Referenced by print(), and update().


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

Generated on Fri Jun 9 2017 13:04:00 for gem5 by doxygen 1.8.6