aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorStefan Raspl <stefan.raspl@de.ibm.com>2017-12-11 06:25:20 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2017-12-14 03:25:42 -0500
commitfaa06650418bf28d07426fcfdc5213782fb131f6 (patch)
tree688021281743724fbe9c49cbf9299e0f4a4072f1 /tools
parent19e8e54f4309eaa438237aa1973fe40c331903d4 (diff)
tools/kvm_stat: fix drilldown in events-by-guests mode
When displaying debugfs events listed by guests, an attempt to switch to reporting of stats for individual child trace events results in garbled output. Reason is that when toggling drilldown, the update of the stats doesn't honor when events are displayed by guests, as indicated by Tui._display_guests. To reproduce, run 'kvm_stat -d' and press 'b' followed by 'x'. Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/kvm/kvm_stat/kvm_stat2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/kvm/kvm_stat/kvm_stat b/tools/kvm/kvm_stat/kvm_stat
index 884a74b8ca87..6347ad5d0d35 100755
--- a/tools/kvm/kvm_stat/kvm_stat
+++ b/tools/kvm/kvm_stat/kvm_stat
@@ -1360,7 +1360,7 @@ class Tui(object):
1360 if char == 'x': 1360 if char == 'x':
1361 self.update_drilldown() 1361 self.update_drilldown()
1362 # prevents display of current values on next refresh 1362 # prevents display of current values on next refresh
1363 self.stats.get() 1363 self.stats.get(self._display_guests)
1364 except KeyboardInterrupt: 1364 except KeyboardInterrupt:
1365 break 1365 break
1366 except curses.error: 1366 except curses.error: