scripts/kvm/kvm_stat: fix tracepoint provider
PATCH 1/1 scripts/kvm/kvm_stat: fix tracepoint provider
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.
--- scripts/kvm/kvm_stat | 1 + 1 file changed, 1 insertion(+)
scripts/kvm/kvm_stat +1 -0
@@ -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.
Signature · 1 line
2.5.5
Quoted 20 lines · Laurent Vivier
tracepoint provider on ppc is broken since:
fc116ef
kvm_stat: Add RESET support for perf event ioctlbecause 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 <[email protected]>--- scripts/kvm/kvm_stat | 1 + 1 file changed, 1 insertion(+)scripts/kvm/kvm_stat +0
-0
scripts/kvm/kvm_stat class ArchPPC(Arch): · line 262
Quoted 7 lines
scripts/kvm/kvm_stat +1
-0@@ -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
Quoted 27 lines · Paolo Bonzini
Quoted 24 lines · Laurent Vivier
tracepoint provider on ppc is broken since:
fc116ef
kvm_stat: Add RESET support for perf event ioctlbecause 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 <[email protected]>--- scripts/kvm/kvm_stat | 1 + 1 file changed, 1 insertion(+)scripts/kvm/kvm_stat +1
-0@@ -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
Quoted 6 lines
scripts/kvm/kvm_stat class ArchPPC(Arch): · line 262
Quoted 3 lines
scripts/kvm/kvm_stat +0
-0# 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 thatkvm_statis moving to the kernel tree.
Thanks, that's fine.
Laurent