mirror of https://gitee.com/openkylin/libvirt.git
Add a stub for virCgroupGetDomainTotalCpuStats
Commit 6515889
broke the build on FreeBSD:
In function `qemuDomainGetCPUStats':
/../../src/qemu/qemu_driver.c:16102:
undefined reference to `virCgroupGetDomainTotalCpuStats'
This commit is contained in:
parent
96d947ce03
commit
abf1daf0d7
|
@ -4260,6 +4260,17 @@ virCgroupGetCpuacctStat(virCgroupPtr group ATTRIBUTE_UNUSED,
|
|||
}
|
||||
|
||||
|
||||
int
|
||||
virCgroupGetDomainTotalCpuStats(virCgroupPtr group ATTRIBUTE_UNUSED,
|
||||
virTypedParameterPtr params ATTRIBUTE_UNUSED,
|
||||
int nparams ATTRIBUTE_UNUSED)
|
||||
{
|
||||
virReportSystemError(ENOSYS, "%s",
|
||||
_("Control groups not supported on this platform"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
virCgroupSetFreezerState(virCgroupPtr group ATTRIBUTE_UNUSED,
|
||||
const char *state ATTRIBUTE_UNUSED)
|
||||
|
|
Loading…
Reference in New Issue