|
|
b939f5 |
From d7af5cddbbb9d93e3af5bff3753d29ff1c02cd8b Mon Sep 17 00:00:00 2001
|
|
|
b939f5 |
From: "Bryn M. Reeves" <bmr@redhat.com>
|
|
|
b939f5 |
Date: Mon, 15 May 2017 17:32:06 +0100
|
|
|
b939f5 |
Subject: [PATCH] [libvirt] fix per-process cgroup collection
|
|
|
b939f5 |
|
|
|
b939f5 |
The per-pid cgroup data is in a pseudofile named 'cgroup', and not
|
|
|
b939f5 |
'cgroups' as in commit 2523ad5.
|
|
|
b939f5 |
|
|
|
b939f5 |
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
b939f5 |
---
|
|
|
b939f5 |
sos/plugins/libvirt.py | 2 +-
|
|
|
b939f5 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
b939f5 |
|
|
|
b939f5 |
diff --git a/sos/plugins/libvirt.py b/sos/plugins/libvirt.py
|
|
|
b939f5 |
index cbb4fb4..674dd67 100644
|
|
|
b939f5 |
--- a/sos/plugins/libvirt.py
|
|
|
b939f5 |
+++ b/sos/plugins/libvirt.py
|
|
|
b939f5 |
@@ -65,7 +65,7 @@ class Libvirt(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin):
|
|
|
b939f5 |
# get details of processes of KVM hosts
|
|
|
b939f5 |
for pidfile in glob.glob("/var/run/libvirt/*/*.pid"):
|
|
|
b939f5 |
pid = open(pidfile).read().splitlines()[0]
|
|
|
b939f5 |
- for pf in ["environ", "cgroups", "maps", "numa_maps", "limits"]:
|
|
|
b939f5 |
+ for pf in ["environ", "cgroup", "maps", "numa_maps", "limits"]:
|
|
|
b939f5 |
self.add_copy_spec("/proc/%s/%s" % (pid, pf))
|
|
|
b939f5 |
|
|
|
b939f5 |
def postproc(self):
|
|
|
b939f5 |
--
|
|
|
b939f5 |
2.7.4
|
|
|
b939f5 |
|