gem5  v20.1.0.0
Public Member Functions | Public Attributes | List of all members
TraceRecord Class Reference

Class for recording cache contents. More...

#include <CacheRecorder.hh>

Public Member Functions

void print (std::ostream &out) const
 

Public Attributes

int m_cntrl_id
 
Tick m_time
 
Addr m_data_address
 
Addr m_pc_address
 
RubyRequestType m_type
 
uint8_t m_data [0]
 

Detailed Description

Class for recording cache contents.

Note that the last element of the class is an array of length zero. It is used for creating variable length object, so that while writing the data to a file one does not need to copy the meta data and the actual data separately.

Definition at line 54 of file CacheRecorder.hh.

Member Function Documentation

◆ print()

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

Definition at line 39 of file CacheRecorder.cc.

Referenced by operator<<().

Member Data Documentation

◆ m_cntrl_id

int TraceRecord::m_cntrl_id

◆ m_data

uint8_t TraceRecord::m_data[0]

◆ m_data_address

Addr TraceRecord::m_data_address

◆ m_pc_address

Addr TraceRecord::m_pc_address

Definition at line 59 of file CacheRecorder.hh.

Referenced by CacheRecorder::addRecord().

◆ m_time

Tick TraceRecord::m_time

Definition at line 57 of file CacheRecorder.hh.

Referenced by CacheRecorder::addRecord(), and compareTraceRecords().

◆ m_type

RubyRequestType TraceRecord::m_type

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

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