Go to the documentation of this file.
43 #ifndef __SIM_POWER_STATE_HH__
44 #define __SIM_POWER_STATE_HH__
51 #include "enums/PwrState.hh"
52 #include "params/PowerState.hh"
81 void set(enums::PwrState
p);
84 inline enums::PwrState
get()
const
155 #endif //__SIM_POWER_STATE_HH__
This is a simple scalar statistic, like a counter.
The PowerDomain groups PowerState objects together to regulate their power states.
virtual void addFollower(PowerState *pwr_obj)
std::string getName() const
std::set< enums::PwrState > possibleStates
The possible power states this object can be in.
A simple distribution stat.
PowerStateStats(PowerState &ps)
PowerDomain * controlledDomain
The power domain that this power state leads, nullptr if it doesn't lead any.
enums::PwrState get() const
A vector of scalar stats.
void setControlledDomain(PowerDomain *pwr_dom)
statistics::Scalar numTransitions
void computeStats()
Record stats values like state residency by computing the time difference from previous update.
statistics::Scalar numPwrMatchStateTransitions
PowerState(const PowerStateParams &p)
gem5::PowerState::PowerStateStats stats
PARAMS(PowerState)
Parameters of PowerState object.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
uint64_t Tick
Tick count type.
Helper class for objects that have power states.
enums::PwrState matchPwrState(enums::PwrState p)
Change the power state of this object to a power state equal to OR more performant than p.
Abstract superclass for simulation objects.
void preDumpStats() override
Callback before stats are dumped.
statistics::Distribution ticksClkGated
void regStats() override
Callback to set stat parameters.
void serialize(CheckpointOut &cp) const override
Serialize an object.
std::ostream CheckpointOut
std::vector< double > getWeights() const
Returns the percentage residency for each power state.
Tick prvEvalTick
Last tick the power stats were calculated.
std::set< enums::PwrState > getPossibleStates() const
Return the power states this object can be in.
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
void set(enums::PwrState p)
Change the power state of this object to the power state p.
statistics::Vector pwrStateResidencyTicks
Tracks the time spent in each of the power states.
enums::PwrState _currState
To keep track of the current power state.
Generated on Sun Jul 30 2023 01:56:59 for gem5 by doxygen 1.8.17