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()
{
// change slot # to -1, since we check slotNum to see if request is
// still valid
slotNum = -1;
-
-#ifdef DEBUG
- res->instReqsProcessed++;
-#endif
}
ResourceEvent::ResourceEvent()
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) { }
/** 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