diff options
| author | Louis Burda <quent.burda@gmail.com> | 2023-01-09 12:38:14 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2023-01-09 12:38:14 +0100 |
| commit | 7772e36f54534aeefe70c01e77bbc1a5f07b2508 (patch) | |
| tree | e3b43ceab4999d8f8eefbc0ef5544a2775f8528a /test | |
| parent | c1cc24c1e78f9c67bda882f2ee096fb8d6578cf0 (diff) | |
| download | cachepc-7772e36f54534aeefe70c01e77bbc1a5f07b2508.tar.gz cachepc-7772e36f54534aeefe70c01e77bbc1a5f07b2508.zip | |
Stash minor fixes
Diffstat (limited to 'test')
| -rw-r--r-- | test/aes-detect_guest.c | 4 | ||||
| -rw-r--r-- | test/fullstep.c | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/test/aes-detect_guest.c b/test/aes-detect_guest.c index 1b21ebd..2b0f2ad 100644 --- a/test/aes-detect_guest.c +++ b/test/aes-detect_guest.c @@ -40,10 +40,8 @@ main(int argc, const char **argv) while (1) { CPC_DO_VMMCALL(CPC_GUEST_START_TRACK, 0); - buf[L1_LINESIZE * 5] += 1; - - CPC_DO_VMMCALL(CPC_GUEST_START_TRACK, 0); + CPC_DO_VMMCALL(CPC_GUEST_STOP_TRACK, 0); } return 0; 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); |
