[libvirt] [PATCH v2 0/2] BSD: implement nodeGetCPUStats

Roman Bogorodskiy bogorodskiy at gmail.com
Sun Jan 19 17:55:44 UTC 2014


Updated patch which includes virsh update to not output
unsupported CPU stat fields.

For example, Linux output:

user:             1.0%
system:           1.0%
idle:            98.0%
iowait:           0.0%
usage:            2.0%

Includes iowait, doesn't have intr.

FreeBSD output:

user:             0,8%
system:           0,9%
idle:            97,5%
intr:             0,8%
usage:            2,5%

Includes intr, doesn't have iowait.


Roman Bogorodskiy (2):
  BSD: implement nodeGetCPUStats
  virsh: report only filled values in 'nodecpustats'

 include/libvirt/libvirt.h.in |   8 +++
 src/nodeinfo.c               | 104 +++++++++++++++++++++++++++++++++++++++
 tools/virsh-host.c           | 113 +++++++++++++++++++++++++++----------------
 3 files changed, 184 insertions(+), 41 deletions(-)

-- 
1.8.4.3




More information about the libvir-list mailing list