mem: Remove unused cache stats
authorAndreas Hansson <andreas.hansson@arm.com>
Thu, 21 Apr 2016 08:48:19 +0000 (04:48 -0400)
committerAndreas Hansson <andreas.hansson@arm.com>
Thu, 21 Apr 2016 08:48:19 +0000 (04:48 -0400)
Prune cache stats that are never actually used.

src/mem/cache/base.cc
src/mem/cache/base.hh

index 3ae52cebd7ba7054567d589b17a1c454fb4382c2..22e05e165e375bbc0f413bef18a5b5ebdc0e72c5 100644 (file)
@@ -434,16 +434,6 @@ BaseCache::regStats()
 
     avg_blocked = blocked_cycles / blocked_causes;
 
-    fastWrites
-        .name(name() + ".fast_writes")
-        .desc("number of fast writes performed")
-        ;
-
-    cacheCopies
-        .name(name() + ".cache_copies")
-        .desc("number of cache copies performed")
-        ;
-
     unusedPrefetches
         .name(name() + ".unused_prefetches")
         .desc("number of HardPF blocks evicted w/o reference")
@@ -761,30 +751,4 @@ BaseCache::regStats()
         overallAvgMshrUncacheableLatency.subname(i, system->getMasterName(i));
     }
 
-    mshr_cap_events
-        .init(system->maxMasters())
-        .name(name() + ".mshr_cap_events")
-        .desc("number of times MSHR cap was activated")
-        .flags(total | nozero | nonan)
-        ;
-    for (int i = 0; i < system->maxMasters(); i++) {
-        mshr_cap_events.subname(i, system->getMasterName(i));
-    }
-
-    //software prefetching stats
-    soft_prefetch_mshr_full
-        .init(system->maxMasters())
-        .name(name() + ".soft_prefetch_mshr_full")
-        .desc("number of mshr full events for SW prefetching instrutions")
-        .flags(total | nozero | nonan)
-        ;
-    for (int i = 0; i < system->maxMasters(); i++) {
-        soft_prefetch_mshr_full.subname(i, system->getMasterName(i));
-    }
-
-    mshr_no_allocate_misses
-        .name(name() +".no_allocate_misses")
-        .desc("Number of misses that were no-allocate")
-        ;
-
 }
index 9275eb453da07e36087295ef37c020b13379f68b..ffff6f0584d0a5f55cf14738275afae468537ac1 100644 (file)
@@ -381,12 +381,6 @@ class BaseCache : public MemObject
     /** The average number of cycles blocked for each blocked cause. */
     Stats::Formula avg_blocked;
 
-    /** The number of fast writes (WH64) performed. */
-    Stats::Scalar fastWrites;
-
-    /** 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;
 
@@ -452,13 +446,6 @@ class BaseCache : public MemObject
     /** The average overall latency of an MSHR miss. */
     Stats::Formula overallAvgMshrUncacheableLatency;
 
-    /** The number of times a thread hit its MSHR cap. */
-    Stats::Vector mshr_cap_events;
-    /** The number of times software prefetches caused the MSHR to block. */
-    Stats::Vector soft_prefetch_mshr_full;
-
-    Stats::Scalar mshr_no_allocate_misses;
-
     /**
      * @}
      */