From ebf88e5b8786f72d24e8104bd08f488ba967803e Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Wed, 10 Feb 2021 20:17:32 +0100 Subject: [PATCH] cgroups: log monitor and transient process entering Signed-off-by: Christian Brauner --- src/lxc/cgroups/cgfsng.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index eb58deaee..68b047b95 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -1483,6 +1483,8 @@ __cgfsng_ops static bool cgfsng_monitor_enter(struct cgroup_ops *ops, if (ret) return log_error_errno(false, errno, "Failed to enter cgroup \"%s\"", h->monitor_full_path); + TRACE("Moved monitor into %s cgroup via %d", h->monitor_full_path, h->cgfd_mon); + if (handler->transient_pid <= 0) continue; @@ -1490,6 +1492,8 @@ __cgfsng_ops static bool cgfsng_monitor_enter(struct cgroup_ops *ops, if (ret) return log_error_errno(false, errno, "Failed to enter cgroup \"%s\"", h->monitor_full_path); + TRACE("Moved transient process into %s cgroup via %d", h->monitor_full_path, h->cgfd_mon); + /* * we don't keep the fds for non-unified hierarchies around * mainly because we don't make use of them anymore after the -- 2.47.2