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@soft.fujitsu.com>
---
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@lists.xensource.com
http://lists.xensource.com/xen-devel
On Mon, Dec 05, 2005 at 12:46:30PM +0900, Matsumoto wrote:> 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@soft.fujitsu.com>Applied, thank you. Ewan. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel