Add a basic warning for every 10000 packet that is suppressed to alert
the user.
port(name() + ".port", *this),
retryPkt(NULL),
retryPktTick(0),
- updateEvent(this)
+ updateEvent(this),
+ numSuppressed(0)
{
}
} else {
DPRINTF(TrafficGen, "Suppressed packet %s 0x%x\n",
pkt->cmdString(), pkt->getAddr());
+
+ ++numSuppressed;
+ if (numSuppressed % 10000)
+ warn("%s suppressed %d packets with non-memory addresses\n",
+ name(), numSuppressed);
+
delete pkt->req;
delete pkt;
pkt = nullptr;
/** Event for scheduling updates */
EventWrapper<TrafficGen, &TrafficGen::update> updateEvent;
+ uint64_t numSuppressed;
+
/** Count the number of generated packets. */
Stats::Scalar numPackets;