mem: convert base prefetcher and queued to new style stats
Base and Queued inside src/mem/cache/prefetch converted Change-Id: I3d5907b58efefc4d8522b89f073507f2548bff2f Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/33475 Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
17
src/mem/cache/prefetch/base.cc
vendored
17
src/mem/cache/prefetch/base.cc
vendored
@@ -94,7 +94,8 @@ Base::Base(const BasePrefetcherParams *p)
|
||||
onWrite(p->on_write), onData(p->on_data), onInst(p->on_inst),
|
||||
masterId(p->sys->getMasterId(this)), pageBytes(p->sys->getPageBytes()),
|
||||
prefetchOnAccess(p->prefetch_on_access),
|
||||
useVirtualAddresses(p->use_virtual_addresses), issuedPrefetches(0),
|
||||
useVirtualAddresses(p->use_virtual_addresses),
|
||||
prefetchStats(this), issuedPrefetches(0),
|
||||
usefulPrefetches(0), tlb(nullptr)
|
||||
{
|
||||
}
|
||||
@@ -109,19 +110,13 @@ Base::setCache(BaseCache *_cache)
|
||||
blkSize = cache->getBlockSize();
|
||||
lBlkSize = floorLog2(blkSize);
|
||||
}
|
||||
|
||||
void
|
||||
Base::regStats()
|
||||
Base::StatGroup::StatGroup(Stats::Group *parent)
|
||||
: Stats::Group(parent),
|
||||
ADD_STAT(pfIssued, "number of hwpf issued")
|
||||
{
|
||||
ClockedObject::regStats();
|
||||
|
||||
pfIssued
|
||||
.name(name() + ".num_hwpf_issued")
|
||||
.desc("number of hwpf issued")
|
||||
;
|
||||
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
Base::observeAccess(const PacketPtr &pkt, bool miss) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user