From: Paolo Bonzini <pbonzini@redhat.com>
To: Hemant Kumar <hemant@linux.vnet.ibm.com>, qemu-ppc@nongnu.org
Cc: frankja@linux.vnet.ibm.com, qemu-devel@nongnu.org,
qemu-stable <qemu-stable@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] qemu/kvm_stat: Powerpc related fixes
Date: Tue, 10 May 2016 13:58:25 +0200 [thread overview]
Message-ID: <5731CCE1.6060300@redhat.com> (raw)
In-Reply-To: <1461036541-3220-1-git-send-email-hemant@linux.vnet.ibm.com>
On 19/04/2016 05:29, Hemant Kumar wrote:
> 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>
> ---
> scripts/kvm/kvm_stat | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/scripts/kvm/kvm_stat b/scripts/kvm/kvm_stat
> index 769d884..27d217a 100755
> --- a/scripts/kvm/kvm_stat
> +++ b/scripts/kvm/kvm_stat
> @@ -256,11 +256,13 @@ class ArchPPC(Arch):
> self.ioctl_numbers = IOCTL_NUMBERS
> self.ioctl_numbers['ENABLE'] = 0x20002400
> self.ioctl_numbers['DISABLE'] = 0x20002401
> + self.ioctl_numbers['RESET'] = 0x20002403
>
> # PPC comes in 32 and 64 bit and some generated ioctl
> # numbers depend on the wordsize.
> char_ptr_size = ctypes.sizeof(ctypes.c_char_p)
> self.ioctl_numbers['SET_FILTER'] = 0x80002406 | char_ptr_size << 16
> + self.exit_reasons = {}
>
> class ArchA64(Arch):
> def __init__(self):
>
Cc: qemu-stable@nongnu.org
Queued for 2.7 and 2.6.1, thanks.
Paolo
next prev parent reply other threads:[~2016-05-10 11:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-19 3:29 [Qemu-devel] [PATCH] qemu/kvm_stat: Powerpc related fixes Hemant Kumar
2016-05-10 11:58 ` Paolo Bonzini [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-04-19 3:24 Hemant Kumar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5731CCE1.6060300@redhat.com \
--to=pbonzini@redhat.com \
--cc=frankja@linux.vnet.ibm.com \
--cc=hemant@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=qemu-stable@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.