[PATCH 0/6] Add virNodeGetCpuTime() API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, everyone.

I wrote new API called virNodeGetCpuTime().
It returns cumulative cpu time of the node from /proc/stat since node boots up.

Previous discussion is here.

  http://www.mail-archive.com/libvir-list@xxxxxxxxxx/msg32552.html

Minoru Usui (6):
  [1/6] virNodeGetCpuTime: Expose new API
  [2/6] virNodeGetCpuTime: Define internal driver API
  [3/6] virNodeGetCpuTime: Implement public API
  [4/6] virNodeGetCpuTime: Implement remote protocol
  [5/6] virNodeGetCpuTime: Implement virsh support
  [6/6] virNodeGetCpuTime: Implement linux support

 daemon/remote.c                     |   23 ++++++++++++
 daemon/remote_dispatch_prototypes.h |    8 ++++
 daemon/remote_dispatch_ret.h        |    1 +
 daemon/remote_dispatch_table.h      |    5 +++
 include/libvirt/libvirt.h.in        |   26 ++++++++++++++
 src/driver.h                        |    4 ++
 src/esx/esx_driver.c                |    1 +
 src/libvirt.c                       |   38 ++++++++++++++++++++
 src/libvirt_private.syms            |    1 +
 src/libvirt_public.syms             |    1 +
 src/libxl/libxl_driver.c            |    1 +
 src/lxc/lxc_driver.c                |    1 +
 src/nodeinfo.c                      |   60 +++++++++++++++++++++++++++++++
 src/nodeinfo.h                      |    2 +-
 src/openvz/openvz_driver.c          |    1 +
 src/phyp/phyp_driver.c              |    1 +
 src/qemu/qemu_driver.c              |    1 +
 src/remote/remote_driver.c          |   27 ++++++++++++++
 src/remote/remote_protocol.c        |   15 ++++++++
 src/remote/remote_protocol.h        |   11 ++++++
 src/remote/remote_protocol.x        |   10 +++++-
 src/remote_protocol-structs         |    6 +++
 src/test/test_driver.c              |    1 +
 src/uml/uml_driver.c                |    1 +
 src/vbox/vbox_tmpl.c                |    1 +
 src/vmware/vmware_driver.c          |    1 +
 src/xen/xen_driver.c                |    1 +
 src/xenapi/xenapi_driver.c          |    1 +
 tools/virsh.c                       |   66 +++++++++++++++++++++++++++++++++++
 tools/virsh.pod                     |    6 +++
 30 files changed, 320 insertions(+), 2 deletions(-)

-- 
Minoru Usui <usui@xxxxxxxxxxxxxxxxx>

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]