From 0c825583fc20f1b91c56e1aaf450d6a753d24658 Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Thu, 2 Feb 2023 18:38:00 -0600 Subject: qemu-pagestep is quasi-realtime when suppresing slow kernel logging --- util/debug.c | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 util/debug.c (limited to 'util/debug.c') diff --git a/util/debug.c b/util/debug.c deleted file mode 100644 index bfc8129..0000000 --- a/util/debug.c +++ /dev/null @@ -1,25 +0,0 @@ -#include "cachepc/uapi.h" - -#include -#include -#include -#include -#include -#include -#include - -int -main(int argc, const char **argv) -{ - uint32_t arg; - int fd, ret; - - fd = open("/dev/kvm", O_RDONLY); - if (fd < 0) err(1, "open"); - - arg = argc > 1 ? atoi(argv[1]) : 1; - ret = ioctl(fd, KVM_CPC_DEBUG, &arg); - if (ret == -1) err(1, "ioctl KVM_CPC_DEBUG"); - - close(fd); -} -- cgit v1.2.3-71-gd317