From nobody Tue May 7 01:06:47 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 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1501593850261364.3453863306106; Tue, 1 Aug 2017 06:24:10 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8346D12E521; Tue, 1 Aug 2017 13:24:06 +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 4C23567005; Tue, 1 Aug 2017 13:24:05 +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 31A58180B467; Tue, 1 Aug 2017 13:24:03 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v71DO23E016290 for ; Tue, 1 Aug 2017 09:24:02 -0400 Received: by smtp.corp.redhat.com (Postfix) id 78DC178386; Tue, 1 Aug 2017 13:24:02 +0000 (UTC) Received: from mx1.redhat.com (ext-mx07.extmail.prod.ext.phx2.redhat.com [10.5.110.31]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 711D77E642 for ; Tue, 1 Aug 2017 13:23:57 +0000 (UTC) Received: from mail-wr0-f198.google.com (mail-wr0-f198.google.com [209.85.128.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A8D7EC0E90AE for ; Tue, 1 Aug 2017 13:23:57 +0000 (UTC) Received: by mail-wr0-f198.google.com with SMTP id z36so2269521wrb.13 for ; Tue, 01 Aug 2017 06:23:57 -0700 (PDT) Received: from fiorina.brq.redhat.com (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id j29sm14016988wrb.9.2017.08.01.06.23.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Aug 2017 06:23:55 -0700 (PDT) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 8346D12E521 Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=libvir-list-bounces@redhat.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=uZ6mGiTxvpXu+jGZz5jRl64us7uRwjkDHtIjjo4ah4s=; b=VRdb4fClXOIBU1M+AuShi3O23bR+YiaSDyRHTSgaZTXeJeOmM4x0s10a6RAW44fz3s o1kv8CeBrH4iweXMXEhHsLRAXTIApOg43XysaTuj4c6edsFzeomvAFaseW6fStcgrEZO Q6fLzQowJE/PGrjaRQZhuQyVuK3NNvyl73l2Gx/XvSungaIkJliT9nj2590f2ORoqkLO OPOKvT6mHwh1ecVkBwS7FnSwMeuW+6lU/8Fd8VtXrdN0q9HMzgyWo5L0jV7hcWMJDvec B4Nh4maLLtpoagDI5EGYEEW9XaSpgRsLvtr+Dzy+j92Hgph3bCztDfLjiYEkNTdckt3f 8miw== X-Gm-Message-State: AIVw110h3EmgngiTqDyozm3/Zxgr/4DJaVn1KWQ8sKFFlWFuvJ6ErpP2 Pga9/+JZ1kZItW7GWddBiQk3/kbgWMy2+3Kt64yNTIcVyWyZguCWe0FWT2EoGi+F9zpYaIA9QZ7 NfKHM/4tpJA== X-Received: by 10.28.109.26 with SMTP id i26mr1499790wmc.64.1501593836270; Tue, 01 Aug 2017 06:23:56 -0700 (PDT) X-Received: by 10.28.109.26 with SMTP id i26mr1499781wmc.64.1501593836026; Tue, 01 Aug 2017 06:23:56 -0700 (PDT) From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Golembiovsk=C3=BD?= To: libvir-list@redhat.com Date: Tue, 1 Aug 2017 15:23:54 +0200 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?Tom=C3=A1=C5=A1=20Golembiovsk=C3=BD?= Subject: [libvirt] [PATCH python] include usable memory in virDomainMemoryStats 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-Type: text/plain; charset="utf-8" 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.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Tue, 01 Aug 2017 13:24:08 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Signed-off-by: Tom=C3=A1=C5=A1 Golembiovsk=C3=BD --- libvirt-override.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libvirt-override.c b/libvirt-override.c index 0abfc37..832e05c 100644 --- a/libvirt-override.c +++ b/libvirt-override.c @@ -398,6 +398,9 @@ libvirt_virDomainMemoryStats(PyObject *self ATTRIBUTE_U= NUSED, case VIR_DOMAIN_MEMORY_STAT_RSS: key =3D libvirt_constcharPtrWrap("rss"); break; + case VIR_DOMAIN_MEMORY_STAT_USABLE: + key =3D libvirt_constcharPtrWrap("usable"); + break; default: continue; } --=20 2.13.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list