summaryrefslogtreecommitdiff
path: root/xen-hvm-stub.c
diff options
context:
space:
mode:
authorJanosch Frank <frankja@linux.vnet.ibm.com>2016-01-11 16:17:59 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2016-01-26 15:58:13 +0100
commit00842aaca5265a57b0a1f0248bde2f77f986e352 (patch)
tree3699152d52b64c7b13dd1bb63201f2868c05f617 /xen-hvm-stub.c
parentc887d9a25e877afe135e94fe582d5c58a2fd4ee2 (diff)
downloadqemu-00842aaca5265a57b0a1f0248bde2f77f986e352.tar.gz
qemu-00842aaca5265a57b0a1f0248bde2f77f986e352.tar.bz2
qemu-00842aaca5265a57b0a1f0248bde2f77f986e352.zip
scripts/kvm/kvm_stat: Cleanup and pre-init perf_event_attr
All initializations of the ctypes struct that don't need additional information were moved to its init method. The unneeded initializations for sample_type and sample_period were removed as they do not affect the counters that are read. This improves readability of the setup_event_attribute by halfing its LOC. Signed-off-by: Janosch Frank <frankja@linux.vnet.ibm.com> Message-Id: <1452525484-32309-30-git-send-email-frankja@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'xen-hvm-stub.c')
0 files changed, 0 insertions, 0 deletions