From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH v1 16/19] tools/kvm_stat: add new interactive command 't' Date: Tue, 20 Jun 2017 14:34:08 +0200 Message-ID: <828a0b8f-f5d0-b11a-c2ef-b3b3f2c91e8c@redhat.com> References: <20170607190843.76869-1-raspl@linux.vnet.ibm.com> <20170607190843.76869-17-raspl@linux.vnet.ibm.com> <535a16ce-8f48-8446-5e4a-4d7e375086bd@redhat.com> <3ec6c83a-5554-2497-ed58-b6da6d3c6868@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: rkrcmar@redhat.com, frankja@linux.vnet.ibm.com To: raspl@linux.vnet.ibm.com, kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:56722 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751789AbdFTMeL (ORCPT ); Tue, 20 Jun 2017 08:34:11 -0400 In-Reply-To: <3ec6c83a-5554-2497-ed58-b6da6d3c6868@linux.vnet.ibm.com> Content-Language: en-US Sender: kvm-owner@vger.kernel.org List-ID: On 20/06/2017 11:10, Stefan Raspl wrote: > On 08.06.2017 18:21, Paolo Bonzini wrote: >> >> >> On 07/06/2017 21:08, Stefan Raspl wrote: >>> It might be handy to display the full history of event stats in some cases. >>> Since we have that available for debugfs, we offer a respective command to >>> display what's available. >>> Note that this command does not toggle - one merely has to reset the stats >>> via 'r' to do the next best thing to reverting the effect of 't'. >> >> It's not clear to me what this does... Can you explain it better? > > Sure: > While debugfs provides the total number of events since system > start, kvm_stat only displays the number of events since kvm_stat > was started. Press 't' to display the number of events since the > system was started. > Note that this command does not toggle, i.e. pressing it again will > not restore the number of events since kvm_stat was started. One > merely has to reset the stats via 'r' to do the next best thing to > reverting the effect of 't'. > > Is that more clear? Sorry for the stupid question, when can this be useful? :) Paolo