|
Pablo Greco |
40546a |
From 86426efffd910c22c9cfadc50516883b606c6946 Mon Sep 17 00:00:00 2001
|
|
Pablo Greco |
40546a |
Message-Id: <86426efffd910c22c9cfadc50516883b606c6946@dist-git>
|
|
Pablo Greco |
40546a |
From: Pavel Hrdina <phrdina@redhat.com>
|
|
Pablo Greco |
40546a |
Date: Mon, 1 Jul 2019 17:06:03 +0200
|
|
Pablo Greco |
40546a |
Subject: [PATCH] vircgroup: fix MinGW build
|
|
Pablo Greco |
40546a |
MIME-Version: 1.0
|
|
Pablo Greco |
40546a |
Content-Type: text/plain; charset=UTF-8
|
|
Pablo Greco |
40546a |
Content-Transfer-Encoding: 8bit
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
Broken by commit <901d2b9c87>.
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
Pablo Greco |
40546a |
(cherry picked from commit baebd9f3d84b5cb86c7c6f35eb41cf9fb7e9b624)
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1689297
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
Pablo Greco |
40546a |
Message-Id: <bb4185916d7e3937b58f9019feb5abf3ba6e4823.1561993099.git.phrdina@redhat.com>
|
|
Pablo Greco |
40546a |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
Pablo Greco |
40546a |
---
|
|
Pablo Greco |
40546a |
src/util/vircgroup.c | 15 +++++++++++++++
|
|
Pablo Greco |
40546a |
1 file changed, 15 insertions(+)
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c
|
|
Pablo Greco |
40546a |
index 0ed83932ac..df38bb77e0 100644
|
|
Pablo Greco |
40546a |
--- a/src/util/vircgroup.c
|
|
Pablo Greco |
40546a |
+++ b/src/util/vircgroup.c
|
|
Pablo Greco |
40546a |
@@ -4335,6 +4335,21 @@ virCgroupSetMemory(virCgroupPtr group ATTRIBUTE_UNUSED,
|
|
Pablo Greco |
40546a |
}
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
+int
|
|
Pablo Greco |
40546a |
+virCgroupGetMemoryStat(virCgroupPtr group ATTRIBUTE_UNUSED,
|
|
Pablo Greco |
40546a |
+ unsigned long long *cache ATTRIBUTE_UNUSED,
|
|
Pablo Greco |
40546a |
+ unsigned long long *activeAnon ATTRIBUTE_UNUSED,
|
|
Pablo Greco |
40546a |
+ unsigned long long *inactiveAnon ATTRIBUTE_UNUSED,
|
|
Pablo Greco |
40546a |
+ unsigned long long *activeFile ATTRIBUTE_UNUSED,
|
|
Pablo Greco |
40546a |
+ unsigned long long *inactiveFile ATTRIBUTE_UNUSED,
|
|
Pablo Greco |
40546a |
+ unsigned long long *unevictable ATTRIBUTE_UNUSED)
|
|
Pablo Greco |
40546a |
+{
|
|
Pablo Greco |
40546a |
+ virReportSystemError(ENOSYS, "%s",
|
|
Pablo Greco |
40546a |
+ _("Control groups not supported on this platform"));
|
|
Pablo Greco |
40546a |
+ return -1;
|
|
Pablo Greco |
40546a |
+}
|
|
Pablo Greco |
40546a |
+
|
|
Pablo Greco |
40546a |
+
|
|
Pablo Greco |
40546a |
int
|
|
Pablo Greco |
40546a |
virCgroupGetMemoryUsage(virCgroupPtr group ATTRIBUTE_UNUSED,
|
|
Pablo Greco |
40546a |
unsigned long *kb ATTRIBUTE_UNUSED)
|
|
Pablo Greco |
40546a |
--
|
|
Pablo Greco |
40546a |
2.22.0
|
|
Pablo Greco |
40546a |
|