Added stat to the cache to account for HardPF'ed blocks that are evicted
before being referenced (over-prefetching).
.desc("number of cache copies performed")
;
+ unusedPrefetches
+ .name(name() + ".unused_prefetches")
+ .desc("number of HardPF blocks evicted w/o reference")
+ .flags(nozero)
+ ;
+
writebacks
.init(system->maxMasters())
.name(name() + ".writebacks")
/** The number of cache copies performed. */
Stats::Scalar cacheCopies;
+ /** The number of times a HW-prefetched block is evicted w/o reference. */
+ Stats::Scalar unusedPrefetches;
+
/** Number of blocks written back per thread. */
Stats::Vector writebacks;
addr, is_secure ? "s" : "ns",
blk->isDirty() ? "writeback" : "clean");
+ if (blk->wasPrefetched()) {
+ unusedPrefetches++;
+ }
// Will send up Writeback/CleanEvict snoops via isCachedAbove
// when pushing this writeback list into the write buffer.
if (blk->isDirty() || writebackClean) {