From: Ján Tomko Date: Fri, 21 Feb 2014 08:10:48 +0000 (+0100) Subject: Add a stub for virCgroupGetDomainTotalCpuStats X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=abf1daf0d794c2ea0ce91376f93e696cef8f155f;p=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' --- diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c index 268a4ae0eb..2dba10c644 100644 --- a/src/util/vircgroup.c +++ b/src/util/vircgroup.c @@ -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)