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-changelog

[Xen-changelog] Work around the fact that the physinfo dom0 call is not

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Work around the fact that the physinfo dom0 call is not implemented for IA64.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 01 Dec 2005 11:20:12 +0000
Delivery-date: Thu, 01 Dec 2005 11:21:07 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID fbbb8a2a60138d4e3c1168e44fe021b84d194864
# Parent  e6d64c356d63a3528fb202bf91bcd38d248b8065
Work around the fact that the physinfo dom0 call is not implemented for IA64.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r e6d64c356d63 -r fbbb8a2a6013 tools/python/xen/util/bugtool.py
--- a/tools/python/xen/util/bugtool.py  Thu Dec  1 03:19:40 2005
+++ b/tools/python/xen/util/bugtool.py  Thu Dec  1 03:26:47 2005
@@ -69,10 +69,17 @@
     bugball = []
 
     xc = xen.lowlevel.xc.xc()
-    bugball.append(string_iterator('xen-dmesg', xc.readconsolering()))
-    bugball.append(string_iterator('physinfo',  prettyDict(xc.physinfo())))
-    bugball.append(string_iterator('xeninfo',   prettyDict(xc.xeninfo())))
-    del xc
+
+    def do(n, f):
+        try:
+            s = f()
+        except Exception, exn:
+            s = str(exn)
+        bugball.append(string_iterator(n, s))
+
+    do('xen-dmesg', lambda: xc.readconsolering())
+    do('physinfo',  lambda: prettyDict(xc.physinfo()))
+    do('xeninfo',   lambda: prettyDict(xc.xeninfo()))
 
     for filename in FILES_TO_SEND:
         if not os.path.exists(filename):

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Work around the fact that the physinfo dom0 call is not implemented for IA64., Xen patchbot -unstable <=