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>
This commit is contained in:

committed by
Paolo Bonzini

orang tua
4443084fa0
melakukan
9f114a03c6
@@ -39,6 +39,8 @@ INTERACTIVE COMMANDS
|
||||
|
||||
*q*:: quit
|
||||
|
||||
*r*:: reset stats
|
||||
|
||||
*x*:: toggle reporting of stats for child trace events
|
||||
|
||||
Press any other key to refresh statistics immediately.
|
||||
|
Reference in New Issue
Block a user