base-stats: Rename Units namespace as units
As part of recent decisions regarding namespace naming conventions, all namespaces will be changed to snake case. Stats::Units became Stats::units. Change-Id: I9ce855b291db122d952098a090a2984b42152850 Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/45415 Maintainer: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Hoa Nguyen <hoanguyen@ucdavis.edu>
This commit is contained in:
committed by
Daniel Carvalho
parent
7592230550
commit
3016478068
@@ -69,27 +69,27 @@ BPredUnit::BPredUnit(const Params ¶ms)
|
||||
|
||||
BPredUnit::BPredUnitStats::BPredUnitStats(Stats::Group *parent)
|
||||
: Stats::Group(parent),
|
||||
ADD_STAT(lookups, Stats::Units::Count::get(), "Number of BP lookups"),
|
||||
ADD_STAT(condPredicted, Stats::Units::Count::get(),
|
||||
ADD_STAT(lookups, Stats::units::Count::get(), "Number of BP lookups"),
|
||||
ADD_STAT(condPredicted, Stats::units::Count::get(),
|
||||
"Number of conditional branches predicted"),
|
||||
ADD_STAT(condIncorrect, Stats::Units::Count::get(),
|
||||
ADD_STAT(condIncorrect, Stats::units::Count::get(),
|
||||
"Number of conditional branches incorrect"),
|
||||
ADD_STAT(BTBLookups, Stats::Units::Count::get(),
|
||||
ADD_STAT(BTBLookups, Stats::units::Count::get(),
|
||||
"Number of BTB lookups"),
|
||||
ADD_STAT(BTBHits, Stats::Units::Count::get(), "Number of BTB hits"),
|
||||
ADD_STAT(BTBHitRatio, Stats::Units::Ratio::get(), "BTB Hit Ratio",
|
||||
ADD_STAT(BTBHits, Stats::units::Count::get(), "Number of BTB hits"),
|
||||
ADD_STAT(BTBHitRatio, Stats::units::Ratio::get(), "BTB Hit Ratio",
|
||||
BTBHits / BTBLookups),
|
||||
ADD_STAT(RASUsed, Stats::Units::Count::get(),
|
||||
ADD_STAT(RASUsed, Stats::units::Count::get(),
|
||||
"Number of times the RAS was used to get a target."),
|
||||
ADD_STAT(RASIncorrect, Stats::Units::Count::get(),
|
||||
ADD_STAT(RASIncorrect, Stats::units::Count::get(),
|
||||
"Number of incorrect RAS predictions."),
|
||||
ADD_STAT(indirectLookups, Stats::Units::Count::get(),
|
||||
ADD_STAT(indirectLookups, Stats::units::Count::get(),
|
||||
"Number of indirect predictor lookups."),
|
||||
ADD_STAT(indirectHits, Stats::Units::Count::get(),
|
||||
ADD_STAT(indirectHits, Stats::units::Count::get(),
|
||||
"Number of indirect target hits."),
|
||||
ADD_STAT(indirectMisses, Stats::Units::Count::get(),
|
||||
ADD_STAT(indirectMisses, Stats::units::Count::get(),
|
||||
"Number of indirect misses."),
|
||||
ADD_STAT(indirectMispredicted, Stats::Units::Count::get(),
|
||||
ADD_STAT(indirectMispredicted, Stats::units::Count::get(),
|
||||
"Number of mispredicted indirect branches.")
|
||||
{
|
||||
BTBHitRatio.precision(6);
|
||||
|
||||
@@ -347,10 +347,10 @@ LoopPredictor::condBranchUpdate(ThreadID tid, Addr branch_pc, bool taken,
|
||||
|
||||
LoopPredictor::LoopPredictorStats::LoopPredictorStats(Stats::Group *parent)
|
||||
: Stats::Group(parent),
|
||||
ADD_STAT(correct, Stats::Units::Count::get(),
|
||||
ADD_STAT(correct, Stats::units::Count::get(),
|
||||
"Number of times the loop predictor is the provider and the "
|
||||
"prediction is correct"),
|
||||
ADD_STAT(wrong, Stats::Units::Count::get(),
|
||||
ADD_STAT(wrong, Stats::units::Count::get(),
|
||||
"Number of times the loop predictor is the provider and the "
|
||||
"prediction is wrong")
|
||||
{
|
||||
|
||||
@@ -400,10 +400,10 @@ StatisticalCorrector::getSizeInBits() const
|
||||
StatisticalCorrector::StatisticalCorrectorStats::StatisticalCorrectorStats(
|
||||
Stats::Group *parent)
|
||||
: Stats::Group(parent),
|
||||
ADD_STAT(correct, Stats::Units::Count::get(),
|
||||
ADD_STAT(correct, Stats::units::Count::get(),
|
||||
"Number of time the SC predictor is the provider and the "
|
||||
"prediction is correct"),
|
||||
ADD_STAT(wrong, Stats::Units::Count::get(),
|
||||
ADD_STAT(wrong, Stats::units::Count::get(),
|
||||
"Number of time the SC predictor is the provider and the "
|
||||
"prediction is wrong")
|
||||
{
|
||||
|
||||
@@ -719,39 +719,39 @@ TAGEBase::getGHR(ThreadID tid, BranchInfo *bi) const
|
||||
TAGEBase::TAGEBaseStats::TAGEBaseStats(
|
||||
Stats::Group *parent, unsigned nHistoryTables)
|
||||
: Stats::Group(parent),
|
||||
ADD_STAT(longestMatchProviderCorrect, Stats::Units::Count::get(),
|
||||
ADD_STAT(longestMatchProviderCorrect, Stats::units::Count::get(),
|
||||
"Number of times TAGE Longest Match is the provider and the "
|
||||
"prediction is correct"),
|
||||
ADD_STAT(altMatchProviderCorrect, Stats::Units::Count::get(),
|
||||
ADD_STAT(altMatchProviderCorrect, Stats::units::Count::get(),
|
||||
"Number of times TAGE Alt Match is the provider and the "
|
||||
"prediction is correct"),
|
||||
ADD_STAT(bimodalAltMatchProviderCorrect, Stats::Units::Count::get(),
|
||||
ADD_STAT(bimodalAltMatchProviderCorrect, Stats::units::Count::get(),
|
||||
"Number of times TAGE Alt Match is the bimodal and it is the "
|
||||
"provider and the prediction is correct"),
|
||||
ADD_STAT(bimodalProviderCorrect, Stats::Units::Count::get(),
|
||||
ADD_STAT(bimodalProviderCorrect, Stats::units::Count::get(),
|
||||
"Number of times there are no hits on the TAGE tables and the "
|
||||
"bimodal prediction is correct"),
|
||||
ADD_STAT(longestMatchProviderWrong, Stats::Units::Count::get(),
|
||||
ADD_STAT(longestMatchProviderWrong, Stats::units::Count::get(),
|
||||
"Number of times TAGE Longest Match is the provider and the "
|
||||
"prediction is wrong"),
|
||||
ADD_STAT(altMatchProviderWrong, Stats::Units::Count::get(),
|
||||
ADD_STAT(altMatchProviderWrong, Stats::units::Count::get(),
|
||||
"Number of times TAGE Alt Match is the provider and the "
|
||||
"prediction is wrong"),
|
||||
ADD_STAT(bimodalAltMatchProviderWrong, Stats::Units::Count::get(),
|
||||
ADD_STAT(bimodalAltMatchProviderWrong, Stats::units::Count::get(),
|
||||
"Number of times TAGE Alt Match is the bimodal and it is the "
|
||||
"provider and the prediction is wrong"),
|
||||
ADD_STAT(bimodalProviderWrong, Stats::Units::Count::get(),
|
||||
ADD_STAT(bimodalProviderWrong, Stats::units::Count::get(),
|
||||
"Number of times there are no hits on the TAGE tables and the "
|
||||
"bimodal prediction is wrong"),
|
||||
ADD_STAT(altMatchProviderWouldHaveHit, Stats::Units::Count::get(),
|
||||
ADD_STAT(altMatchProviderWouldHaveHit, Stats::units::Count::get(),
|
||||
"Number of times TAGE Longest Match is the provider, the "
|
||||
"prediction is wrong and Alt Match prediction was correct"),
|
||||
ADD_STAT(longestMatchProviderWouldHaveHit, Stats::Units::Count::get(),
|
||||
ADD_STAT(longestMatchProviderWouldHaveHit, Stats::units::Count::get(),
|
||||
"Number of times TAGE Alt Match is the provider, the "
|
||||
"prediction is wrong and Longest Match prediction was correct"),
|
||||
ADD_STAT(longestMatchProvider, Stats::Units::Count::get(),
|
||||
ADD_STAT(longestMatchProvider, Stats::units::Count::get(),
|
||||
"TAGE provider for longest match"),
|
||||
ADD_STAT(altMatchProvider, Stats::Units::Count::get(),
|
||||
ADD_STAT(altMatchProvider, Stats::units::Count::get(),
|
||||
"TAGE provider for alt match")
|
||||
{
|
||||
longestMatchProvider.init(nHistoryTables + 1);
|
||||
|
||||
Reference in New Issue
Block a user