• E
    cpustats: report user and sys times · 759095f6
    Eric Blake 提交于
    Thanks to cgroups, providing user vs. system time of the overall
    guest is easy to add to our existing API.
    
    * include/libvirt/libvirt.h.in (VIR_DOMAIN_CPU_STATS_USERTIME)
    (VIR_DOMAIN_CPU_STATS_SYSTEMTIME): New constants.
    * src/util/virtypedparam.h (virTypedParameterArrayValidate)
    (virTypedParameterAssign): Enforce checking the result.
    * src/qemu/qemu_driver.c (qemuDomainGetPercpuStats): Fix offender.
    (qemuDomainGetTotalcpuStats): Implement new parameters.
    * tools/virsh.c (cmdCPUStats): Tweak output accordingly.
    759095f6
virsh.c 580.6 KB