Re: [PATCH 04/17] tools/kvm_stat: fix misc glitches

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux