]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgroups: log monitor and transient process entering
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 10 Feb 2021 19:17:32 +0000 (20:17 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 10 Feb 2021 19:20:34 +0000 (20:20 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index eb58deaeed23c4390394caf37f2fdfae84a8a252..68b047b951df0d4cd6b2ed8583eea105d921166d 100644 (file)
@@ -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