]> git.baikalelectronics.ru Git - kernel.git/commit
tools/kvm_stat: fix updates for dead guests
authorStefan Raspl <stefan.raspl@de.ibm.com>
Fri, 24 Aug 2018 12:03:57 +0000 (14:03 +0200)
committerRadim Krčmář <rkrcmar@redhat.com>
Thu, 30 Aug 2018 15:15:12 +0000 (17:15 +0200)
commit26b03f0b2a9032702788e682c742a8d6b3441482
tree654adc6f7cef41e5c4083b248043ee842b360701
parent756162e2d1ccf5431e621ab243eb1b85be1e4b9e
tools/kvm_stat: fix updates for dead guests

With pid filtering active, when a guest is removed e.g. via virsh shutdown,
successive updates produce garbage.
Therefore, we add code to detect this case and prevent further body updates.
Note that when displaying the help dialog via 'h' in this case, once we exit
we're stuck with the 'Collecting data...' message till we remove the filter.

Signed-off-by: Stefan Raspl <raspl@linux.ibm.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
tools/kvm/kvm_stat/kvm_stat