summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2022-11-04 14:56:50 +0100
committerLouis Burda <quent.burda@gmail.com>2022-11-04 14:56:50 +0100
commitc308b0d3af8c052cd3dbe22143435917da6e7988 (patch)
tree4c37b73614efdc7809e1fb489a22137fd23b6df6 /test
parentd4ac8d64359fcaf25a65196c83ba0a091f645a3b (diff)
downloadcachepc-c308b0d3af8c052cd3dbe22143435917da6e7988.tar.gz
cachepc-c308b0d3af8c052cd3dbe22143435917da6e7988.zip
Enable tracking data fault after instruction fetch
Diffstat (limited to 'test')
-rw-r--r--test/sevstep.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/sevstep.c b/test/sevstep.c
index 53fa83e..17285f5 100644
--- a/test/sevstep.c
+++ b/test/sevstep.c
@@ -30,8 +30,6 @@
#define ARRLEN(x) (sizeof(x) / sizeof((x)[0]))
#define MIN(a,b) ((a) > (b) ? (b) : (a))
-#define SAMPLE_COUNT 20
-
#define TARGET_CORE 2
#define SECONDARY_CORE 3
@@ -528,7 +526,7 @@ main(int argc, const char **argv)
if (ret == -1) err(1, "ioctl MEASURE_BASELINE");
faultcnt = 0;
- while (faultcnt < SAMPLE_COUNT) {
+ while (faultcnt < 20) {
if (monitor(&kvm_with_access)) break;
}
@@ -561,7 +559,7 @@ main(int argc, const char **argv)
if (ret == -1) err(1, "ioctl TRACK_SINGLE_STEP");
faultcnt = 0;
- while (faultcnt < SAMPLE_COUNT) {
+ while (faultcnt < 100) {
if (monitor(&kvm_with_access)) break;
}