67c162b0 | 11-Dec-2017 |
Stefan Raspl <stefan.raspl@de.ibm.com> |
tools/kvm_stat: fix missing field update after filter change
When updating the fields filter, tracepoint events of fields previously not visible were not enabled, as TracepointProvider.update_fields
tools/kvm_stat: fix missing field update after filter change
When updating the fields filter, tracepoint events of fields previously not visible were not enabled, as TracepointProvider.update_fields() updated the member variable directly instead of using the setter, which triggers the event enable/disable. To reproduce, run 'kvm_stat -f kvm_exit', press 'c' to remove the filter, and notice that no add'l fields that do not match the regex 'kvm_exit' will appear. This issue was introduced by commit c469117df059 ("tools/kvm_stat: simplify initializers").
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
faa06650 | 11-Dec-2017 |
Stefan Raspl <stefan.raspl@de.ibm.com> |
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 garble
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>
show more ...
|
5c1954d2 | 25-Jun-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: add new interactive command 'b'
Toggle display total number of events by guest (debugfs only). When switching to display of events by guest, field filters remain active. I.e. the num
tools/kvm_stat: add new interactive command 'b'
Toggle display total number of events by guest (debugfs only). When switching to display of events by guest, field filters remain active. I.e. the number of events per guest reported considers only events matching the filters. Likewise with pid/guest filtering. Note that when switching to display of events by guest, DebugfsProvider remains to collect data for events as it did before, but the read() method summarizes the values by pid.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
ab7ef193 | 25-Jun-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: add new command line switch '-i'
It might be handy to display the full history of event stats to compare the current event distribution against any available historic data. Since we
tools/kvm_stat: add new command line switch '-i'
It might be handy to display the full history of event stats to compare the current event distribution against any available historic data. Since we have that available for debugfs, we offer a respective command line option to display what's available.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
61f381bb | 25-Jun-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: fix error on interactive command 'g'
Fix an instance where print_all_gnames() is called without the mandatory argument, resulting in a stack trace. To reproduce, simply press 'g' in
tools/kvm_stat: fix error on interactive command 'g'
Fix an instance where print_all_gnames() is called without the mandatory argument, resulting in a stack trace. To reproduce, simply press 'g' in interactive mode.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
865279c5 | 07-Jun-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: display guest list in pid/guest selection screens
Display a (possibly inaccurate) list of all running guests. Note that we leave a bit of extra room above the list for potential erro
tools/kvm_stat: display guest list in pid/guest selection screens
Display a (possibly inaccurate) list of all running guests. Note that we leave a bit of extra room above the list for potential error messages. Furthermore, we deliberately do not reject pids or guest names that are not in our list, as we cannot rule out that our fuzzy approach might be in error somehow.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
6667ae8f | 07-Jun-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: add new interactive command 'o'
Add new interactive command 'o' to toggle sorting by 'CurAvg/s' (default) and 'Total' columns.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com>
tools/kvm_stat: add new interactive command 'o'
Add new interactive command 'o' to toggle sorting by 'CurAvg/s' (default) and 'Total' columns.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
64eefad2 | 07-Jun-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: add new interactive command 's'
Add new command 's' to modify the update interval. Limited to a maximum of 25.5 sec and a minimum of 0.1 sec, since curses cannot handle longer and sh
tools/kvm_stat: add new interactive command 's'
Add new command 's' to modify the update interval. Limited to a maximum of 25.5 sec and a minimum of 0.1 sec, since curses cannot handle longer and shorter delays respectively.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
1fdea7b2 | 07-Jun-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: add new interactive command 'h'
Display interactive commands reference on 'h'. While at it, sort interactive commands alphabetically in various places.
Signed-off-by: Stefan Raspl <
tools/kvm_stat: add new interactive command 'h'
Display interactive commands reference on 'h'. While at it, sort interactive commands alphabetically in various places.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
38e89c37 | 07-Jun-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: rename 'Current' column to 'CurAvg/s'
'Current' can be misleading as it doesn't tell whether this is the amount of events in the last interval or the current average per second. Note
tools/kvm_stat: rename 'Current' column to 'CurAvg/s'
'Current' can be misleading as it doesn't tell whether this is the amount of events in the last interval or the current average per second. Note that this necessitates widening the respective column by one more character.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
f6d75310 | 07-Jun-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: make heading look a bit more like 'top'
Print header in standout font just like the 'top' command does.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Paolo B
tools/kvm_stat: make heading look a bit more like 'top'
Print header in standout font just like the 'top' command does.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
57253937 | 07-Jun-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: display message indicating lack of events
Give users some indication on the reason why no data is displayed on the screen yet.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com>
tools/kvm_stat: display message indicating lack of events
Give users some indication on the reason why no data is displayed on the screen yet.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
62d1b6cc | 07-Jun-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: show cursor in selection screens
Show the cursor in the interactive screens to specify pid, filter or guest name as an orientation for the user.
Signed-off-by: Stefan Raspl <raspl@l
tools/kvm_stat: show cursor in selection screens
Show the cursor in the interactive screens to specify pid, filter or guest name as an orientation for the user.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
099a2dfc | 07-Jun-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: move functions to corresponding classes
Quite a few of the functions are used only in a single class. Moving functions accordingly to improve the overall structure. Furthermore, intr
tools/kvm_stat: move functions to corresponding classes
Quite a few of the functions are used only in a single class. Moving functions accordingly to improve the overall structure. Furthermore, introduce a base class for the providers, which might also come handy for future extensions.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
c469117d | 07-Jun-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: simplify initializers
Simplify a couple of initialization routines: * TracepointProvider and DebugfsProvider: Pass pid into __init__() instead of switching to the requested value i
tools/kvm_stat: simplify initializers
Simplify a couple of initialization routines: * TracepointProvider and DebugfsProvider: Pass pid into __init__() instead of switching to the requested value in an extra call after initializing to the default first. * Pass a single options object into Stats.__init__(), delaying options evaluation accordingly, instead of evaluating options first and passing several parts of the options object to Stats.__init__() individually. * Eliminate Stats.update_provider_pid(), since this 2-line function is now used in a single place only. * Remove extra call to update_drilldown() in Tui.__init__() by getting the value of options.fields right initially when parsing options. * Simplify get_providers() logic. * Avoid duplicate fields initialization by handling it once in the providers' __init__() methods.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
42a947b7 | 07-Jun-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: removed unused function
Function available_fields() is not used in any place.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Reviewed-by: Janosch Frank <frankja@linux.vnet.i
tools/kvm_stat: removed unused function
Function available_fields() is not used in any place.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Reviewed-by: Janosch Frank <frankja@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
5a7d11f8 | 07-Jun-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: simplify line print logic
Simplify line print logic for header and data lines in interactive mode as previously suggested by Radim. While at it, add a space between the first two col
tools/kvm_stat: simplify line print logic
Simplify line print logic for header and data lines in interactive mode as previously suggested by Radim. While at it, add a space between the first two columns to avoid the total bleeding into the event name. Furthermore, for column 'Current', differentiate between no events being reported (empty 'Current' column) vs the case where events were reported but the average was rounded down to zero ('0' in 'Current column), for the folks who appreciate the difference. Finally: Only skip events which were not reported at all yet, instead of events that don't have a value in the current interval. Considered using constants for the field widths in the format strings. However, that would make things a bit more complicated, and considering that there are only two places where output happens, I figured it isn't worth the trouble.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
2da9d4aa | 07-Jun-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: remove unnecessary header redraws
Certain interactive commands will not modify any information displayed in the header, hence we can skip them.
Signed-off-by: Stefan Raspl <raspl@li
tools/kvm_stat: remove unnecessary header redraws
Certain interactive commands will not modify any information displayed in the header, hence we can skip them.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|