Skip to contentSkip to conversation

scripts/kvm/kvm_stat: fix tracepoint provider

PATCH In review Laurent Vivier 2 participants 3 messages May 20, 2016 – May 23, 2016

lore
Share & tools
lore
#0 lore raw

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
index 78ffe83..c547c9b 100755
@@ -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
#1 lore raw
Quoted 20 lines · Laurent Vivier

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 +0 -0
index 78ffe83..c547c9b 100755

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

#2 lore raw
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 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
index 78ffe83..c547c9b 100755
@@ -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 that kvm_stat is moving to the kernel tree.

Thanks, that's fine.

Laurent