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] xenpm: fix get-cpu-topology

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] xenpm: fix get-cpu-topology
From: "Wei, Gang" <gang.wei@xxxxxxxxx>
Date: Mon, 12 Jul 2010 18:58:53 +0800
Accept-language: zh-CN, en-US
Acceptlanguage: zh-CN, en-US
Cc: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, "Wei, Gang" <gang.wei@xxxxxxxxx>
Delivery-date: Mon, 12 Jul 2010 04:00:54 -0700
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcshsTbwR6WrmQKEQmyHV9Wlrgam2Q==
Thread-topic: xenpm: fix get-cpu-topology
xenpm: fix get-cpu-topology

Signed-off-by: Wei Gang <gang.wei@xxxxxxxxx>

diff -r cd5edc77ab93 tools/misc/xenpm.c
--- a/tools/misc/xenpm.c        Fri Jul 09 17:55:39 2010 +0800
+++ b/tools/misc/xenpm.c        Mon Jul 12 14:10:16 2010 +0800
@@ -858,7 +858,7 @@ void cpu_topology_func(int argc, char *a
         info.max_cpu_index = MAX_NR_CPU-1;
 
     printf("CPU\tcore\tsocket\tnode\n");
-    for ( i = 0; i < info.max_cpu_index; i++ )
+    for ( i = 0; i <= info.max_cpu_index; i++ )
     {
         if ( cpu_to_core[i] == INVALID_TOPOLOGY_ID )
             continue;

Attachment: fix-xenpm-get-cpu-topology.patch
Description: fix-xenpm-get-cpu-topology.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>