From nobody Sun Feb 8 19:55:23 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1569533093; cv=none; d=zoho.com; s=zohoarc; b=dClQn51jxcoi7Q91a/d3wig/fo0JgTowap/xp+Nye3rWPMsreTnXeo4eLY6djChyhm84QmdUKqkPPqtDYP7Ol4L4k+A0oE8meH9c6LT6iKtKfWWKIwINwuNqHeR4RbsioIQaSaKREZjSl9huEH2qM/9ACRPD+O/OqlvoTG3wM4E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1569533093; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=RLjIztAnaZk1AiqlDPAF2dWF7j7fFNWHdanPp36eCA8=; b=j0R6rBCwBkD6NOGTRKQf/Hgv5X5kbyfazcYYhPsr/DInPXFcA3VzY74E4AZJYHIhc38nszYKwZ30zNm0ttDEVFJo/es6P7Honf+Ll1y9zfo5Dsxly85887i6wWVU/bCTwH8bIS+n0UV+znkoqRAwqKAdq47MFx3uxmJQ6tguKBc= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 156953309353850.871748718408185; Thu, 26 Sep 2019 14:24:53 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BA005C05AA52; Thu, 26 Sep 2019 21:24:51 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 976776012C; Thu, 26 Sep 2019 21:24:51 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 5558E4E9F2; Thu, 26 Sep 2019 21:24:51 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x8QLIW2J018386 for ; Thu, 26 Sep 2019 17:18:32 -0400 Received: by smtp.corp.redhat.com (Postfix) id A9E2A60A9F; Thu, 26 Sep 2019 21:18:32 +0000 (UTC) Received: from worklaptop.redhat.com (ovpn-123-202.rdu2.redhat.com [10.10.123.202]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2529E60605; Thu, 26 Sep 2019 21:18:32 +0000 (UTC) From: Cole Robinson To: libvirt-list@redhat.com Date: Thu, 26 Sep 2019 17:18:41 -0400 Message-Id: <4cbb8e7e5f9d3e7f38092c4e7af6fdc39f22c338.1569532456.git.crobinso@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 2/2] vircgroup: Add some VIR_DEBUG statements X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Thu, 26 Sep 2019 21:24:52 +0000 (UTC) Content-Type: text/plain; charset="utf-8" These helped with debugging https://bugzilla.redhat.com/show_bug.cgi?id=3D1612383 Signed-off-by: Cole Robinson Reviewed-by: Pavel Hrdina --- src/util/vircgroup.c | 3 ++- src/util/vircgroupv2.c | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c index 825f62a97b..4f9d80666d 100644 --- a/src/util/vircgroup.c +++ b/src/util/vircgroup.c @@ -1157,7 +1157,8 @@ virCgroupNewMachineSystemd(const char *name, virCgroupFree(&init); =20 if (!path || STREQ(path, "/") || path[0] !=3D '/') { - VIR_DEBUG("Systemd didn't setup its controller"); + VIR_DEBUG("Systemd didn't setup its controller, path=3D%s", + NULLSTR(path)); return -2; } =20 diff --git a/src/util/vircgroupv2.c b/src/util/vircgroupv2.c index 0cb20e4896..f3f83c1e95 100644 --- a/src/util/vircgroupv2.c +++ b/src/util/vircgroupv2.c @@ -155,10 +155,14 @@ virCgroupV2CopyPlacement(virCgroupPtr group, const char *path, virCgroupPtr parent) { + VIR_DEBUG("group=3D%p path=3D%s parent=3D%p", group, path, parent); + if (path[0] =3D=3D '/') { if (VIR_STRDUP(group->unified.placement, path) < 0) return -1; } else { + VIR_DEBUG("parent->unified.placement=3D%s", parent->unified.placem= ent); + /* * parent =3D=3D "/" + path=3D"" =3D> "/" * parent =3D=3D "/libvirt.service" + path =3D=3D "" =3D> "/libvir= t.service" @@ -172,6 +176,7 @@ virCgroupV2CopyPlacement(virCgroupPtr group, return -1; } =20 + VIR_DEBUG("set group->unified.placement=3D%s", group->unified.placemen= t); return 0; } =20 @@ -200,6 +205,9 @@ virCgroupV2DetectPlacement(virCgroupPtr group, if (group->unified.placement) return 0; =20 + VIR_DEBUG("group=3D%p path=3D%s controllers=3D%s selfpath=3D%s", + group, path, controllers, selfpath); + /* controllers=3D"" indicates the cgroupv2 controller path */ if (STRNEQ_NULLABLE(controllers, "")) return 0; @@ -216,6 +224,7 @@ virCgroupV2DetectPlacement(virCgroupPtr group, path) < 0) return -1; =20 + VIR_DEBUG("set group->unified.placement=3D%s", group->unified.placemen= t); return 0; } =20 --=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list