25 May, 2016

5 commits

  • A lot of the code works with the perf events about which only sparse
    documentation was available until 2012. Having that information now,
    we can clarify what is done in the code.

    Signed-off-by: Janosch Frank
    Signed-off-by: Paolo Bonzini

    Janosch Frank
     
  • Having stats for single VMs can help to determine the problem of a VM
    without the need of running other tools like perf.

    The tracepoints already allowed pid level monitoring, but kvm_stat
    didn't have support for it till now. Support for the newly implemented
    debugfs vm monitoring was also implemented.

    Signed-off-by: Janosch Frank
    Signed-off-by: Paolo Bonzini

    Janosch Frank
     
  • kvm_stat script is failing to execute on powerpc :
    # ./kvm_stat
    Traceback (most recent call last):
    File "./kvm_stat", line 825, in
    main()
    File "./kvm_stat", line 813, in main
    providers = get_providers(options)
    File "./kvm_stat", line 778, in get_providers
    providers.append(TracepointProvider())
    File "./kvm_stat", line 416, in __init__
    self.filters = get_filters()
    File "./kvm_stat", line 315, in get_filters
    if ARCH.exit_reasons:
    AttributeError: 'ArchPPC' object has no attribute 'exit_reasons'

    This is because, its trying to access a non-defined attribute.

    Also, the IOCTL number of RESET is incorrect for powerpc. The correct
    number has been added.

    Signed-off-by: Hemant Kumar
    Signed-off-by: Paolo Bonzini

    Hemant Kumar
     
  • Converted from the Texinfo source in QEMU to asciidoc. The a2x
    incantation was provided by Janosch Frank.

    Signed-off-by: Paolo Bonzini

    Paolo Bonzini
     
  • This tool displays kvm vm exit statistics to ease vm monitoring. It
    takes its data from the kvm debugfs files or the vm tracepoints and
    outputs them as a curses ui or simple text.

    It was moved from qemu, as it is dependent on the kernel whereas qemu
    works with a large number of kernel versions, some of which may break
    the script.

    Signed-off-by: Janosch Frank
    Signed-off-by: Paolo Bonzini

    Janosch Frank