WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

[XenPPC] [pushed] [ppc] but something reasonable for dump_pageframe_info

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [pushed] [ppc] but something reasonable for dump_pageframe_info()
From: jimix@xxxxxxxxxxxxxx
Date: Fri, 19 May 2006 07:05:07 -0400
Delivery-date: Fri, 19 May 2006 04:03:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [pushed] [ppc] but something reasonable for dump_pageframe_info(), jimix <=