diff options
| author | Louis Burda <quent.burda@gmail.com> | 2022-08-13 18:06:20 +0200 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2022-08-13 18:15:36 +0200 |
| commit | 0f3b9caf389b486541614836bf180b64544615cb (patch) | |
| tree | 114368cf56f56075ff16c314645c00145b905b5d /test/access.c | |
| parent | 98babf91dcf166bc7644a3d70a90dac272f12a75 (diff) | |
| download | cachepc-0f3b9caf389b486541614836bf180b64544615cb.tar.gz cachepc-0f3b9caf389b486541614836bf180b64544615cb.zip | |
Fixup test/kvm, add target_set to ioctl tests as argument
Diffstat (limited to 'test/access.c')
| -rw-r--r-- | test/access.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/access.c b/test/access.c index 636471e..e7676a7 100644 --- a/test/access.c +++ b/test/access.c @@ -12,17 +12,18 @@ int main(int argc, const char **argv) { + uint32_t arg; size_t i, len; int fd, ret; - int count; fd = open("/proc/cachepc", O_RDONLY); if (fd < 0) err(1, "open"); for (i = 0; i < 50; i++) { - ret = ioctl(fd, CACHEPC_IOCTL_ACCESS_TEST, &count); + arg = 48; /* target set */ + ret = ioctl(fd, CACHEPC_IOCTL_TEST_ACCESS, &arg); if (ret == -1) err(1, "ioctl fail"); - printf("%i\n", count); + printf("%i\n", arg); } close(fd); |
