From 2b3168021cb0ceed8e90045435181bb82eed0c12 Mon Sep 17 00:00:00 2001 From: "Michiel W. van Tol" Date: Tue, 24 Jul 2018 15:28:34 +0100 Subject: cpu: Turn BaseTrafficGen numSuppressed into a stat This is changing numSuppressed from being a warn only variable into a Stat so that it is visible at the end of simulation. Change-Id: I934782e796c898bfc0e773cc88c597a68e403272 Reviewed-on: https://gem5-review.googlesource.com/11849 Reviewed-by: Jason Lowe-Power Reviewed-by: Andreas Sandberg Maintainer: Andreas Sandberg --- src/cpu/testers/traffic_gen/base.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cpu/testers/traffic_gen/base.hh') diff --git a/src/cpu/testers/traffic_gen/base.hh b/src/cpu/testers/traffic_gen/base.hh index 080bd7847..fe4229f23 100644 --- a/src/cpu/testers/traffic_gen/base.hh +++ b/src/cpu/testers/traffic_gen/base.hh @@ -163,7 +163,8 @@ class BaseTrafficGen : public MemObject /** Event for scheduling updates */ EventFunctionWrapper updateEvent; - uint64_t numSuppressed; + /** Count the number of dropped requests. */ + Stats::Scalar numSuppressed; private: // Stats /** Count the number of generated packets. */ -- cgit v1.2.3