From: Andres Lagar-Cavilla <andres@lagarcavilla.org>
To: xen-devel@lists.xensource.com
Cc: ian.jackson@citrix.com, andres@gridcentric.ca, tim@xen.org,
ian.campbell@citrix.com, adin@gridcentric.ca
Subject: [PATCH 5 of 8] Tools: Expose to libxc the total number of shared frames and space saved
Date: Fri, 09 Dec 2011 18:15:55 -0500 [thread overview]
Message-ID: <6e8b8fb2c8b23e39d910.1323472555@xdev.gridcentric.ca> (raw)
In-Reply-To: <patchbomb.1323472550@xdev.gridcentric.ca>
tools/libxc/xc_private.c | 10 ++++++++++
tools/libxc/xenctrl.h | 4 ++++
2 files changed, 14 insertions(+), 0 deletions(-)
Signed-off-by: Adin Scannell <adin@scannell.ca>
diff -r a22140d92931 -r 6e8b8fb2c8b2 tools/libxc/xc_private.c
--- a/tools/libxc/xc_private.c
+++ b/tools/libxc/xc_private.c
@@ -533,6 +533,16 @@ long xc_maximum_ram_page(xc_interface *x
return do_memory_op(xch, XENMEM_maximum_ram_page, NULL, 0);
}
+long xc_sharing_freed_pages(xc_interface *xch)
+{
+ return do_memory_op(xch, XENMEM_get_sharing_freed_pages, NULL, 0);
+}
+
+long xc_sharing_used_frames(xc_interface *xch)
+{
+ return do_memory_op(xch, XENMEM_get_sharing_shared_pages, NULL, 0);
+}
+
long long xc_domain_get_cpu_usage( xc_interface *xch, domid_t domid, int vcpu )
{
DECLARE_DOMCTL;
diff -r a22140d92931 -r 6e8b8fb2c8b2 tools/libxc/xenctrl.h
--- a/tools/libxc/xenctrl.h
+++ b/tools/libxc/xenctrl.h
@@ -1227,6 +1227,10 @@ int xc_mmuext_op(xc_interface *xch, stru
/* System wide memory properties */
long xc_maximum_ram_page(xc_interface *xch);
+long xc_sharing_freed_pages(xc_interface *xch);
+
+long xc_sharing_used_frames(xc_interface *xch);
+
/* Get current total pages allocated to a domain. */
long xc_get_tot_pages(xc_interface *xch, uint32_t domid);
next prev parent reply other threads:[~2011-12-09 23:15 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-09 23:15 [PATCH 0 of 8] Tools: Memory sharing interface updates Andres Lagar-Cavilla
2011-12-09 23:15 ` [PATCH 1 of 8] Tools: Do not assume sharing target is dom0 in libxc wrappers Andres Lagar-Cavilla
2011-12-12 9:50 ` Ian Campbell
2011-12-09 23:15 ` [PATCH 2 of 8] Tools: Update libxc mem sharing interface Andres Lagar-Cavilla
2011-12-12 9:56 ` Ian Campbell
2011-12-09 23:15 ` [PATCH 3 of 8] Tools: Update memshr tool to use new sharing API Andres Lagar-Cavilla
2011-12-12 10:13 ` Ian Campbell
2011-12-13 4:18 ` Andres Lagar-Cavilla
2011-12-12 12:14 ` Ian Jackson
2011-12-09 23:15 ` [PATCH 4 of 8] Tools: Add a sharing command to xl for information about shared pages Andres Lagar-Cavilla
2011-12-12 10:26 ` Ian Campbell
2011-12-09 23:15 ` Andres Lagar-Cavilla [this message]
2011-12-12 10:39 ` [PATCH 5 of 8] Tools: Expose to libxc the total number of shared frames and space saved Ian Campbell
2011-12-13 3:43 ` Andres Lagar-Cavilla
2011-12-13 17:08 ` Adin Scannell
2011-12-14 10:47 ` Ian Campbell
2011-12-09 23:15 ` [PATCH 6 of 8] Tools: Allow libxl/xl to expose " Andres Lagar-Cavilla
2011-12-12 10:43 ` Ian Campbell
2011-12-13 17:13 ` Adin Scannell
2011-12-09 23:15 ` [PATCH 7 of 8] Tools: Libxc wrappers to add shared pages to physmap Andres Lagar-Cavilla
2011-12-12 10:48 ` Ian Campbell
2011-12-12 10:50 ` Ian Campbell
2011-12-09 23:15 ` [PATCH 8 of 8] Tools: Libxc wrapper for the new sharing audit domctl Andres Lagar-Cavilla
2011-12-12 10:52 ` Ian Campbell
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=6e8b8fb2c8b23e39d910.1323472555@xdev.gridcentric.ca \
--to=andres@lagarcavilla.org \
--cc=adin@gridcentric.ca \
--cc=andres@gridcentric.ca \
--cc=ian.campbell@citrix.com \
--cc=ian.jackson@citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xensource.com \
/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.