[PATCH 1/8] virhostcpu: Expose virHostCPUStatsAssign

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

 



We will need this function in the next patch.

Signed-off-by: Tomáš Ryšavý <tom.rysavy.0@xxxxxxxxx>
---
 src/libvirt_private.syms | 1 +
 src/util/virhostcpu.c    | 2 +-
 src/util/virhostcpu.h    | 4 ++++
 3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index d62c74c..0109f4f 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -1093,6 +1093,7 @@ virHostCPUGetOnlineBitmap;
 virHostCPUGetPresentBitmap;
 virHostCPUGetStats;
 virHostCPUGetThreadsPerSubcore;
+virHostCPUStatsAssign;
 virHostMemAllocPages;
 virHostMemGetCellsFree;
 virHostMemGetFreePages;
diff --git a/src/util/virhostcpu.c b/src/util/virhostcpu.c
index 0f03ff8..b616664 100644
--- a/src/util/virhostcpu.c
+++ b/src/util/virhostcpu.c
@@ -781,7 +781,7 @@ virHostCPUGetInfoPopulateLinux(FILE *cpuinfo,
     return ret;
 }
 
-static int
+int
 virHostCPUStatsAssign(virNodeCPUStatsPtr param,
                       const char *name,
                       unsigned long long value)
diff --git a/src/util/virhostcpu.h b/src/util/virhostcpu.h
index bc9cf98..b048704 100644
--- a/src/util/virhostcpu.h
+++ b/src/util/virhostcpu.h
@@ -53,4 +53,8 @@ int virHostCPUGetInfo(virArch hostarch,
 
 int virHostCPUGetKVMMaxVCPUs(void);
 
+int virHostCPUStatsAssign(virNodeCPUStatsPtr param,
+                          const char *name,
+                          unsigned long long value);
+
 #endif /* __VIR_HOSTCPU_H__*/
-- 
2.9.3

--
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]