Skip to content

Commit

Permalink
tools: Add kvm_stat vm monitor script
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
Janosch Frank authored and bonzini committed May 25, 2016
1 parent 3ce424e commit f9bc9e6
Show file tree
Hide file tree
Showing 3 changed files with 835 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ help:
@echo ' gpio - GPIO tools'
@echo ' hv - tools used when in Hyper-V clients'
@echo ' iio - IIO tools'
@echo ' kvm_stat - top-like utility for displaying kvm statistics'
@echo ' lguest - a minimal 32-bit x86 hypervisor'
@echo ' net - misc networking tools'
@echo ' perf - Linux performance measurement and analysis tool'
Expand Down Expand Up @@ -110,10 +111,13 @@ tmon_install:
freefall_install:
$(call descend,laptop/$(@:_install=),install)

kvm_stat_install:
$(call descend,kvm/$(@:_install=),install)

install: acpi_install cgroup_install cpupower_install hv_install firewire_install lguest_install \
perf_install selftests_install turbostat_install usb_install \
virtio_install vm_install net_install x86_energy_perf_policy_install \
tmon_install freefall_install objtool_install
tmon_install freefall_install objtool_install kvm_stat_install

acpi_clean:
$(call descend,power/acpi,clean)
Expand Down
5 changes: 5 additions & 0 deletions tools/kvm/kvm_stat/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
BINDIR=usr/bin

install:
mkdir -p $(INSTALL_ROOT)/$(BINDIR)
install -m 755 -p "kvm_stat" "$(INSTALL_ROOT)/$(BINDIR)/$(TARGET)"
Loading

0 comments on commit f9bc9e6

Please sign in to comment.