All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen/balloon: export balloon hotplug page stats to sysfs
@ 2014-03-20 12:56 Wei Liu
  2014-03-20 13:21 ` David Vrabel
  2014-03-20 19:38 ` Konrad Rzeszutek Wilk
  0 siblings, 2 replies; 6+ messages in thread
From: Wei Liu @ 2014-03-20 12:56 UTC (permalink / raw)
  To: xen-devel; +Cc: Boris Ostrovsky, Wei Liu, David Vrabel

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Cc: Konrad Wilk <konrad.wilk@oracle.com>
Cc: David Vrabel <david.vrabel@citrix.com>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
---
 drivers/xen/xen-balloon.c |    9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/xen/xen-balloon.c b/drivers/xen/xen-balloon.c
index e555845..2d4c5a8 100644
--- a/drivers/xen/xen-balloon.c
+++ b/drivers/xen/xen-balloon.c
@@ -129,6 +129,11 @@ module_exit(balloon_exit);
 BALLOON_SHOW(current_kb, "%lu\n", PAGES2KB(balloon_stats.current_pages));
 BALLOON_SHOW(low_kb, "%lu\n", PAGES2KB(balloon_stats.balloon_low));
 BALLOON_SHOW(high_kb, "%lu\n", PAGES2KB(balloon_stats.balloon_high));
+#ifdef CONFIG_XEN_BALLOON_MEMORY_HOTPLUG
+BALLOON_SHOW(hotplug_kb, "%lu\n", PAGES2KB(balloon_stats.hotplug_pages));
+BALLOON_SHOW(balloon_hotplug_kb, "%lu\n",
+	     PAGES2KB(balloon_stats.balloon_hotplug));
+#endif
 
 static DEVICE_ULONG_ATTR(schedule_delay, 0444, balloon_stats.schedule_delay);
 static DEVICE_ULONG_ATTR(max_schedule_delay, 0644, balloon_stats.max_schedule_delay);
@@ -206,6 +211,10 @@ static struct attribute *balloon_info_attrs[] = {
 	&dev_attr_current_kb.attr,
 	&dev_attr_low_kb.attr,
 	&dev_attr_high_kb.attr,
+#ifdef CONFIG_XEN_BALLOON_MEMORY_HOTPLUG
+	&dev_attr_hotplug_kb.attr,
+	&dev_attr_balloon_hotplug_kb.attr,
+#endif
 	NULL
 };
 
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-03-21 13:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-20 12:56 [PATCH] xen/balloon: export balloon hotplug page stats to sysfs Wei Liu
2014-03-20 13:21 ` David Vrabel
2014-03-20 14:01   ` Wei Liu
2014-03-21 13:02     ` David Vrabel
2014-03-21 13:34       ` Wei Liu
2014-03-20 19:38 ` Konrad Rzeszutek Wilk

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.