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/eviction.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/eviction.c')
| -rw-r--r-- | test/eviction.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/eviction.c b/test/eviction.c index 23e3430..a92ab73 100644 --- a/test/eviction.c +++ b/test/eviction.c @@ -13,12 +13,16 @@ int main(int argc, const char **argv) { uint16_t counts[64]; + uint32_t arg; size_t i, len; int fd, ret; fd = open("/proc/cachepc", O_RDONLY); - ret = ioctl(fd, CACHEPC_IOCTL_EVICTION_TEST, NULL); + arg = 48; + if (argc == 2) arg = atoi(argv[1]); + + ret = ioctl(fd, CACHEPC_IOCTL_TEST_EVICTION, &arg); if (ret == -1) err(1, "ioctl fail"); len = read(fd, counts, sizeof(counts)); |
