summaryrefslogtreecommitdiff
path: root/src/mem/coherent_bus.hh
diff options
context:
space:
mode:
authorStephan Diestelhorst <stephan.diestelhorst@arm.com>2014-04-24 13:28:47 +0100
committerStephan Diestelhorst <stephan.diestelhorst@arm.com>2014-04-24 13:28:47 +0100
commit7d488cc66f77d8c6138f0117732ebc38758e814b (patch)
tree2a0ae00833e55eab273693a4d2d17ce16224c989 /src/mem/coherent_bus.hh
parentfe98cb6be471e8187658fea950bee0ecd5bf959c (diff)
downloadgem5-7d488cc66f77d8c6138f0117732ebc38758e814b.tar.xz
mem: Add a simple snoop counter per bus
This patch adds a simple counter for both total messages and a histogram for the fan-out of snoop messages. The fan-out describes to how many ports snoops had to be sent per incoming request / snoop-from-below. Without any cleverness, this usually means to either all, or all but the requesting port.
Diffstat (limited to 'src/mem/coherent_bus.hh')
-rw-r--r--src/mem/coherent_bus.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mem/coherent_bus.hh b/src/mem/coherent_bus.hh
index 8dde66d37..16ba92d26 100644
--- a/src/mem/coherent_bus.hh
+++ b/src/mem/coherent_bus.hh
@@ -341,6 +341,8 @@ class CoherentBus : public BaseBus
Stats::Scalar dataThroughBus;
Stats::Scalar snoopDataThroughBus;
+ Stats::Scalar snoopsThroughBus;
+ Stats::Distribution snoopFanout;
public: