summaryrefslogtreecommitdiffstats
path: root/test/fullstep.c
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-01-09 12:38:14 +0100
committerLouis Burda <quent.burda@gmail.com>2023-01-09 12:38:14 +0100
commit7772e36f54534aeefe70c01e77bbc1a5f07b2508 (patch)
treee3b43ceab4999d8f8eefbc0ef5544a2775f8528a /test/fullstep.c
parentc1cc24c1e78f9c67bda882f2ee096fb8d6578cf0 (diff)
downloadcachepc-7772e36f54534aeefe70c01e77bbc1a5f07b2508.tar.gz
cachepc-7772e36f54534aeefe70c01e77bbc1a5f07b2508.zip
Stash minor fixes
Diffstat (limited to 'test/fullstep.c')
-rw-r--r--test/fullstep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fullstep.c b/test/fullstep.c
index 98272c1..52e745a 100644
--- a/test/fullstep.c
+++ b/test/fullstep.c
@@ -460,8 +460,8 @@ monitor(struct kvm *kvm, bool baseline)
ret = ioctl(kvm_dev, KVM_CPC_READ_COUNTS, counts);
if (ret == -1) err(1, "ioctl READ_COUNTS");
- rip = 0; // snp_dbg_rip(kvm->vmfd);
if (!baseline) {
+ rip = snp_dbg_rip(kvm->vmfd);
printf("Event: cnt:%llu inst:%llu data:%llu retired:%llu rip:%lu\n",
event.step.fault_count,
event.step.fault_gfns[0],
@@ -542,7 +542,7 @@ main(int argc, const char **argv)
if ((pid = fork())) {
if (pid < 0) err(1, "fork");
- sleep(1); /* give time for child to pin other core */
+ sleep(1); /* wait for child to pin other core */
printf("VMRUN\n");
runonce(&kvm_with_access);