changeset: 10288:8042b9eefdc5bd44cd071676dbbd3b5106f11f94
user: jimix@xxxxxxxxxxxxxxxxxxxxx
date: Thu May 18 13:17:37 2006 -0400
files: xen/arch/ppc/domain.c xen/include/asm-ppc/mm.h
description:
[ppc] but something reasonable for dump_pageframe_info()
diff -r d16209a2476eb924110d7e54d4185b1ab321a1f9 -r
8042b9eefdc5bd44cd071676dbbd3b5106f11f94 xen/arch/ppc/domain.c
--- a/xen/arch/ppc/domain.c Wed May 17 17:57:54 2006 -0400
+++ b/xen/arch/ppc/domain.c Thu May 18 13:17:37 2006 -0400
@@ -157,8 +157,32 @@ void domain_relinquish_memory(struct dom
void dump_pageframe_info(struct domain *d)
{
- panic("%s: called\n", __func__);
-}
+ struct page_info *page;
+
+ printk("Memory pages belonging to domain %u:\n", d->domain_id);
+
+ if ( d->tot_pages >= 10 )
+ {
+ printk(" DomPage list too long to display\n");
+ }
+ else
+ {
+ list_for_each_entry ( page, &d->page_list, list )
+ {
+ printk(" DomPage %p: mfn=%p, caf=%016lx, taf=%" PRtype_info
"\n",
+ _p(page_to_maddr(page)), _p(page_to_mfn(page)),
+ page->count_info, page->u.inuse.type_info);
+ }
+ }
+
+ list_for_each_entry ( page, &d->xenpage_list, list )
+ {
+ printk(" XenPage %p: mfn=%p, caf=%016lx, taf=%" PRtype_info "\n",
+ _p(page_to_maddr(page)), _p(page_to_mfn(page)),
+ page->count_info, page->u.inuse.type_info);
+ }
+}
+
void context_switch(struct vcpu *prev, struct vcpu *next)
{
diff -r d16209a2476eb924110d7e54d4185b1ab321a1f9 -r
8042b9eefdc5bd44cd071676dbbd3b5106f11f94 xen/include/asm-ppc/mm.h
--- a/xen/include/asm-ppc/mm.h Wed May 17 17:57:54 2006 -0400
+++ b/xen/include/asm-ppc/mm.h Thu May 18 13:17:37 2006 -0400
@@ -44,6 +44,7 @@ extern unsigned long xenheap_phys_end;
* 2. Provide a PFN_ORDER() macro for accessing the order of a free page.
*/
#define PFN_ORDER(_pfn) ((_pfn)->u.free.order)
+#define PRtype_info "016lx"
/* XXX copy-and-paste job; re-examine me */
struct page_info
_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel
|