All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andres Lagar-Cavilla <andres@lagarcavilla.org>
To: xen-devel@lists.xen.org
Cc: ian.campbell@citrix.com, andres@gridcentric.ca, tim@xen.org,
	keir.xen@gmail.com, JBeulich@suse.com, ian.jackson@citrix.com,
	adin@gridcentric.ca
Subject: [PATCH 2 of 2] libxl: publish number of shared and paged pages
Date: Mon, 12 Mar 2012 15:53:28 -0400	[thread overview]
Message-ID: <a17bd526989dbdb93269.1331582008@xdev.gridcentric.ca> (raw)
In-Reply-To: <patchbomb.1331582006@xdev.gridcentric.ca>

 tools/libxl/libxl.c         |  3 ++-
 tools/libxl/libxl_types.idl |  1 +
 2 files changed, 3 insertions(+), 1 deletions(-)


This is information is currently not harvested from libxc.

Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>

diff -r 94ec84eeca5d -r a17bd526989d tools/libxl/libxl.c
--- a/tools/libxl/libxl.c
+++ b/tools/libxl/libxl.c
@@ -459,7 +459,8 @@ static void xcinfo2xlinfo(const xc_domai
         xlinfo->shutdown_reason  = ~0;
 
     xlinfo->current_memkb = PAGE_TO_MEMKB(xcinfo->tot_pages);
-    /* xlinfo->shared_memkb = PAGE_TO_MEMKB(xcinfo->shr_pages); */
+    xlinfo->shared_memkb = PAGE_TO_MEMKB(xcinfo->shr_pages);
+    xlinfo->paged_memkb = PAGE_TO_MEMKB(xcinfo->paged_pages);
     xlinfo->max_memkb = PAGE_TO_MEMKB(xcinfo->max_pages);
     xlinfo->cpu_time = xcinfo->cpu_time;
     xlinfo->vcpu_max_id = xcinfo->max_vcpu_id;
diff -r 94ec84eeca5d -r a17bd526989d tools/libxl/libxl_types.idl
--- a/tools/libxl/libxl_types.idl
+++ b/tools/libxl/libxl_types.idl
@@ -175,6 +175,7 @@ libxl_dominfo = Struct("dominfo",[
     ("shutdown_reason", libxl_shutdown_reason),
     ("current_memkb",   MemKB),
     ("shared_memkb", MemKB),
+    ("paged_memkb", MemKB),
     ("max_memkb",   MemKB),
     ("cpu_time",    uint64),
     ("vcpu_max_id", uint32),

  parent reply	other threads:[~2012-03-12 19:53 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-12 19:53 [PATCH 0 of 2] Propagate sharing and paging counts to libx{c/l} Andres Lagar-Cavilla
2012-03-12 19:53 ` [PATCH 1 of 2] Propagate domain shared pages via dominfo Andres Lagar-Cavilla
2012-03-13 10:41   ` Ian Campbell
2012-03-12 19:53 ` Andres Lagar-Cavilla [this message]
2012-03-13 10:42   ` [PATCH 2 of 2] libxl: publish number of shared and paged pages Ian Campbell
2012-03-13 14:14     ` Andres Lagar-Cavilla
2012-03-13 14:32       ` Ian Campbell
2012-03-13 14:40         ` Andres Lagar-Cavilla
2012-03-13 15:35           ` Ian Jackson
2012-03-13 15:40             ` Ian Campbell
2012-03-13 15:43               ` Ian Jackson
2012-03-13 15:52                 ` Ian Campbell
2012-03-13 16:08                   ` Ian Jackson
2012-03-13 15:43               ` Andres Lagar-Cavilla
2012-03-13 15:35       ` Ian Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a17bd526989dbdb93269.1331582008@xdev.gridcentric.ca \
    --to=andres@lagarcavilla.org \
    --cc=JBeulich@suse.com \
    --cc=adin@gridcentric.ca \
    --cc=andres@gridcentric.ca \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@citrix.com \
    --cc=keir.xen@gmail.com \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.