tools: kvm_stat: Powerpc related fixes
authorHemant Kumar <hemant@linux.vnet.ibm.com>
Tue, 19 Apr 2016 03:24:54 +0000 (08:54 +0530)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 25 May 2016 14:12:04 +0000 (16:12 +0200)
commitc7d4fb5a6ebea2d3e8b3a1c251cc30bc56319897
tree61973ed6b9c606cc0243ac07214dad175222d88e
parentfd41b5a96948f67785458c04e9ddb5ef619251d5
tools: kvm_stat: Powerpc related fixes

kvm_stat script is failing to execute on powerpc :
 # ./kvm_stat
Traceback (most recent call last):
  File "./kvm_stat", line 825, in <module>
    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 <hemant@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/kvm/kvm_stat/kvm_stat