summaryrefslogtreecommitdiffstats
path: root/test/kvm-step.c
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-02-03 11:59:43 -0600
committerLouis Burda <quent.burda@gmail.com>2023-02-03 11:59:43 -0600
commit1715c9d6e1aa977b407081fb3164edbf1534fb5c (patch)
tree1802d90d850164f2387098c238214641b75e86e9 /test/kvm-step.c
parent0c825583fc20f1b91c56e1aaf450d6a753d24658 (diff)
downloadcachepc-1715c9d6e1aa977b407081fb3164edbf1534fb5c.tar.gz
cachepc-1715c9d6e1aa977b407081fb3164edbf1534fb5c.zip
Properly implement target gfn stepping
Diffstat (limited to 'test/kvm-step.c')
-rw-r--r--test/kvm-step.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/kvm-step.c b/test/kvm-step.c
index 2d24598..4cae764 100644
--- a/test/kvm-step.c
+++ b/test/kvm-step.c
@@ -34,7 +34,7 @@ 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:%llu cnt:%llu inst:%llu data:%llu ret:%llu\n",
+ printf("Event: rip:%08llx cnt:%llu inst:%08llx data:%08llx ret:%llu\n",
vm_get_rip(), event.step.fault_count,
event.step.fault_gfns[0], event.step.fault_gfns[1],
event.step.retinst);
@@ -146,7 +146,6 @@ main(int argc, const char **argv)
if (ret && errno == EAGAIN) continue;
if (ret) err(1, "KVM_CPC_POLL_EVENT");
- printf("%lu\n", event.id);
if (event.type == CPC_EVENT_PAUSE) break;
ret = ioctl(kvm_dev, KVM_CPC_ACK_EVENT, &event.id);