From: Stefan Raspl Subject: Re: [PATCH 16/17] tools/kvm_stat: add interactive command 'r' Date: Fri, 10 Mar 2017 13:32:35 +0100 Message-ID: <52b75757-b18c-9adc-5586-ca1c2259b99c@linux.vnet.ibm.com> References: <20170220154211.11882-1-raspl@linux.vnet.ibm.com> <20170220154211.11882-17-raspl@linux.vnet.ibm.com> Reply-To: raspl@linux.vnet.ibm.com Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: pbonzini@redhat.com, rkrcmar@redhat.com To: Janosch Frank , kvm@vger.kernel.org Return-path: Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:39765 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934534AbdCJMcp (ORCPT ); Fri, 10 Mar 2017 07:32:45 -0500 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v2ACQOMw138137 for ; Fri, 10 Mar 2017 07:32:44 -0500 Received: from e06smtp13.uk.ibm.com (e06smtp13.uk.ibm.com [195.75.94.109]) by mx0a-001b2d01.pphosted.com with ESMTP id 2937e75hrn-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 10 Mar 2017 07:32:41 -0500 Received: from localhost by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 10 Mar 2017 12:32:39 -0000 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 10.03.2017 12:37, Janosch Frank wrote: >> @@ -757,10 +766,11 @@ class DebugfsProvider(object): >> self.paths = filter(lambda x: "{}-".format(pid) in x, vms) >> >> else: >> - self.paths = [''] >> + self.paths = [] > > This is more a cleanup than new code, isn't it? Not quite: The former holds an element, while the latter doesn't. Therefore a subsequent 'for path in self.paths:' would execute with the former version, but won't with the latter. > [...] >> @@ -1188,7 +1224,7 @@ Interactive Commands: >> g filter by guest name >> p filter by PID >> q quit >> - x toggle reporting of stats for individual child trace events >> + r reset stats >> Press any other key to refresh statistics immediately. >> """ > > This is inconsistent to the part below. Yup, accidental deletion - good catch, thanks! Ciao, Stefan