tools/kvm_stat: don't reset stats when setting PID filter for debugfs
authorStefan Raspl <stefan.raspl@de.ibm.com>
Fri, 24 Aug 2018 12:03:58 +0000 (14:03 +0200)
committerRadim Krčmář <rkrcmar@redhat.com>
Thu, 30 Aug 2018 15:15:12 +0000 (17:15 +0200)
commit0db8b3102368755242b44f2b30f93302c70e8e82
tree53381b8270926c5703b4c4aedad598139dd02431
parent710ab11ad9329d2d4b044405e328c994b19a2aa9
tools/kvm_stat: don't reset stats when setting PID filter for debugfs

When setting a PID filter in debugfs, we unnecessarily reset the
statistics, although there is no reason to do so. This behavior was
merely introduced with commit 9f114a03c6854f "tools/kvm_stat: add
interactive command 'r'", most likely to mimic the behavior of
the tracepoints provider in this respect. However, there are plenty
of differences between the two providers, so there is no reason not
to take advantage of the possibility to filter by PID without
resetting the statistics.

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