xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* xenpm: fix get-cpu-topology
@ 2010-07-12 10:58 Wei, Gang
  2010-07-12 17:06 ` Ian Jackson
  0 siblings, 1 reply; 3+ messages in thread
From: Wei, Gang @ 2010-07-12 10:58 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com; +Cc: Keir Fraser, Wei, Gang

[-- Attachment #1: Type: text/plain, Size: 571 bytes --]

xenpm: fix get-cpu-topology

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

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 #2: fix-xenpm-get-cpu-topology.patch --]
[-- Type: application/octet-stream, Size: 557 bytes --]

xenpm: fix get-cpu-topology

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

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 #3: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-07-12 17:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-12 10:58 xenpm: fix get-cpu-topology Wei, Gang
2010-07-12 17:06 ` Ian Jackson
2010-07-12 17:19   ` Keir Fraser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).