gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
AlphaISA::Kernel::Statistics Class Reference

#include <kernel_stats.hh>

Inheritance diagram for AlphaISA::Kernel::Statistics:
Kernel::Statistics Serializable

Public Member Functions

 Statistics (System *system)
 
void regStats (const std::string &name)
 
void mode (cpu_mode newmode, ThreadContext *tc)
 
void context (Addr oldpcbb, Addr newpcbb, ThreadContext *tc)
 
void callpal (int code, ThreadContext *tc)
 
void hwrei ()
 
void setIdleProcess (Addr idle, ThreadContext *tc)
 
void serialize (CheckpointOut &cp) const override
 Serialize an object. More...
 
void unserialize (CheckpointIn &cp) override
 Unserialize an object. More...
 
- Public Member Functions inherited from Kernel::Statistics
 Statistics (System *system)
 
virtual ~Statistics ()
 
const std::string name () const
 
void regStats (const std::string &name)
 
void arm ()
 
void quiesce ()
 
void swpipl (int ipl)
 
void serialize (CheckpointOut &cp) const override
 Serialize an object. More...
 
void unserialize (CheckpointIn &cp) override
 Unserialize an object. More...
 
- 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)
 

Protected Member Functions

void changeMode (cpu_mode newmode, ThreadContext *tc)
 

Protected Attributes

Addr idleProcess
 
cpu_mode themode
 
Tick lastModeTick
 
- Protected Attributes inherited from Kernel::Statistics
std::string myname
 
Stats::Scalar _arm
 
Stats::Scalar _quiesce
 
Stats::Scalar _hwrei
 
Stats::Vector _iplCount
 
Stats::Vector _iplGood
 
Stats::Vector _iplTicks
 
Stats::Formula _iplUsed
 

Private Attributes

Stats::Vector _callpal
 
Stats::Vector _mode
 
Stats::Vector _modeGood
 
Stats::Formula _modeFraction
 
Stats::Vector _modeTicks
 
Stats::Scalar _swap_context
 

Additional Inherited Members

- Static Public Member Functions inherited from Serializable
static const std::string & currentSection ()
 Get the fully-qualified name of the active section. More...
 
static void serializeAll (const std::string &cpt_dir)
 
static void unserializeGlobals (CheckpointIn &cp)
 
- Static Public Attributes inherited from Serializable
static int ckptCount = 0
 
static int ckptMaxCount = 0
 
static int ckptPrevCount = -1
 

Detailed Description

Definition at line 55 of file kernel_stats.hh.

Constructor & Destructor Documentation

AlphaISA::Kernel::Statistics::Statistics ( System system)

Definition at line 53 of file kernel_stats.cc.

Member Function Documentation

void AlphaISA::Kernel::Statistics::callpal ( int  code,
ThreadContext tc 
)

Definition at line 178 of file kernel_stats.cc.

References _callpal, and PAL::name().

void AlphaISA::Kernel::Statistics::changeMode ( cpu_mode  newmode,
ThreadContext tc 
)
protected
void AlphaISA::Kernel::Statistics::context ( Addr  oldpcbb,
Addr  newpcbb,
ThreadContext tc 
)
void AlphaISA::Kernel::Statistics::hwrei ( )
inline

Definition at line 84 of file kernel_stats.hh.

References Kernel::Statistics::_hwrei.

void AlphaISA::Kernel::Statistics::mode ( cpu_mode  newmode,
ThreadContext tc 
)
void AlphaISA::Kernel::Statistics::regStats ( const std::string &  name)
void AlphaISA::Kernel::Statistics::serialize ( CheckpointOut cp) const
overridevirtual

Serialize an object.

Output an object's state into the current checkpoint section.

Parameters
cpCheckpoint state

Implements Serializable.

Definition at line 187 of file kernel_stats.cc.

References idleProcess, lastModeTick, SERIALIZE_SCALAR, and themode.

void AlphaISA::Kernel::Statistics::setIdleProcess ( Addr  idle,
ThreadContext tc 
)
void AlphaISA::Kernel::Statistics::unserialize ( CheckpointIn cp)
overridevirtual

Unserialize an object.

Read an object's state from the current checkpoint section.

Parameters
cpCheckpoint state

Implements Serializable.

Definition at line 197 of file kernel_stats.cc.

References idleProcess, lastModeTick, themode, and UNSERIALIZE_SCALAR.

Member Data Documentation

Stats::Vector AlphaISA::Kernel::Statistics::_callpal
private

Definition at line 65 of file kernel_stats.hh.

Referenced by callpal().

Stats::Vector AlphaISA::Kernel::Statistics::_mode
private

Definition at line 68 of file kernel_stats.hh.

Referenced by changeMode().

Stats::Formula AlphaISA::Kernel::Statistics::_modeFraction
private

Definition at line 70 of file kernel_stats.hh.

Stats::Vector AlphaISA::Kernel::Statistics::_modeGood
private

Definition at line 69 of file kernel_stats.hh.

Referenced by changeMode().

Stats::Vector AlphaISA::Kernel::Statistics::_modeTicks
private

Definition at line 71 of file kernel_stats.hh.

Referenced by changeMode().

Stats::Scalar AlphaISA::Kernel::Statistics::_swap_context
private

Definition at line 73 of file kernel_stats.hh.

Referenced by context().

Addr AlphaISA::Kernel::Statistics::idleProcess
protected

Definition at line 58 of file kernel_stats.hh.

Referenced by context(), mode(), serialize(), setIdleProcess(), and unserialize().

Tick AlphaISA::Kernel::Statistics::lastModeTick
protected

Definition at line 60 of file kernel_stats.hh.

Referenced by changeMode(), serialize(), and unserialize().

cpu_mode AlphaISA::Kernel::Statistics::themode
protected

Definition at line 59 of file kernel_stats.hh.

Referenced by changeMode(), context(), serialize(), setIdleProcess(), and unserialize().


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

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