gem5
|
#include <kernel_stats.hh>
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 |
Definition at line 55 of file kernel_stats.hh.
AlphaISA::Kernel::Statistics::Statistics | ( | System * | system | ) |
Definition at line 53 of file kernel_stats.cc.
void AlphaISA::Kernel::Statistics::callpal | ( | int | code, |
ThreadContext * | tc | ||
) |
Definition at line 178 of file kernel_stats.cc.
References _callpal, and PAL::name().
|
protected |
Definition at line 135 of file kernel_stats.cc.
References _mode, _modeGood, _modeTicks, curTick(), DPRINTF, lastModeTick, AlphaISA::Kernel::modestr, and themode.
Referenced by context(), mode(), and setIdleProcess().
void AlphaISA::Kernel::Statistics::context | ( | Addr | oldpcbb, |
Addr | newpcbb, | ||
ThreadContext * | tc | ||
) |
Definition at line 165 of file kernel_stats.cc.
References _swap_context, changeMode(), DPRINTF, AlphaISA::Kernel::idle, idleProcess, AlphaISA::Kernel::kernel, themode, and AlphaISA::Kernel::user.
|
inline |
Definition at line 84 of file kernel_stats.hh.
References Kernel::Statistics::_hwrei.
void AlphaISA::Kernel::Statistics::mode | ( | cpu_mode | newmode, |
ThreadContext * | tc | ||
) |
Definition at line 154 of file kernel_stats.cc.
References changeMode(), AlphaISA::Kernel::idle, idleProcess, AlphaISA::IPR_PALtemp23, AlphaISA::Kernel::kernel, and ThreadContext::readMiscRegNoEffect().
void AlphaISA::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 187 of file kernel_stats.cc.
References idleProcess, lastModeTick, SERIALIZE_SCALAR, and themode.
void AlphaISA::Kernel::Statistics::setIdleProcess | ( | Addr | idle, |
ThreadContext * | tc | ||
) |
Definition at line 126 of file kernel_stats.cc.
References changeMode(), AlphaISA::Kernel::idle, idleProcess, AlphaISA::Kernel::kernel, and themode.
|
overridevirtual |
Unserialize an object.
Read an object's state from the current checkpoint section.
cp | Checkpoint state |
Implements Serializable.
Definition at line 197 of file kernel_stats.cc.
References idleProcess, lastModeTick, themode, and UNSERIALIZE_SCALAR.
|
private |
Definition at line 65 of file kernel_stats.hh.
Referenced by callpal().
|
private |
Definition at line 68 of file kernel_stats.hh.
Referenced by changeMode().
|
private |
Definition at line 70 of file kernel_stats.hh.
|
private |
Definition at line 69 of file kernel_stats.hh.
Referenced by changeMode().
|
private |
Definition at line 71 of file kernel_stats.hh.
Referenced by changeMode().
|
private |
Definition at line 73 of file kernel_stats.hh.
Referenced by context().
|
protected |
Definition at line 58 of file kernel_stats.hh.
Referenced by context(), mode(), serialize(), setIdleProcess(), and unserialize().
|
protected |
Definition at line 60 of file kernel_stats.hh.
Referenced by changeMode(), serialize(), and unserialize().
|
protected |
Definition at line 59 of file kernel_stats.hh.
Referenced by changeMode(), context(), serialize(), setIdleProcess(), and unserialize().