From 0f3b9caf389b486541614836bf180b64544615cb Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Sat, 13 Aug 2022 18:06:20 +0200 Subject: Fixup test/kvm, add target_set to ioctl tests as argument --- test/eviction.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/eviction.c') 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)); -- cgit v1.2.3-71-gd317