[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH] scripts/kvm/kvm_stat: fix tracepoint provider
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-ppc] [PATCH] scripts/kvm/kvm_stat: fix tracepoint provider |
Date: |
Mon, 23 May 2016 15:51:36 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 |
On 20/05/2016 10:42, Laurent Vivier wrote:
> tracepoint provider on ppc is broken since:
>
> fc116ef kvm_stat: Add RESET support for perf event ioctl
>
> because the value used with ioctl() to reset the event queue is
> not valid on ppc.
>
> This patch defines the good value for ppc.
>
> Signed-off-by: Laurent Vivier <address@hidden>
> ---
> scripts/kvm/kvm_stat | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/scripts/kvm/kvm_stat b/scripts/kvm/kvm_stat
> index 78ffe83..c547c9b 100755
> --- a/scripts/kvm/kvm_stat
> +++ b/scripts/kvm/kvm_stat
> @@ -256,6 +256,7 @@ 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.
>
I've queued http://permalink.gmane.org/gmane.comp.emulators.qemu/407322
- however, note that kvm_stat is moving to the kernel tree.
Thanks,
Paolo