diff options
author | Stephan Diestelhorst <stephan.diestelhorst@arm.com> | 2016-06-06 17:16:43 +0100 |
---|---|---|
committer | Stephan Diestelhorst <stephan.diestelhorst@arm.com> | 2016-06-06 17:16:43 +0100 |
commit | 589033c94c0381fe4e67cebe08352b6e1fbcde2e (patch) | |
tree | 78e4bf3ebcb798c256e6b3248854eff42bc67377 /src/mem | |
parent | 672c06a01d1931e7b6fc650ada20da54a9fc29d1 (diff) | |
download | gem5-589033c94c0381fe4e67cebe08352b6e1fbcde2e.tar.xz |
sim: Call regStats of base-class as well
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.
Diffstat (limited to 'src/mem')
-rw-r--r-- | src/mem/abstract_mem.cc | 2 | ||||
-rw-r--r-- | src/mem/cache/base.cc | 2 | ||||
-rw-r--r-- | src/mem/cache/prefetch/base.cc | 2 | ||||
-rw-r--r-- | src/mem/cache/tags/base.cc | 3 | ||||
-rw-r--r-- | src/mem/comm_monitor.cc | 2 | ||||
-rw-r--r-- | src/mem/xbar.cc | 2 |
6 files changed, 13 insertions, 0 deletions
diff --git a/src/mem/abstract_mem.cc b/src/mem/abstract_mem.cc index cbe360779..04e4b0057 100644 --- a/src/mem/abstract_mem.cc +++ b/src/mem/abstract_mem.cc @@ -79,6 +79,8 @@ AbstractMemory::setBackingStore(uint8_t* pmem_addr) void AbstractMemory::regStats() { + MemObject::regStats(); + using namespace Stats; assert(system()); diff --git a/src/mem/cache/base.cc b/src/mem/cache/base.cc index b6b3b1481..814159fc9 100644 --- a/src/mem/cache/base.cc +++ b/src/mem/cache/base.cc @@ -176,6 +176,8 @@ BaseCache::inRange(Addr addr) const void BaseCache::regStats() { + MemObject::regStats(); + using namespace Stats; // Hit statistics diff --git a/src/mem/cache/prefetch/base.cc b/src/mem/cache/prefetch/base.cc index 0b296144c..3d22dcce6 100644 --- a/src/mem/cache/prefetch/base.cc +++ b/src/mem/cache/prefetch/base.cc @@ -74,6 +74,8 @@ BasePrefetcher::setCache(BaseCache *_cache) void BasePrefetcher::regStats() { + ClockedObject::regStats(); + pfIssued .name(name() + ".num_hwpf_issued") .desc("number of hwpf issued") diff --git a/src/mem/cache/tags/base.cc b/src/mem/cache/tags/base.cc index c413fbc5d..6a926c0d8 100644 --- a/src/mem/cache/tags/base.cc +++ b/src/mem/cache/tags/base.cc @@ -71,7 +71,10 @@ BaseTags::setCache(BaseCache *_cache) void BaseTags::regStats() { + ClockedObject::regStats(); + using namespace Stats; + replacements .init(maxThreadsPerCPU) .name(name() + ".replacements") diff --git a/src/mem/comm_monitor.cc b/src/mem/comm_monitor.cc index 6077d2951..05549fd1c 100644 --- a/src/mem/comm_monitor.cc +++ b/src/mem/comm_monitor.cc @@ -384,6 +384,8 @@ CommMonitor::recvRangeChange() void CommMonitor::regStats() { + MemObject::regStats(); + // Initialise all the monitor stats using namespace Stats; diff --git a/src/mem/xbar.cc b/src/mem/xbar.cc index 7316fbc21..416b02931 100644 --- a/src/mem/xbar.cc +++ b/src/mem/xbar.cc @@ -541,6 +541,8 @@ BaseXBar::getAddrRanges() const void BaseXBar::regStats() { + ClockedObject::regStats(); + using namespace Stats; transDist |