gem5
|
#include <kernel_stats.hh>
Public Member Functions | |
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 Attributes | |
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 | |
int | iplLast |
Tick | iplLastTick |
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 |
Definition at line 46 of file kernel_stats.hh.
Kernel::Statistics::Statistics | ( | System * | system | ) |
Definition at line 44 of file kernel_stats.cc.
|
inlinevirtual |
Definition at line 67 of file kernel_stats.hh.
|
inline |
Definition at line 73 of file kernel_stats.hh.
References _arm.
|
inline |
Definition at line 69 of file kernel_stats.hh.
References myname.
|
inline |
Definition at line 74 of file kernel_stats.hh.
References _quiesce.
void Kernel::Statistics::regStats | ( | const std::string & | name | ) |
|
overridevirtual |
Serialize an object.
Output an object's state into the current checkpoint section.
cp | Checkpoint state |
Implements Serializable.
Definition at line 111 of file kernel_stats.cc.
References iplLast, iplLastTick, and SERIALIZE_SCALAR.
void Kernel::Statistics::swpipl | ( | int | ipl | ) |
Definition at line 95 of file kernel_stats.cc.
References _iplCount, _iplGood, _iplTicks, curTick(), MipsISA::ipl, iplLast, and iplLastTick.
|
overridevirtual |
Unserialize an object.
Read an object's state from the current checkpoint section.
cp | Checkpoint state |
Implements Serializable.
Definition at line 118 of file kernel_stats.cc.
References iplLast, iplLastTick, and UNSERIALIZE_SCALAR.
|
protected |
Definition at line 52 of file kernel_stats.hh.
Referenced by arm().
|
protected |
Definition at line 54 of file kernel_stats.hh.
Referenced by AlphaISA::Kernel::Statistics::hwrei().
|
protected |
Definition at line 56 of file kernel_stats.hh.
Referenced by swpipl().
|
protected |
Definition at line 57 of file kernel_stats.hh.
Referenced by swpipl().
|
protected |
Definition at line 58 of file kernel_stats.hh.
Referenced by swpipl().
|
protected |
Definition at line 59 of file kernel_stats.hh.
|
protected |
Definition at line 53 of file kernel_stats.hh.
Referenced by quiesce().
|
private |
Definition at line 62 of file kernel_stats.hh.
Referenced by serialize(), swpipl(), and unserialize().
|
private |
Definition at line 63 of file kernel_stats.hh.
Referenced by serialize(), swpipl(), and unserialize().
|
protected |
Definition at line 49 of file kernel_stats.hh.
Referenced by name().