cpu-kvm: Implement IPC and CPI base stats for KVM CPU
Replaced committedInsts stats of KVM CPU with commitStats.numInsts of BaseCPU. This results in IPC and CPI printing in stats.txt for KVM simulations. Change-Id: I02395630fc50a69adebf11f4ed39d9cefb852e1f Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/67396 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
committed by
Bobby Bruce
parent
0974fe6f24
commit
457d70df62
@@ -261,8 +261,6 @@ BaseKvmCPU::restartEqThread()
|
||||
|
||||
BaseKvmCPU::StatGroup::StatGroup(statistics::Group *parent)
|
||||
: statistics::Group(parent),
|
||||
ADD_STAT(committedInsts, statistics::units::Count::get(),
|
||||
"Number of instructions committed"),
|
||||
ADD_STAT(numVMExits, statistics::units::Count::get(),
|
||||
"total number of KVM exits"),
|
||||
ADD_STAT(numVMHalfEntries, statistics::units::Count::get(),
|
||||
@@ -778,7 +776,8 @@ BaseKvmCPU::kvmRun(Tick ticks)
|
||||
|
||||
/* Update statistics */
|
||||
baseStats.numCycles += simCyclesExecuted;;
|
||||
stats.committedInsts += instsExecuted;
|
||||
commitStats[thread->threadId()]->numInsts += instsExecuted;
|
||||
baseStats.numInsts += instsExecuted;
|
||||
ctrInsts += instsExecuted;
|
||||
|
||||
DPRINTF(KvmRun,
|
||||
|
||||
@@ -804,7 +804,6 @@ class BaseKvmCPU : public BaseCPU
|
||||
struct StatGroup : public statistics::Group
|
||||
{
|
||||
StatGroup(statistics::Group *parent);
|
||||
statistics::Scalar committedInsts;
|
||||
statistics::Scalar numVMExits;
|
||||
statistics::Scalar numVMHalfEntries;
|
||||
statistics::Scalar numExitSignal;
|
||||
|
||||
Reference in New Issue
Block a user