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
@@ -258,27 +258,27 @@ BaseKvmCPU::startupThread()
|
||||
}
|
||||
}
|
||||
|
||||
BaseKvmCPU::StatGroup::StatGroup(Stats::Group *parent)
|
||||
: Stats::Group(parent),
|
||||
ADD_STAT(committedInsts, Stats::units::Count::get(),
|
||||
BaseKvmCPU::StatGroup::StatGroup(statistics::Group *parent)
|
||||
: statistics::Group(parent),
|
||||
ADD_STAT(committedInsts, statistics::units::Count::get(),
|
||||
"Number of instructions committed"),
|
||||
ADD_STAT(numVMExits, Stats::units::Count::get(),
|
||||
ADD_STAT(numVMExits, statistics::units::Count::get(),
|
||||
"total number of KVM exits"),
|
||||
ADD_STAT(numVMHalfEntries, Stats::units::Count::get(),
|
||||
ADD_STAT(numVMHalfEntries, statistics::units::Count::get(),
|
||||
"number of KVM entries to finalize pending operations"),
|
||||
ADD_STAT(numExitSignal, Stats::units::Count::get(),
|
||||
ADD_STAT(numExitSignal, statistics::units::Count::get(),
|
||||
"exits due to signal delivery"),
|
||||
ADD_STAT(numMMIO, Stats::units::Count::get(),
|
||||
ADD_STAT(numMMIO, statistics::units::Count::get(),
|
||||
"number of VM exits due to memory mapped IO"),
|
||||
ADD_STAT(numCoalescedMMIO, Stats::units::Count::get(),
|
||||
ADD_STAT(numCoalescedMMIO, statistics::units::Count::get(),
|
||||
"number of coalesced memory mapped IO requests"),
|
||||
ADD_STAT(numIO, Stats::units::Count::get(),
|
||||
ADD_STAT(numIO, statistics::units::Count::get(),
|
||||
"number of VM exits due to legacy IO"),
|
||||
ADD_STAT(numHalt, Stats::units::Count::get(),
|
||||
ADD_STAT(numHalt, statistics::units::Count::get(),
|
||||
"number of VM exits due to wait for interrupt instructions"),
|
||||
ADD_STAT(numInterrupts, Stats::units::Count::get(),
|
||||
ADD_STAT(numInterrupts, statistics::units::Count::get(),
|
||||
"number of interrupts delivered"),
|
||||
ADD_STAT(numHypercalls, Stats::units::Count::get(), "number of hypercalls")
|
||||
ADD_STAT(numHypercalls, statistics::units::Count::get(), "number of hypercalls")
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -781,19 +781,19 @@ class BaseKvmCPU : public BaseCPU
|
||||
|
||||
public:
|
||||
/* @{ */
|
||||
struct StatGroup : public Stats::Group
|
||||
struct StatGroup : public statistics::Group
|
||||
{
|
||||
StatGroup(Stats::Group *parent);
|
||||
Stats::Scalar committedInsts;
|
||||
Stats::Scalar numVMExits;
|
||||
Stats::Scalar numVMHalfEntries;
|
||||
Stats::Scalar numExitSignal;
|
||||
Stats::Scalar numMMIO;
|
||||
Stats::Scalar numCoalescedMMIO;
|
||||
Stats::Scalar numIO;
|
||||
Stats::Scalar numHalt;
|
||||
Stats::Scalar numInterrupts;
|
||||
Stats::Scalar numHypercalls;
|
||||
StatGroup(statistics::Group *parent);
|
||||
statistics::Scalar committedInsts;
|
||||
statistics::Scalar numVMExits;
|
||||
statistics::Scalar numVMHalfEntries;
|
||||
statistics::Scalar numExitSignal;
|
||||
statistics::Scalar numMMIO;
|
||||
statistics::Scalar numCoalescedMMIO;
|
||||
statistics::Scalar numIO;
|
||||
statistics::Scalar numHalt;
|
||||
statistics::Scalar numInterrupts;
|
||||
statistics::Scalar numHypercalls;
|
||||
} stats;
|
||||
/* @} */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user