[PATCHv5 0/6] Add virNodeGetCPUTimeParameters() API

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

 



Hi,

This is v5 of virNodeGetCPUTimeParameters() 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
  v4->v5
    - Rebase latest libvirt GIT tree.
  v3->v4
    - Rebase this patch like virDomainGetMemoryParameters() from v2 patches. 
      (drop v3 patches except virsh subcommand)
    - Rename API name to virNodeGetCPUTimeParameters()
  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):
  [v5] virNodeGetCPUTimeParameters: Expose new API
  [v5] virNodeGetCPUTimeParameters: Define internal driver API
  [v5] virNodeGetCPUTimeParameters: Implement public API
  [v5] virNodeGetCPUTimeParameters: Implement remote protocol
  [v5] virNodeGetCPUTimeParameters: Implement virsh support
  [v5] virNodeGetCPUTimeParameters: Implement linux support

 daemon/remote.c              |   76 +++++++++++++++++++++++++
 include/libvirt/libvirt.h.in |   65 +++++++++++++++++++++
 src/driver.h                 |    8 +++
 src/libvirt.c                |   87 ++++++++++++++++++++++++++++
 src/libvirt_private.syms     |    1 +
 src/libvirt_public.syms      |    1 +
 src/lxc/lxc_driver.c         |    1 +
 src/nodeinfo.c               |  127 ++++++++++++++++++++++++++++++++++++++++++
 src/nodeinfo.h               |    5 +-
 src/qemu/qemu_driver.c       |    1 +
 src/remote/remote_driver.c   |   65 +++++++++++++++++++++
 src/remote/remote_protocol.x |   21 +++++++-
 src/uml/uml_driver.c         |    1 +
 tools/virsh.c                |  107 +++++++++++++++++++++++++++++++++++
 tools/virsh.pod              |    4 +
 15 files changed, 568 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]