changeset 5044bb906d5a in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=5044bb906d5a
description:
        inorder: remove debugging stat
        m5 doesnt do stats specific to binary and this resource request stat is 
probably only
        useful for people who really know the ins/outs of the model anyway

diffstat:

 src/cpu/inorder/resource.cc |  16 ----------------
 src/cpu/inorder/resource.hh |  13 +------------
 2 files changed, 1 insertions(+), 28 deletions(-)

diffs (63 lines):

diff -r 333ca39e832a -r 5044bb906d5a src/cpu/inorder/resource.cc
--- a/src/cpu/inorder/resource.cc       Fri Jun 25 17:42:55 2010 -0400
+++ b/src/cpu/inorder/resource.cc       Sat Jun 26 09:41:39 2010 -0400
@@ -76,18 +76,6 @@
     return cpu->name() + "."  + resName;
 }
 
-void
-Resource::regStats()
-{
-#ifdef DEBUG
-    instReqsProcessed
-        .name(name() + ".instReqsProcessed")
-        .desc("Number of Instructions Requests that completed in "
-              "this resource.")
-        .prereq(instReqsProcessed);
-#endif
-}
-
 int
 Resource::slotsAvail()
 {
@@ -480,10 +468,6 @@
     // change slot # to -1, since we check slotNum to see if request is
     // still valid
     slotNum = -1;
-
-#ifdef DEBUG
-    res->instReqsProcessed++;
-#endif
 }
 
 ResourceEvent::ResourceEvent()
diff -r 333ca39e832a -r 5044bb906d5a src/cpu/inorder/resource.hh
--- a/src/cpu/inorder/resource.hh       Fri Jun 25 17:42:55 2010 -0400
+++ b/src/cpu/inorder/resource.hh       Sat Jun 26 09:41:39 2010 -0400
@@ -83,7 +83,7 @@
     virtual void initSlots();
 
     /** Register Stats for this resource */
-    virtual void regStats();
+    virtual void regStats() { }
 
     /** Resources that care about thread activation override this. */
     virtual void activateThread(ThreadID tid) { }
@@ -246,17 +246,6 @@
 
     /** Default denied resource request pointer*/
     ResReqPtr deniedReq;
-
-  public:
-    /////////////////////////////////////////////////////////////////
-    //
-    // DEFAULT RESOURCE STATISTICS
-    //
-    /////////////////////////////////////////////////////////////////
-#ifdef DEBUG
-    /** Number of Instruction Requests the Resource Processes */
-    Stats::Scalar instReqsProcessed;
-#endif
 };
 
 class ResourceEvent : public Event
_______________________________________________
m5-dev mailing list
m5-dev@m5sim.org
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to