Skip to contentSkip to conversation

add info to p2m_pod_dump_data

PATCH In review zhangcy 2 participants 3 messages Apr 26, 2016 – Apr 27, 2016

lore
Share & tools
lore

zhangcy

author
#0 lore raw

PATCH 1/1 add info to p2m_pod_dump_data

just for debug.
'xl debug-key q' do not dump d->tot_pages,
so it hard to understand p2m_pod_set_mem_target.

---
 xen/arch/x86/mm/p2m-pod.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
xen/arch/x86/mm/p2m-pod.c +2 -2
index 35835d1..a931f2c 100644
@@ -660,8 +660,8 @@ void p2m_pod_dump_data(struct domain *d)
 {
     struct p2m_domain *p2m = p2m_get_hostp2m(d);
 
-    printk("    PoD entries=%ld cachesize=%ld\n",
-           p2m->pod.entry_count, p2m->pod.count);
+    printk("    Total pages=%d PoD entries=%ld cachesize=%ld\n",
+           d->tot_pages, p2m->pod.entry_count, p2m->pod.count);
 }
 
 
Signature · 9 lines
1.7.12.4




_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#1 lore raw
Quoted 3 lines · zhangcy

just for debug.
'xl debug-key q' do not dump d->tot_pages,
so it hard to understand p2m_pod_set_mem_target.

debug-key 'q' calls dump_domains, which prints d->tot_pages under the label "nr_pages".

I admit this isn't very clear -- what about s/nr_pages/tot_pages/ these instead?

-George

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel