42 #include "params/MemFootprintProbe.hh" 48 totalCacheLinesInMem(p->
system->memSize() / p->
system->cacheLineSize()),
49 totalPagesInMem(p->
system->memSize() / p->page_size),
57 "MemFootprintProbe expects cache line size is power of 2.");
59 "MemFootprintProbe expects page size parameter is power of 2");
67 using namespace Stats;
70 .
desc(
"Memory footprint at cache line granularity")
73 .
desc(
"Total memory footprint at cache line granularity since " 77 .
desc(
"Memory footprint at page granularity")
80 .
desc(
"Total memory footprint at page granularity since simulation " 94 assert(set->size() <=
limit);
127 MemFootprintProbeParams::create()
const FlagsType nonan
Don't print if this is NAN.
Base class for memory system probes accepting Packet instances.
Derived & flags(Flags _flags)
Set the flags and marks this stat to print at the end of simulation.
std::enable_if< std::is_integral< T >::value, int >::type floorLog2(T x)
bool isMemAddr(Addr addr) const
Check if a physical address is within a range of a memory that is part of the global address map...
void registerResetCallback(Callback *cb)
Register a callback that should be called whenever statistics are reset.
bool isPowerOf2(const T &n)
#define fatal_if(cond,...)
Conditional fatal macro that checks the supplied condition and only causes a fatal error if the condi...
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Derived & name(const std::string &name)
Set the name and marks this stat to print at the end of simulation.
virtual const std::string name() const
BitfieldType< SegDescriptorLimit > limit
Derived & desc(const std::string &_desc)
Set the description and marks this stat to print at the end of simulation.
virtual void regStats()
Callback to set stat parameters.
Helper template class to turn a simple class member function into a callback.
const FlagsType nozero
Don't print if this is zero.
A struct to hold on to the essential fields from a packet, so that the packet and underlying request ...
unsigned int cacheLineSize() const
Get the cache line size of the system.