aboutsummaryrefslogtreecommitdiffstats
path: root/tools/kvm/kvm_stat/Makefile
diff options
context:
space:
mode:
authorJanosch Frank <frankja@linux.vnet.ibm.com>2016-05-18 13:26:21 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2016-05-25 16:12:03 +0200
commitf9bc9e65fbec1781f64effc6bcc3b6edc57f8d19 (patch)
tree91af2147067819e40930cfdfb7d29a9bfbca4933 /tools/kvm/kvm_stat/Makefile
parentkvm:vmx: more complete state update on APICv on/off (diff)
downloadlinux-dev-f9bc9e65fbec1781f64effc6bcc3b6edc57f8d19.tar.xz
linux-dev-f9bc9e65fbec1781f64effc6bcc3b6edc57f8d19.zip
tools: Add kvm_stat vm monitor script
This tool displays kvm vm exit statistics to ease vm monitoring. It takes its data from the kvm debugfs files or the vm tracepoints and outputs them as a curses ui or simple text. It was moved from qemu, as it is dependent on the kernel whereas qemu works with a large number of kernel versions, some of which may break the script. Signed-off-by: Janosch Frank <frankja@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/kvm/kvm_stat/Makefile')
-rw-r--r--tools/kvm/kvm_stat/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/kvm/kvm_stat/Makefile b/tools/kvm/kvm_stat/Makefile
new file mode 100644
index 000000000000..c639b8d30688
--- /dev/null
+++ b/tools/kvm/kvm_stat/Makefile
@@ -0,0 +1,5 @@
+BINDIR=usr/bin
+
+install:
+ mkdir -p $(INSTALL_ROOT)/$(BINDIR)
+ install -m 755 -p "kvm_stat" "$(INSTALL_ROOT)/$(BINDIR)/$(TARGET)"