From df059f45a0cbd230ad00f6da24cfc5d228430e16 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Tue, 11 Jun 2013 09:24:40 +0200 Subject: kvm: Maintain a local instruction counter and update totalNumInsts Update the system's totalNumInst counter when exiting from KVM and maintain an internal absolute instruction count instead of relying on the one from perf. --- src/cpu/kvm/base.hh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/cpu/kvm/base.hh') diff --git a/src/cpu/kvm/base.hh b/src/cpu/kvm/base.hh index c53f715e3..81b24a378 100644 --- a/src/cpu/kvm/base.hh +++ b/src/cpu/kvm/base.hh @@ -561,6 +561,9 @@ class BaseKvmCPU : public BaseCPU Stats::Scalar numInterrupts; Stats::Scalar numHypercalls; /* @} */ + + /** Number of instructions executed by the CPU */ + Counter ctrInsts; }; #endif -- cgit v1.2.3