提交 0db8b310 编写于 作者: S Stefan Raspl 提交者: Radim Krčmář

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 9f114a03 "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: NStefan Raspl <raspl@linux.ibm.com>
Signed-off-by: NRadim Krčmář <rkrcmar@redhat.com>
上级 710ab11a
......@@ -764,7 +764,6 @@ class DebugfsProvider(Provider):
else:
self.paths = []
self.do_read = True
self.reset()
def _verify_paths(self):
"""Remove invalid paths"""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册