From 489e72d509efcc865205980673371a53585b2d02 Mon Sep 17 00:00:00 2001 From: Hoa Nguyen Date: Wed, 3 Feb 2021 15:37:28 -0800 Subject: [PATCH] mem: Change warmupCycle stat to warmupTick Change-Id: I96399dc5c062479049e7bf0de91d9f4f97903c43 Signed-off-by: Hoa Nguyen Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/40575 Tested-by: kokoro Reviewed-by: Daniel Carvalho Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power --- src/mem/cache/tags/base.cc | 6 +++--- src/mem/cache/tags/base.hh | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mem/cache/tags/base.cc b/src/mem/cache/tags/base.cc index 6f93b2182..1b98f81ce 100644 --- a/src/mem/cache/tags/base.cc +++ b/src/mem/cache/tags/base.cc @@ -115,7 +115,7 @@ BaseTags::insertBlock(const PacketPtr pkt, CacheBlk *blk) // Check if cache warm up is done if (!warmedUp && stats.tagsInUse.value() >= warmupBound) { warmedUp = true; - stats.warmupCycle = ticksToCycles(curTick()); + stats.warmupTick = curTick(); } // We only need to write into one tag and one data block. @@ -224,8 +224,8 @@ BaseTags::BaseTagStats::BaseTagStats(BaseTags &_tags) "Sample count of references to valid blocks."), ADD_STAT(avgRefs, UNIT_RATE(Stats::Units::Count, Stats::Units::Count), "Average number of references to valid blocks."), - ADD_STAT(warmupCycle, UNIT_CYCLE, - "Cycle when the warmup percentage was hit."), + ADD_STAT(warmupTick, UNIT_TICK, + "The tick when the warmup percentage was hit."), ADD_STAT(occupancies, UNIT_RATE(Stats::Units::Count, Stats::Units::Tick), "Average occupied blocks per tick, per requestor"), ADD_STAT(avgOccs, UNIT_RATE(Stats::Units::Ratio, Stats::Units::Tick), diff --git a/src/mem/cache/tags/base.hh b/src/mem/cache/tags/base.hh index 79494e0d0..7b187b5c3 100644 --- a/src/mem/cache/tags/base.hh +++ b/src/mem/cache/tags/base.hh @@ -130,8 +130,8 @@ class BaseTags : public ClockedObject */ Stats::Formula avgRefs; - /** The cycle that the warmup percentage was hit. 0 on failure. */ - Stats::Scalar warmupCycle; + /** The tick that the warmup percentage was hit. 0 on failure. */ + Stats::Scalar warmupTick; /** Average occupancy of each requestor using the cache */ Stats::AverageVector occupancies; -- 2.30.2