kvm: Maintain a local instruction counter and update totalNumInsts
authorAndreas Sandberg <andreas@sandberg.pp.se>
Tue, 11 Jun 2013 07:24:40 +0000 (09:24 +0200)
committerAndreas Sandberg <andreas@sandberg.pp.se>
Tue, 11 Jun 2013 07:24:40 +0000 (09:24 +0200)
commitdf059f45a0cbd230ad00f6da24cfc5d228430e16
tree38af3de7250ce34e7d9ed39eb07cddabb9bbc0c4
parent0b4a8b40866a1ed44bacbccc788ce3001eab8b20
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.cc
src/cpu/kvm/base.hh