diff options
Diffstat (limited to 'util/debug.c')
| -rw-r--r-- | util/debug.c | 25 |
1 files changed, 0 insertions, 25 deletions
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 <sys/ioctl.h> -#include <fcntl.h> -#include <err.h> -#include <fcntl.h> -#include <unistd.h> -#include <stdint.h> -#include <stdlib.h> - -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); -} |
