summaryrefslogtreecommitdiff
path: root/src/mem/noncoherent_bus.hh
diff options
context:
space:
mode:
authorUri Wiener <uri.wiener@arm.com>2013-05-30 12:53:58 -0400
committerUri Wiener <uri.wiener@arm.com>2013-05-30 12:53:58 -0400
commit91f7b065a9b34ce0d3951001e30a9372d9b9dba9 (patch)
tree0dbe87473a59772269a82ecd14c9700ec0547424 /src/mem/noncoherent_bus.hh
parente1e73c5f395504647344d3eaa08a5300591896f8 (diff)
downloadgem5-91f7b065a9b34ce0d3951001e30a9372d9b9dba9.tar.xz
mem: Add basic stats to the buses
This patch adds a basic set of stats which are hard to impossible to implement using only communication monitors, and are needed for insight such as bus utilization, transactions through the bus etc. Stats added include throughput and transaction distribution, and also a two-dimensional vector capturing how many packets and how much data is exchanged between the masters and slaves connected to the bus.
Diffstat (limited to 'src/mem/noncoherent_bus.hh')
-rw-r--r--src/mem/noncoherent_bus.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mem/noncoherent_bus.hh b/src/mem/noncoherent_bus.hh
index 5d20a11b2..8fc2c40d5 100644
--- a/src/mem/noncoherent_bus.hh
+++ b/src/mem/noncoherent_bus.hh
@@ -209,6 +209,11 @@ class NoncoherentBus : public BaseBus
unsigned int drain(DrainManager *dm);
+ /**
+ * stats
+ */
+ virtual void regStats();
+ Stats::Scalar dataThroughBus;
};
#endif //__MEM_NONCOHERENT_BUS_HH__