mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 21:15:20 +00:00
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:
parent
1ec22be550
commit
63f388c99d
@ -1095,6 +1095,7 @@ virHostCPUGetOnlineBitmap;
|
|||||||
virHostCPUGetPresentBitmap;
|
virHostCPUGetPresentBitmap;
|
||||||
virHostCPUGetStats;
|
virHostCPUGetStats;
|
||||||
virHostCPUGetThreadsPerSubcore;
|
virHostCPUGetThreadsPerSubcore;
|
||||||
|
virHostCPUStatsAssign;
|
||||||
virHostMemAllocPages;
|
virHostMemAllocPages;
|
||||||
virHostMemGetCellsFree;
|
virHostMemGetCellsFree;
|
||||||
virHostMemGetFreePages;
|
virHostMemGetFreePages;
|
||||||
|
@ -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)
|
||||||
|
@ -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__*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user