Go to the documentation of this file.
42 #include "params/MemFootprintProbe.hh"
51 totalCacheLinesInMem(
p.
system->memSize() /
p.
system->cacheLineSize()),
52 totalPagesInMem(
p.
system->memSize() /
p.page_size),
61 "MemFootprintProbe expects cache line size is power of 2.");
63 "MemFootprintProbe expects page size parameter is power of 2");
68 : statistics::
Group(parent),
70 "Memory footprint at cache line granularity"),
72 "Total memory footprint at cache line granularity since "
75 "Memory footprint at page granularity"),
77 "Total memory footprint at page granularity since simulation "
80 using namespace statistics;
const FlagsType nozero
Don't print if this is zero.
static constexpr std::enable_if_t< std::is_integral_v< T >, int > floorLog2(T x)
const FlagsType nonan
Don't print if this is NAN.
BitfieldType< SegDescriptorLimit > limit
static constexpr bool isPowerOf2(const T &n)
Base class for memory system probes accepting Packet instances.
unsigned int cacheLineSize() const
Get the cache line size of the system.
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.
#define ADD_STAT(n,...)
Convenience macro to add a stat to a statistics group.
void registerResetCallback(const std::function< void()> &callback)
Register a callback that should be called whenever statistics are reset.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
std::vector< Info * > stats
Derived & flags(Flags _flags)
Set the flags and marks this stat to print at the end of simulation.
A struct to hold on to the essential fields from a packet, so that the packet and underlying request ...
#define fatal_if(cond,...)
Conditional fatal macro that checks the supplied condition and only causes a fatal error if the condi...
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
Generated on Sun Jul 30 2023 01:56:58 for gem5 by doxygen 1.8.17