We want to extend the stats of objects hierarchically and thus it is necessary
to register the statistics of the base-class(es), as well. For now, these are
empty, but generic stats will be added there.
Patch originally provided by Akash Bagdia at ARM Ltd.
15 files changed:
void
TableWalker::regStats()
{
+ ClockedObject::regStats();
+
statWalks
.name(name() + ".walks")
.desc("Table walker walks requested")
void
TLB::regStats()
{
+ BaseTLB::regStats();
instHits
.name(name() + ".inst_hits")
.desc("ITB inst hits")
void
BaseCPU::regStats()
{
+ MemObject::regStats();
+
using namespace Stats;
numCycles
void
TrafficGen::regStats()
{
+ ClockedObject::regStats();
+
// Initialise all the stats
using namespace Stats;
void
EtherDevice::regStats()
{
+ PciDevice::regStats();
+
txBytes
.name(name() + ".txBytes")
.desc("Bytes Transmitted")
void
CopyEngine::regStats()
{
+ PciDevice::regStats();
+
using namespace Stats;
bytesCopied
.init(regs.chanCount)
void
IdeDisk::regStats()
{
+ SimObject::regStats();
+
using namespace Stats;
dmaReadFullPages
.name(name() + ".dma_read_full_pages")
void
AbstractMemory::regStats()
{
+ MemObject::regStats();
+
using namespace Stats;
assert(system());
void
BaseCache::regStats()
{
+ MemObject::regStats();
+
using namespace Stats;
// Hit statistics
void
BasePrefetcher::regStats()
{
+ ClockedObject::regStats();
+
pfIssued
.name(name() + ".num_hwpf_issued")
.desc("number of hwpf issued")
void
BaseTags::regStats()
{
+ ClockedObject::regStats();
+
using namespace Stats;
+
replacements
.init(maxThreadsPerCPU)
.name(name() + ".replacements")
void
CommMonitor::regStats()
{
+ MemObject::regStats();
+
// Initialise all the monitor stats
using namespace Stats;
void
BaseXBar::regStats()
{
+ ClockedObject::regStats();
+
using namespace Stats;
transDist
void
Process::regStats()
{
+ SimObject::regStats();
+
using namespace Stats;
num_syscalls
void
System::regStats()
{
+ MemObject::regStats();
+
for (uint32_t j = 0; j < numWorkIds ; j++) {
workItemStats[j] = new Stats::Histogram();
stringstream namestr;