[PATCHv7 0/12] Add virNodeGet{CPU,Memory}Stats() API

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

 



Hi, everyone.

I re-wrote virNodeGetCPUStats(), virNodeGetMemoryStats().
This time, I merged two APIs to same patch series.

Changes
  v6->v7 
    - Add cpuNum/cellNum arguments to return specified cpu/cell statistics only.
  v5->v6
    - Rename API name to virNodeGetCPUStats()
    - virsh nodecpustats subcommand returns raw/absolute cputime value by default,
      and add --percent option for printing utilization.
  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 (12):
  [v7] virNodeGetCPUStats: Expose new API
  [v7] virNodeGetCPUStats: Define internal driver API
  [v7] virNodeGetCPUTime: Implement public API
  [v7] virNodeGetCPUStats: Implement remote protocol
  [v7] virNodeGetCPUStats: Implement virsh support
  [v7] virNodeGetCPUStats: Implement linux support
  [v2] virNodeGetMemoryStats: Expose new API
  [v2] virNodeGetMemoryStats: Define internal driver API
  [v2] virNodeGetMemoryStats: Implement public API
  [v2] virNodeGetMemoryStats: Implement remote protocol
  [v2] virNodeGetMemoryStats: Implement virsh support
  [v2] virNodeGetMemoryStats: Implement linux support

 daemon/remote.c              |  154 ++++++++++++++++++++++
 include/libvirt/libvirt.h.in |  153 +++++++++++++++++++++-
 src/driver.h                 |   18 +++
 src/libvirt.c                |  178 +++++++++++++++++++++++++
 src/libvirt_private.syms     |    2 +
 src/libvirt_public.syms      |    6 +
 src/lxc/lxc_driver.c         |    2 +
 src/nodeinfo.c               |  299 ++++++++++++++++++++++++++++++++++++++++++
 src/nodeinfo.h               |   11 ++-
 src/qemu/qemu_driver.c       |    2 +
 src/remote/remote_driver.c   |  132 +++++++++++++++++++
 src/remote/remote_protocol.x |   42 ++++++-
 src/uml/uml_driver.c         |    2 +
 tools/virsh.c                |  196 +++++++++++++++++++++++++++
 tools/virsh.pod              |   12 ++
 15 files changed, 1206 insertions(+), 3 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]