base-stats,misc: Rename Stats namespace as statistics
As part of recent decisions regarding namespace naming conventions, all namespaces will be changed to snake case. ::Stats became ::statistics. "statistics" was chosen over "stats" to avoid generating conflicts with the already existing variables (there are way too many "stats" in the codebase), which would make this patch even more disturbing for the users. Change-Id: If877b12d7dac356f86e3b3d941bf7558a4fd8719 Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/45421 Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
committed by
Daniel Carvalho
parent
fa505f1c23
commit
98ac080ec4
@@ -67,29 +67,29 @@ BPredUnit::BPredUnit(const Params ¶ms)
|
||||
r.init(params.RASSize);
|
||||
}
|
||||
|
||||
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(),
|
||||
BPredUnit::BPredUnitStats::BPredUnitStats(statistics::Group *parent)
|
||||
: statistics::Group(parent),
|
||||
ADD_STAT(lookups, statistics::units::Count::get(), "Number of BP lookups"),
|
||||
ADD_STAT(condPredicted, statistics::units::Count::get(),
|
||||
"Number of conditional branches predicted"),
|
||||
ADD_STAT(condIncorrect, Stats::units::Count::get(),
|
||||
ADD_STAT(condIncorrect, statistics::units::Count::get(),
|
||||
"Number of conditional branches incorrect"),
|
||||
ADD_STAT(BTBLookups, Stats::units::Count::get(),
|
||||
ADD_STAT(BTBLookups, statistics::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, statistics::units::Count::get(), "Number of BTB hits"),
|
||||
ADD_STAT(BTBHitRatio, statistics::units::Ratio::get(), "BTB Hit Ratio",
|
||||
BTBHits / BTBLookups),
|
||||
ADD_STAT(RASUsed, Stats::units::Count::get(),
|
||||
ADD_STAT(RASUsed, statistics::units::Count::get(),
|
||||
"Number of times the RAS was used to get a target."),
|
||||
ADD_STAT(RASIncorrect, Stats::units::Count::get(),
|
||||
ADD_STAT(RASIncorrect, statistics::units::Count::get(),
|
||||
"Number of incorrect RAS predictions."),
|
||||
ADD_STAT(indirectLookups, Stats::units::Count::get(),
|
||||
ADD_STAT(indirectLookups, statistics::units::Count::get(),
|
||||
"Number of indirect predictor lookups."),
|
||||
ADD_STAT(indirectHits, Stats::units::Count::get(),
|
||||
ADD_STAT(indirectHits, statistics::units::Count::get(),
|
||||
"Number of indirect target hits."),
|
||||
ADD_STAT(indirectMisses, Stats::units::Count::get(),
|
||||
ADD_STAT(indirectMisses, statistics::units::Count::get(),
|
||||
"Number of indirect misses."),
|
||||
ADD_STAT(indirectMispredicted, Stats::units::Count::get(),
|
||||
ADD_STAT(indirectMispredicted, statistics::units::Count::get(),
|
||||
"Number of mispredicted indirect branches.")
|
||||
{
|
||||
BTBHitRatio.precision(6);
|
||||
|
||||
Reference in New Issue
Block a user