81468d73 | 07-Jun-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: fix undue use of initial sleeptime
We should not use the initial sleeptime for any key press that does not switch to a different screen, as that introduces an unaesthetic flicker due
tools/kvm_stat: fix undue use of initial sleeptime
We should not use the initial sleeptime for any key press that does not switch to a different screen, as that introduces an unaesthetic flicker due to two updates in quick succession.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
124c2fc9 | 07-Jun-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: fix event counts display for interrupted intervals
When an update interval is interrupted via key press (e.g. space), the 'Current' column value is calculated using the full interval
tools/kvm_stat: fix event counts display for interrupted intervals
When an update interval is interrupted via key press (e.g. space), the 'Current' column value is calculated using the full interval length instead of the elapsed time, which leads to lower than actual numbers. Furthermore, the value should be rounded, not truncated. This is fixed by using the actual elapsed time for the calculation.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
e55fe3cc | 10-Mar-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: add '%Total' column
Add column '%Total' next to 'Total' for easier comparison of numbers between hosts.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Marc Hartmayer <mhartm
tools/kvm_stat: add '%Total' column
Add column '%Total' next to 'Total' for easier comparison of numbers between hosts.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Marc Hartmayer <mhartmay@linux.vnet.ibm.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
9f114a03 | 10-Mar-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: add interactive command 'r'
Provide an interactive command to reset the tracepoint statistics. Requires some extra work for debugfs, as the counters cannot be reset.
On the up side,
tools/kvm_stat: add interactive command 'r'
Provide an interactive command to reset the tracepoint statistics. Requires some extra work for debugfs, as the counters cannot be reset.
On the up side, this offers us the opportunity to have debugfs values reset on startup and whenever a filter is modified, becoming consistent with the tracepoint provider. As a bonus, 'kvmstat -dt' will now provide useful output, instead of mixing values in totally different orders of magnitude. Furthermore, we avoid unnecessary resets when any of the filters is "changed" interactively to the previous value.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Acked-by: Janosch Frank <frankja@linux.vnet.ibm.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
4443084f | 10-Mar-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: add interactive command 'c'
Provide a real simple way to erase any active filter.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Reviewed-by: Marc Hartmayer <mhartmay@linux.
tools/kvm_stat: add interactive command 'c'
Provide a real simple way to erase any active filter.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Reviewed-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
f9ff1087 | 10-Mar-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: add option '--guest'
Add a new option '-g'/'--guest' to select a particular process by providing the QEMU guest name. Notes: - The logic to figure out the pid corresponding to the gu
tools/kvm_stat: add option '--guest'
Add a new option '-g'/'--guest' to select a particular process by providing the QEMU guest name. Notes: - The logic to figure out the pid corresponding to the guest name might look scary, but works pretty reliably in practice; in the unlikely event that it returns add'l flukes, it will bail out and hint at using '-p' instead, no harm done. - Mixing '-g' and '-p' is possible, and the final instance specified on the command line is the significant one. This is consistent with current behavior for '-p' which, if specified multiple times, also regards the final instance as the significant one.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Reviewed-by: Janosch Frank <frankja@linux.vnet.ibm.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
645c1728 | 10-Mar-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: remove regex filter on empty input
Behavior on empty/0 input for regex and pid filtering was inconsistent, as the former would keep the current filter, while the latter would (natura
tools/kvm_stat: remove regex filter on empty input
Behavior on empty/0 input for regex and pid filtering was inconsistent, as the former would keep the current filter, while the latter would (naturally) remove any pid filtering. Make things consistent by falling back to the default filter on empty input for the regex filter dialogue.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Reviewed-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
72187dfa | 10-Mar-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: display regex when set to non-default
If a user defines a regex filter through the interactive command, display the active regex in the header's second line.
Signed-off-by: Stefan R
tools/kvm_stat: display regex when set to non-default
If a user defines a regex filter through the interactive command, display the active regex in the header's second line.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Reviewed-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
0152c20f | 10-Mar-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: print error messages on faulty pid filter input
Print helpful messages in case users enter invalid input or invalid pids in the interactive pid filter dialogue.
Signed-off-by: Stefa
tools/kvm_stat: print error messages on faulty pid filter input
Print helpful messages in case users enter invalid input or invalid pids in the interactive pid filter dialogue.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Reviewed-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
be03ea3b | 10-Mar-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: remove pid filter on empty input
Improve consistency in the interactive dialogue for pid filtering by removing any filters on empty input (in addition to entering 0).
Signed-off-by:
tools/kvm_stat: remove pid filter on empty input
Improve consistency in the interactive dialogue for pid filtering by removing any filters on empty input (in addition to entering 0).
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Reviewed-by: Janosch Frank <frankja@linux.vnet.ibm.com> Reviewed-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
a24e85f6 | 10-Mar-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: display guest name when using pid filter
When running kvm_stat with option '-p' to filter per process, display the QEMU guest name next to the pid, if available.
Signed-off-by: Stef
tools/kvm_stat: display guest name when using pid filter
When running kvm_stat with option '-p' to filter per process, display the QEMU guest name next to the pid, if available.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Reviewed-By: Janosch Frank <frankja@linux.vnet.ibm.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
1eaa2f90 | 10-Mar-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: document list of interactive commands
Apart from the source code, there does not seem to be a place that documents the interactive capabilities of kvm_stat yet.
Signed-off-by: Stefa
tools/kvm_stat: document list of interactive commands
Apart from the source code, there does not seem to be a place that documents the interactive capabilities of kvm_stat yet.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
184b2d23 | 10-Mar-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: reduce perceived idle time on filter updates
Whenever a user adds a filter, we * redraw the header immediately for a snappy response * print a message indicating to the user that we'
tools/kvm_stat: reduce perceived idle time on filter updates
Whenever a user adds a filter, we * redraw the header immediately for a snappy response * print a message indicating to the user that we're busy while the noticeable delay induced by updating all of the stats objects takes place * update the statistics ASAP (i.e. after 0.25s instead of 3s) to be consistent with behavior on startup To do so, we split the Tui's refresh() method to allow for drawing header and stats separately, and trigger a header refresh whenever we are about to do something that takes a while - like updating filters.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
692c7f6d | 10-Mar-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: full PEP8 compliance
Provides all missing empty lines as required for full PEP compliance.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Reviewed-by: Marc Hartmayer <mhartm
tools/kvm_stat: full PEP8 compliance
Provides all missing empty lines as required for full PEP compliance.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Reviewed-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
a1836069 | 10-Mar-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: fix trace setup glitch on field updates in TracepointProvider
Updating the fields of the TracepointProvider does not propagate changes to the tracepoints. This shows when a pid filte
tools/kvm_stat: fix trace setup glitch on field updates in TracepointProvider
Updating the fields of the TracepointProvider does not propagate changes to the tracepoints. This shows when a pid filter is enabled, whereby subsequent extensions of the fields of the Tracepoint provider (e.g. by toggling drilldown) will not modify the tracepoints as required. To reproduce, select a specific process via interactive command 'p', and enable drilldown via 'x' - none of the fields with the braces will appear although they should. The fix will always leave all available fields in the TracepointProvider enabled.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Based-on-text-by: Janosch Frank <frankja@linux.vnet.ibm.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
e0ba3876 | 10-Mar-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: fix misc glitches
Addresses - eliminate extra import - missing variable initialization - type redefinition from int to float - passing of int type argument instead of string - a coup
tools/kvm_stat: fix misc glitches
Addresses - eliminate extra import - missing variable initialization - type redefinition from int to float - passing of int type argument instead of string - a couple of PEP8-reported indentation/formatting glitches - remove unused variable drilldown in class Tui
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Reviewed-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
dadf1e78 | 10-Mar-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: handle SIGINT in log and batch modes
SIGINT causes ugly unhandled exceptions in log and batch mode, which we prevent by catching the exceptions accordingly.
Signed-off-by: Stefan Ra
tools/kvm_stat: handle SIGINT in log and batch modes
SIGINT causes ugly unhandled exceptions in log and batch mode, which we prevent by catching the exceptions accordingly.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Reviewed-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
9fc0adfc | 10-Mar-2017 |
Stefan Raspl <raspl@linux.vnet.ibm.com> |
tools/kvm_stat: catch curses exceptions only
The previous version was catching all exceptions, including SIGINT. We only want to catch the curses exceptions here.
Signed-off-by: Stefan Raspl <raspl
tools/kvm_stat: catch curses exceptions only
The previous version was catching all exceptions, including SIGINT. We only want to catch the curses exceptions here.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Reviewed-by: Janosch Frank <frankja@linux.vnet.ibm.com> Reviewed-by: Sascha Silbe <silbe@linux.vnet.ibm.com> Reviewed-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
fabc7128 | 18-May-2016 |
Janosch Frank <frankja@linux.vnet.ibm.com> |
tools: kvm_stat: Add comments
A lot of the code works with the perf events about which only sparse documentation was available until 2012. Having that information now, we can clarify what is done in
tools: kvm_stat: Add comments
A lot of the code works with the perf events about which only sparse documentation was available until 2012. Having that information now, we can clarify what is done in the code.
Signed-off-by: Janosch Frank <frankja@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
f0cf040f | 18-May-2016 |
Janosch Frank <frankja@linux.vnet.ibm.com> |
tools: kvm_stat: Introduce pid monitoring
Having stats for single VMs can help to determine the problem of a VM without the need of running other tools like perf.
The tracepoints already allowed pi
tools: kvm_stat: Introduce pid monitoring
Having stats for single VMs can help to determine the problem of a VM without the need of running other tools like perf.
The tracepoints already allowed pid level monitoring, but kvm_stat didn't have support for it till now. Support for the newly implemented debugfs vm monitoring was also implemented.
Signed-off-by: Janosch Frank <frankja@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
c7d4fb5a | 19-Apr-2016 |
Hemant Kumar <hemant@linux.vnet.ibm.com> |
tools: kvm_stat: Powerpc related fixes
kvm_stat script is failing to execute on powerpc : # ./kvm_stat Traceback (most recent call last): File "./kvm_stat", line 825, in <module> main() Fil
tools: kvm_stat: Powerpc related fixes
kvm_stat script is failing to execute on powerpc : # ./kvm_stat Traceback (most recent call last): File "./kvm_stat", line 825, in <module> main() File "./kvm_stat", line 813, in main providers = get_providers(options) File "./kvm_stat", line 778, in get_providers providers.append(TracepointProvider()) File "./kvm_stat", line 416, in __init__ self.filters = get_filters() File "./kvm_stat", line 315, in get_filters if ARCH.exit_reasons: AttributeError: 'ArchPPC' object has no attribute 'exit_reasons'
This is because, its trying to access a non-defined attribute.
Also, the IOCTL number of RESET is incorrect for powerpc. The correct number has been added.
Signed-off-by: Hemant Kumar <hemant@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|