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:
Daniel R. Carvalho
2021-05-06 20:00:51 -03:00
committed by Daniel Carvalho
parent fa505f1c23
commit 98ac080ec4
228 changed files with 3078 additions and 2970 deletions

View File

@@ -468,51 +468,51 @@ class Commit
int htmStarts[MaxThreads];
int htmStops[MaxThreads];
struct CommitStats : public Stats::Group
struct CommitStats : public statistics::Group
{
CommitStats(CPU *cpu, Commit *commit);
/** Stat for the total number of squashed instructions discarded by
* commit.
*/
Stats::Scalar commitSquashedInsts;
statistics::Scalar commitSquashedInsts;
/** Stat for the total number of times commit has had to stall due
* to a non-speculative instruction reaching the head of the ROB.
*/
Stats::Scalar commitNonSpecStalls;
statistics::Scalar commitNonSpecStalls;
/** Stat for the total number of branch mispredicts that caused a
* squash.
*/
Stats::Scalar branchMispredicts;
statistics::Scalar branchMispredicts;
/** Distribution of the number of committed instructions each cycle. */
Stats::Distribution numCommittedDist;
statistics::Distribution numCommittedDist;
/** Total number of instructions committed. */
Stats::Vector instsCommitted;
statistics::Vector instsCommitted;
/** Total number of ops (including micro ops) committed. */
Stats::Vector opsCommitted;
statistics::Vector opsCommitted;
/** Stat for the total number of committed memory references. */
Stats::Vector memRefs;
statistics::Vector memRefs;
/** Stat for the total number of committed loads. */
Stats::Vector loads;
statistics::Vector loads;
/** Stat for the total number of committed atomics. */
Stats::Vector amos;
statistics::Vector amos;
/** Total number of committed memory barriers. */
Stats::Vector membars;
statistics::Vector membars;
/** Total number of committed branches. */
Stats::Vector branches;
statistics::Vector branches;
/** Total number of vector instructions */
Stats::Vector vectorInstructions;
statistics::Vector vectorInstructions;
/** Total number of floating point instructions */
Stats::Vector floating;
statistics::Vector floating;
/** Total number of integer instructions */
Stats::Vector integer;
statistics::Vector integer;
/** Total number of function calls */
Stats::Vector functionCalls;
statistics::Vector functionCalls;
/** Committed instructions by instruction type (OpClass) */
Stats::Vector2d committedInstType;
statistics::Vector2d committedInstType;
/** Number of cycles where the commit bandwidth limit is reached. */
Stats::Scalar commitEligibleSamples;
statistics::Scalar commitEligibleSamples;
} stats;
};