diff options
| author | Janosch Frank | 2016-01-11 16:17:59 +0100 |
|---|---|---|
| committer | Paolo Bonzini | 2016-01-26 15:58:13 +0100 |
| commit | 00842aaca5265a57b0a1f0248bde2f77f986e352 (patch) | |
| tree | 3699152d52b64c7b13dd1bb63201f2868c05f617 /scripts/switch-timer-api | |
| parent | scripts/kvm/kvm_stat: Fix output formatting (diff) | |
| download | qemu-00842aaca5265a57b0a1f0248bde2f77f986e352.tar.gz qemu-00842aaca5265a57b0a1f0248bde2f77f986e352.tar.xz 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 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions
