diff options
| author | Louis Burda <quent.burda@gmail.com> | 2023-02-07 08:26:00 -0600 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2023-02-07 08:26:00 -0600 |
| commit | c1f2064fda3711db4878376884c36979c7b470cc (patch) | |
| tree | 8dca8be1620db56687b68b583598b8b6ebe5801a /test | |
| parent | 32331c7f421411bccb87ea818a2a0198b8cf88aa (diff) | |
| download | cachepc-c1f2064fda3711db4878376884c36979c7b470cc.tar.gz cachepc-c1f2064fda3711db4878376884c36979c7b470cc.zip | |
Add counter for L1 misses in guest
Diffstat (limited to 'test')
| -rw-r--r-- | test/kvm-step.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
