From nobody Sat May 4 16:41:55 2024 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=1568972002; cv=none; d=zoho.com; s=zohoarc; b=PZOMAOrbhbvD+eIqEQbtCDaYkGwJ4oYIbA29EYNnz5oINplwlP81yt79YgO7tzmoJvCSSovH44zRfiV/mDLHOIuA6Ryc2hjt84j/ljNE90KMaB0dyCPgGN0dti6L3k0LZJww83Vw7lWC/jIieZoQtoXtPf/ZE4rbmkUaLIen/fY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1568972002; 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=leAe1y6eemEgTCOa6rGH7DsiuafRFA94n6LDzWuWQ4I=; b=HpGaRFnSi7IcEgbbpdgFYya5tfZq1B/G5Wb2S05qG6PDILrDwFgeoo8U87keT1vxSVXabaHAij3QFf2CNn4kACztUjbRgGUeh26J0rDOnHcs0E9aoufz+n7gf0zZHZS2eaGmLqGkPoioZebCzYe21HGxyfVQ68/FtEmjFHL0Cdk= 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 1568972002556833.7112230474671; Fri, 20 Sep 2019 02:33:22 -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 0ECDE307CDFC; Fri, 20 Sep 2019 09:33:21 +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 DB43E60167; Fri, 20 Sep 2019 09:33:20 +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 99FD64EE6A; Fri, 20 Sep 2019 09:33:20 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x8K9XGSl027072 for ; Fri, 20 Sep 2019 05:33:16 -0400 Received: by smtp.corp.redhat.com (Postfix) id 8C38860C80; Fri, 20 Sep 2019 09:33:16 +0000 (UTC) Received: from antique-laptop.redhat.com (ovpn-200-46.brq.redhat.com [10.40.200.46]) by smtp.corp.redhat.com (Postfix) with ESMTP id ED12E60C18 for ; Fri, 20 Sep 2019 09:33:15 +0000 (UTC) From: Pavel Hrdina To: libvir-list@redhat.com Date: Fri, 20 Sep 2019 11:33:10 +0200 Message-Id: <0db0bc75753fb587b5068bf4b8d4c806179c6999.1568971939.git.phrdina@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Subject: [libvirt] [python PATCH 1/2] virDomainMemoryStats: include disk caches 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.49]); Fri, 20 Sep 2019 09:33:21 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Introduced in libvirt 4.6.0 by commit . Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=3D1683516 Signed-off-by: Pavel Hrdina Reviewed-by: Daniel P. Berrang=C3=A9 --- libvirt-override.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libvirt-override.c b/libvirt-override.c index ff2cfdf..3310b54 100644 --- a/libvirt-override.c +++ b/libvirt-override.c @@ -409,6 +409,11 @@ libvirt_virDomainMemoryStats(PyObject *self ATTRIBUTE_= UNUSED, key =3D libvirt_constcharPtrWrap("last_update"); break; #endif /* LIBVIR_CHECK_VERSION(2, 1, 0) */ +#if LIBVIR_CHECK_VERSION(4, 6, 0) + case VIR_DOMAIN_MEMORY_STAT_DISK_CACHES: + key =3D libvirt_constcharPtrWrap("disk_caches"); + break; +#endif /* LIBVIR_CHECK_VERSION(4, 6, 0) */ default: continue; } --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Sat May 4 16:41:55 2024 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=1568972015; cv=none; d=zoho.com; s=zohoarc; b=GjfikQ1jD5LoxZ9a7BJwew9KlJcjkPXbH2ps7LDCj8qfP5NzHrcF5jsVRxpekqAhOgy5+g7QLsPR7Fm0Yx+FY/hYSXkW6KJZCAYjD+N+3cQnJg4f0HKYyWIkEDsdQHYkWxBbkgd9SurGrSECkclGpqhE6z19FRpdinNNyKAiEnc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1568972015; 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=5lCX8QlWYCpGJPcISwprONhTMlQiFYt425Ma1HQa8jQ=; b=AqbtOtfZ3ytGPKrN9fQ3sQx2zGpg4Vg4oTA4pT6coyH4JzCpxTI3Y954eZs/1RzZ4tgVH7ZEucUuGlYmiUnBGYLzBNdqm+6ZFnaJaBXAathQPKvAH8yo9DLIAY8qwKrqglLszYp8jIFm0Aru3c3HguOIsmX8AbZNBM50HozHbUQ= 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 1568972015093584.6351082607395; Fri, 20 Sep 2019 02:33:35 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2C07B3082E6E; Fri, 20 Sep 2019 09:33:33 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F27EC100EBDA; Fri, 20 Sep 2019 09:33:32 +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 AFA5B180B536; Fri, 20 Sep 2019 09:33:32 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x8K9XHAh027088 for ; Fri, 20 Sep 2019 05:33:17 -0400 Received: by smtp.corp.redhat.com (Postfix) id C5AFB60C80; Fri, 20 Sep 2019 09:33:17 +0000 (UTC) Received: from antique-laptop.redhat.com (ovpn-200-46.brq.redhat.com [10.40.200.46]) by smtp.corp.redhat.com (Postfix) with ESMTP id F116E60C18 for ; Fri, 20 Sep 2019 09:33:16 +0000 (UTC) From: Pavel Hrdina To: libvir-list@redhat.com Date: Fri, 20 Sep 2019 11:33:11 +0200 Message-Id: <21db8538079fba93eb5b2103e8aaa3974275a30d.1568971939.git.phrdina@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Subject: [libvirt] [python PATCH 2/2] virDomainMemoryStats: include hugetlb pgalloc and pgfail 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.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Fri, 20 Sep 2019 09:33:33 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Introduced in libvirt 5.4.0 by commit . Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=3D1683516 Signed-off-by: Pavel Hrdina Reviewed-by: Daniel P. Berrang=C3=A9 --- libvirt-override.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libvirt-override.c b/libvirt-override.c index 3310b54..c76c447 100644 --- a/libvirt-override.c +++ b/libvirt-override.c @@ -414,6 +414,14 @@ libvirt_virDomainMemoryStats(PyObject *self ATTRIBUTE_= UNUSED, key =3D libvirt_constcharPtrWrap("disk_caches"); break; #endif /* LIBVIR_CHECK_VERSION(4, 6, 0) */ +#if LIBVIR_CHECK_VERSION(5, 4, 0) + case VIR_DOMAIN_MEMORY_STAT_HUGETLB_PGALLOC: + key =3D libvirt_constcharPtrWrap("hugetlb_pgalloc"); + break; + case VIR_DOMAIN_MEMORY_STAT_HUGETLB_PGFAIL: + key =3D libvirt_constcharPtrWrap("hugetlb_pgfail"); + break; +#endif /* LIBVIR_CHECK_VERSION(5, 4, 0) */ default: continue; } --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list