From c1f2064fda3711db4878376884c36979c7b470cc Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Tue, 7 Feb 2023 08:26:00 -0600 Subject: Add counter for L1 misses in guest --- test/kvm-step.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/kvm-step.c b/test/kvm-step.c index 99b5dcb..a95d935 100644 --- a/test/kvm-step.c +++ b/test/kvm-step.c @@ -34,10 +34,10 @@ monitor(struct kvm *kvm, bool baseline) ret = ioctl(kvm_dev, KVM_CPC_READ_COUNTS, counts); if (ret) err(1, "KVM_CPC_READ_COUNTS"); - printf("Event: rip:%08llx cnt:%llu inst:%08llx data:%08llx ret:%llu\n", + printf("Event: rip:%08llx cnt:%llu inst:%08llx data:%08llx ret:%llu misses:%u\n", vm_get_rip(), event.step.fault_count, event.step.fault_gfns[0], event.step.fault_gfns[1], - event.step.retinst); + event.step.retinst, event.step.misses); print_counts(counts); printf("\n"); print_counts_raw(counts); -- cgit v1.2.3-71-gd317