[PATCH v2 0/3] domstats:add haltpolling time statistic interface

Yang Fei posted 3 patches 2 years, 9 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20210714122854.46848-1-yangfei85@huawei.com
There is a newer version of this series
src/libvirt_private.syms |   2 +
src/qemu/qemu_driver.c   |  28 +++++++++++
src/util/vircgroup.c     |  29 +----------
src/util/vircgrouppriv.h |   3 --
src/util/vircgroupv1.c   |   5 +-
src/util/vircgroupv2.c   |   5 +-
src/util/virutil.c       | 101 +++++++++++++++++++++++++++++++++++++++
src/util/virutil.h       |  12 +++++
8 files changed, 151 insertions(+), 34 deletions(-)
[PATCH v2 0/3] domstats:add haltpolling time statistic interface
Posted by Yang Fei 2 years, 9 months ago
This series add the ability to statistic the halt polling time when
VM execute HLT(arm is WFI).

v1:
https://listman.redhat.com/archives/libvir-list/2021-July/msg00029.html

changes from v1:
- Move virGetCgroupValueRaw to utils.c and rename it virGetValueRaw. So
  that we can call it to obtain halt polling time.
- Helper function virGetCpuHaltPollTime and virGetDebugFsKvmValue are
  added in a separate patch
- Use STRPREFIX to match the path prefix.
- Fix the logic that domstats will break when platform is non-linux,
  debugfs isn't mounted and so on.

Yang Fei (3):
  util: Move virGetCgroupValueRaw to vircgroup.c and rename it
    virGetValueRaw
  util: Add virGetCpuHaltPollTime and virGetDebugFsKvmValue
  qemu: Introduce qemuDomainGetStatsCpuHaltPollTime

 src/libvirt_private.syms |   2 +
 src/qemu/qemu_driver.c   |  28 +++++++++++
 src/util/vircgroup.c     |  29 +----------
 src/util/vircgrouppriv.h |   3 --
 src/util/vircgroupv1.c   |   5 +-
 src/util/vircgroupv2.c   |   5 +-
 src/util/virutil.c       | 101 +++++++++++++++++++++++++++++++++++++++
 src/util/virutil.h       |  12 +++++
 8 files changed, 151 insertions(+), 34 deletions(-)

-- 
2.23.0