summaryrefslogtreecommitdiffstats
path: root/test/access-detect_guest.c
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-01-10 01:37:23 +0100
committerLouis Burda <quent.burda@gmail.com>2023-01-10 01:38:43 +0100
commit252b11a01e061fd17821e53a41c8451a1d2c27bd (patch)
treee887ead2faddc8691fc13da426655a0062351cdc /test/access-detect_guest.c
parent864f5fa9d539734d823b3d0613dbf1a43beec334 (diff)
downloadcachepc-252b11a01e061fd17821e53a41c8451a1d2c27bd.tar.gz
cachepc-252b11a01e061fd17821e53a41c8451a1d2c27bd.zip
Begin ioctl and test-case overhaul
Diffstat (limited to 'test/access-detect_guest.c')
-rw-r--r--test/access-detect_guest.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/test/access-detect_guest.c b/test/access-detect_guest.c
deleted file mode 100644
index a54e753..0000000
--- a/test/access-detect_guest.c
+++ /dev/null
@@ -1,26 +0,0 @@
-#include "cachepc/uapi.h"
-
-#include <err.h>
-#include <unistd.h>
-#include <stdint.h>
-#include <string.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-int
-main(int argc, const char **argv)
-{
- void *buf;
-
- buf = NULL;
- if (posix_memalign(&buf, L1_LINESIZE * L1_SETS, L1_LINESIZE * L1_SETS))
- err(1, "memalign");
- memset(buf, 0, L1_LINESIZE * L1_SETS);
-
- while (1) {
- printf("LOOP\n");
- CPC_DO_VMMCALL(CPC_GUEST_START_TRACK, 0);
- *(uint8_t *)(buf + L1_LINESIZE * 15) = 1;
- CPC_DO_VMMCALL(CPC_GUEST_STOP_TRACK, 0);
- }
-}