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

[Xen-devel] [Patch] fix xm-test report issue

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [Patch] fix xm-test report issue
From: Matsumoto <n_matumoto@xxxxxxxxxxxxxxxx>
Date: Mon, 05 Dec 2005 12:46:30 +0900
Delivery-date: Mon, 05 Dec 2005 03:46:08 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

 I'm trying xm-test on IA64 and found xm-test report fails
 because IA64's /cpu/procinfo format is different from x86's.

 IA64's /cpu/procinfo: (no "model_name","flag" field)

processor  : 0
vendor     : GenuineIntel
arch       : IA-64
family     : 32
model      : 0
revision   : 3
archrev    : 0
features   : branchlong, 16-byte atomic ops
cpu number : 0
cpu regs   : 4
cpu MHz    : 1396.203998
itc MHz    : 349.050999
BogoMIPS   : 2785.01

 Here's a small patch to fix the problem.

Best Regards,

Matsumoto

Signed-off-by: Matsumoto <n_matumoto@xxxxxxxxxxxxxxxx>
---

diff -r 9cca37fc1057 tools/xm-test/lib/XmTestReport/OSReport.py
--- a/tools/xm-test/lib/XmTestReport/OSReport.py        Thu Dec  1 17:24:33 2005
+++ b/tools/xm-test/lib/XmTestReport/OSReport.py        Mon Dec  5 09:45:43 2005
@@ -102,6 +102,11 @@
         xen = self.__getXenInfo(xenValues)
         cpu = self.__getCpuInfo(cpuValues)
 
+        if cpu["model_name"] == "Unknown":   
+            cpuValues={"arch"  : "Unknown",
+                       "features": "Unknown"}
+            cpu=self.__getCpuInfo(cpuValues)
+
         for k in xen.keys():
             self.values[k] = xen[k]
             if xen[k] == "Unknown":



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

<Prev in Thread] Current Thread [Next in Thread>