Skip to content

Commit

Permalink
tools/kvm_stat: don't reset stats when setting PID filter for debugfs
Browse files Browse the repository at this point in the history
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 9f114a0 "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 <[email protected]>
Signed-off-by: Radim Krčmář <[email protected]>
  • Loading branch information
Stefan-Raspl authored and rkrcmar committed Aug 30, 2018
1 parent 710ab11 commit 0db8b31
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tools/kvm/kvm_stat/kvm_stat
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,6 @@ class DebugfsProvider(Provider):
else:
self.paths = []
self.do_read = True
self.reset()

def _verify_paths(self):
"""Remove invalid paths"""
Expand Down

0 comments on commit 0db8b31

Please sign in to comment.