|
gem5
v19.0.0.0
|
#include <kernel_stats.hh>
Public Member Functions | |
| Statistics () | |
| void | regStats (const std::string &name) override |
| void | mode (cpu_mode newmode, ThreadContext *tc) |
| void | context (Addr oldpcbb, Addr newpcbb, ThreadContext *tc) |
| void | callpal (int code, ThreadContext *tc) |
| void | hwrei () |
| void | swpipl (int ipl) |
| 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 | |
| virtual | ~Statistics () |
| const std::string | name () const |
| void | arm () |
| void | quiesce () |
| 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 |
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 51 of file kernel_stats.hh.
| AlphaISA::Kernel::Statistics::Statistics | ( | ) |
Definition at line 53 of file kernel_stats.cc.
References _callpal, _hwrei, _iplCount, _iplGood, _iplTicks, _iplUsed, _mode, _modeFraction, _modeGood, _modeTicks, _swap_context, AlphaISA::Kernel::cpu_mode_num, Stats::DataWrap< Derived, InfoProxyType >::desc(), Stats::DataWrap< Derived, InfoProxyType >::flags(), ArmISA::i, Stats::VectorBase< Derived, Stor >::init(), Kernel::Statistics::name(), PAL::name(), Stats::DataWrap< Derived, InfoProxyType >::name(), Stats::nonan, Stats::nozero, PAL::NumCodes, Stats::pdf, regStats(), Stats::DataWrapVec< Derived, InfoProxyType >::subname(), and Stats::total.
| void AlphaISA::Kernel::Statistics::callpal | ( | int | code, |
| ThreadContext * | tc | ||
| ) |
Definition at line 208 of file kernel_stats.cc.
References _callpal, and PAL::name().
|
protected |
Definition at line 165 of file kernel_stats.cc.
References _mode, _modeGood, _modeTicks, curTick(), DPRINTF, lastModeTick, and themode.
Referenced by context(), mode(), and setIdleProcess().
| void AlphaISA::Kernel::Statistics::context | ( | Addr | oldpcbb, |
| Addr | newpcbb, | ||
| ThreadContext * | tc | ||
| ) |
Definition at line 195 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 90 of file kernel_stats.hh.
References AlphaISA::Kernel::idle, MipsISA::ipl, serialize(), setIdleProcess(), swpipl(), and unserialize().
| void AlphaISA::Kernel::Statistics::mode | ( | cpu_mode | newmode, |
| ThreadContext * | tc | ||
| ) |
Definition at line 184 of file kernel_stats.cc.
References changeMode(), AlphaISA::Kernel::idle, idleProcess, AlphaISA::IPR_PALtemp23, AlphaISA::Kernel::kernel, and ThreadContext::readMiscRegNoEffect().
|
overridevirtual |
Reimplemented from Kernel::Statistics.
Referenced by Statistics().
|
overridevirtual |
Serialize an object.
Output an object's state into the current checkpoint section.
| cp | Checkpoint state |
Implements Serializable.
Definition at line 233 of file kernel_stats.cc.
References idleProcess, iplLast, iplLastTick, lastModeTick, SERIALIZE_SCALAR, and themode.
Referenced by hwrei().
| void AlphaISA::Kernel::Statistics::setIdleProcess | ( | Addr | idle, |
| ThreadContext * | tc | ||
| ) |
Definition at line 156 of file kernel_stats.cc.
References changeMode(), AlphaISA::Kernel::idle, idleProcess, AlphaISA::Kernel::kernel, and themode.
Referenced by hwrei().
| void AlphaISA::Kernel::Statistics::swpipl | ( | int | ipl | ) |
Definition at line 217 of file kernel_stats.cc.
References _iplCount, _iplGood, _iplTicks, curTick(), MipsISA::ipl, iplLast, and iplLastTick.
Referenced by hwrei().
|
overridevirtual |
Unserialize an object.
Read an object's state from the current checkpoint section.
| cp | Checkpoint state |
Implements Serializable.
Definition at line 245 of file kernel_stats.cc.
References idleProcess, iplLast, iplLastTick, lastModeTick, themode, and UNSERIALIZE_SCALAR.
Referenced by hwrei().
|
private |
Definition at line 61 of file kernel_stats.hh.
Referenced by callpal(), and Statistics().
|
private |
Definition at line 63 of file kernel_stats.hh.
Referenced by Statistics().
|
private |
Definition at line 72 of file kernel_stats.hh.
Referenced by Statistics(), and swpipl().
|
private |
Definition at line 73 of file kernel_stats.hh.
Referenced by Statistics(), and swpipl().
|
private |
Definition at line 74 of file kernel_stats.hh.
Referenced by Statistics(), and swpipl().
|
private |
Definition at line 75 of file kernel_stats.hh.
Referenced by Statistics().
|
private |
Definition at line 65 of file kernel_stats.hh.
Referenced by changeMode(), and Statistics().
|
private |
Definition at line 67 of file kernel_stats.hh.
Referenced by Statistics().
|
private |
Definition at line 66 of file kernel_stats.hh.
Referenced by changeMode(), and Statistics().
|
private |
Definition at line 68 of file kernel_stats.hh.
Referenced by changeMode(), and Statistics().
|
private |
Definition at line 70 of file kernel_stats.hh.
Referenced by context(), and Statistics().
|
protected |
Definition at line 54 of file kernel_stats.hh.
Referenced by context(), mode(), serialize(), setIdleProcess(), and unserialize().
|
private |
Definition at line 78 of file kernel_stats.hh.
Referenced by serialize(), swpipl(), and unserialize().
|
private |
Definition at line 79 of file kernel_stats.hh.
Referenced by serialize(), swpipl(), and unserialize().
|
protected |
Definition at line 56 of file kernel_stats.hh.
Referenced by changeMode(), serialize(), and unserialize().
|
protected |
Definition at line 55 of file kernel_stats.hh.
Referenced by changeMode(), context(), serialize(), setIdleProcess(), and unserialize().