From: Paolo Bonzini Subject: Re: [PATCH 04/17] tools/kvm_stat: fix misc glitches Date: Thu, 9 Mar 2017 17:51:17 +0100 Message-ID: <961ec6b4-7dfe-7b86-2dc0-16e3e0d99205@redhat.com> References: <20170220154211.11882-1-raspl@linux.vnet.ibm.com> <20170220154211.11882-5-raspl@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: Stefan Raspl , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:43732 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754776AbdCIQvU (ORCPT ); Thu, 9 Mar 2017 11:51:20 -0500 In-Reply-To: <20170220154211.11882-5-raspl@linux.vnet.ibm.com> Sender: kvm-owner@vger.kernel.org List-ID: On 20/02/2017 16:41, Stefan Raspl wrote: > @@ -339,8 +338,7 @@ def get_filters(): > filters['kvm_exit'] = ('exit_reason', ARCH.exit_reasons) > return filters > > -libc = ctypes.CDLL('libc.so.6', use_errno=True) > -syscall = libc.syscall > +syscall = ctypes.CDLL('libc.so.6', use_errno=True).syscall > > class perf_event_attr(ctypes.Structure): > """Struct that holds the necessary data to set up a trace event. > @@ -950,11 +948,10 @@ class Tui(object): > while True: > self.refresh(sleeptime) > curses.halfdelay(int(sleeptime * 10)) > - sleeptime = 3 > + sleeptime = 3. > try: > char = self.screen.getkey() > if char == 'x': > - self.drilldown = not self.drilldown > self.update_drilldown() > if char == 'q': > break I'm not sure I understand the point of these; the rest is fine. Paolo