virhostcpu: Expose virHostCPUStatsAssign

We will need this function shortly when implementing
nodeGetCPUStats in the test driver.

Signed-off-by: Tomáš Ryšavý <tom.rysavy.0@gmail.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Tomáš Ryšavý 2016-09-15 10:27:02 +02:00 committed by Michal Privoznik
parent 1ec22be550
commit 63f388c99d
3 changed files with 6 additions and 1 deletions

View File

@ -1095,6 +1095,7 @@ virHostCPUGetOnlineBitmap;
virHostCPUGetPresentBitmap; virHostCPUGetPresentBitmap;
virHostCPUGetStats; virHostCPUGetStats;
virHostCPUGetThreadsPerSubcore; virHostCPUGetThreadsPerSubcore;
virHostCPUStatsAssign;
virHostMemAllocPages; virHostMemAllocPages;
virHostMemGetCellsFree; virHostMemGetCellsFree;
virHostMemGetFreePages; virHostMemGetFreePages;

View File

@ -781,7 +781,7 @@ virHostCPUGetInfoPopulateLinux(FILE *cpuinfo,
return ret; return ret;
} }
static int int
virHostCPUStatsAssign(virNodeCPUStatsPtr param, virHostCPUStatsAssign(virNodeCPUStatsPtr param,
const char *name, const char *name,
unsigned long long value) unsigned long long value)

View File

@ -53,4 +53,8 @@ int virHostCPUGetInfo(virArch hostarch,
int virHostCPUGetKVMMaxVCPUs(void); int virHostCPUGetKVMMaxVCPUs(void);
int virHostCPUStatsAssign(virNodeCPUStatsPtr param,
const char *name,
unsigned long long value);
#endif /* __VIR_HOSTCPU_H__*/ #endif /* __VIR_HOSTCPU_H__*/