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

[libvirt] [PATCHv3 0/6] Add virNodeGetCpuTime() API



Hi,

This is v3 of virNodeGetCpuTime() API.
It returns cpu utilization or 
cumulative cpu time of the node from /proc/stat since node boots up.
This patch only supports linux host.

Changes
  v2->v3
    - Change user I/F. It is able to request what the user want by the @flags.
    - Minor change of virsh nodecputime I/F.
  v1->v2 
    - Change user I/F like virDomainGetMemoryStats()
    - It can return either cpu utilization or cumulative cpu time of the node
      depends on each driver.

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

 daemon/remote.c                     |   46 +++++++++++++++++++
 daemon/remote_dispatch_args.h       |    1 +
 daemon/remote_dispatch_prototypes.h |    8 +++
 daemon/remote_dispatch_ret.h        |    1 +
 daemon/remote_dispatch_table.h      |    5 ++
 include/libvirt/libvirt.h.in        |   50 +++++++++++++++++++++
 src/driver.h                        |    8 +++
 src/esx/esx_driver.c                |    1 +
 src/libvirt.c                       |   79 ++++++++++++++++++++++++++++++++
 src/libvirt_private.syms            |    1 +
 src/libvirt_public.syms             |    5 ++
 src/libxl/libxl_driver.c            |    1 +
 src/lxc/lxc_driver.c                |    1 +
 src/nodeinfo.c                      |   78 ++++++++++++++++++++++++++++++++
 src/nodeinfo.h                      |    5 ++-
 src/openvz/openvz_driver.c          |    1 +
 src/phyp/phyp_driver.c              |    1 +
 src/qemu/qemu_driver.c              |    1 +
 src/remote/remote_driver.c          |   37 +++++++++++++++
 src/remote/remote_protocol.c        |   22 +++++++++
 src/remote/remote_protocol.h        |   20 ++++++++
 src/remote/remote_protocol.x        |   15 ++++++-
 src/remote_protocol-structs         |   10 ++++
 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                       |   84 +++++++++++++++++++++++++++++++++++
 tools/virsh.pod                     |    4 ++
 31 files changed, 489 insertions(+), 2 deletions(-)
-- 
Minoru Usui <usui mxm nes nec co jp>


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