summaryrefslogtreecommitdiffstats
path: root/test/eviction.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/eviction.c')
-rw-r--r--test/eviction.c6
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));