retryPkt(NULL),
retryPktTick(0),
updateEvent([this]{ update(); }, name()),
- numSuppressed(0),
masterID(system->getMasterId(this))
{
}
pkt->cmdString(), pkt->getAddr());
++numSuppressed;
- if (numSuppressed % 10000)
+ if (!(static_cast<int>(numSuppressed.value()) % 10000))
warn("%s suppressed %d packets with non-memory addresses\n",
- name(), numSuppressed);
+ name(), numSuppressed.value());
delete pkt;
pkt = nullptr;
.name(name() + ".numPackets")
.desc("Number of packets generated");
+ numSuppressed
+ .name(name() + ".numSuppressed")
+ .desc("Number of suppressed packets to non-memory space");
+
numRetries
.name(name() + ".numRetries")
.desc("Number of retries");
/** 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. */