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] Fix perfc array range on reset.

# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID f3588e8b49a4624b7df7389fd4969611b7e7fe9d
# Parent  50f2558d6241c39fd29641a4a78b0a1169b5e038
Fix perfc array range on reset.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
xen-unstable changeset:   9908:7af8039b3c571af038277ab6d7d288d1f2a7acf6
xen-unstable date:        Tue May  2 15:21:19 2006 +0100

diff -r 50f2558d6241 -r f3588e8b49a4 xen/common/perfc.c
--- a/xen/common/perfc.c        Fri Apr 28 14:06:33 2006 +0100
+++ b/xen/common/perfc.c        Tue May 02 15:25:22 2006 +0100
@@ -116,7 +116,7 @@ void perfc_reset(unsigned char key)
             counters += NR_CPUS;
             break;
         case TYPE_ARRAY:
-            for ( j = 0; j < NR_CPUS; j++ )
+            for ( j = 0; j < perfc_info[i].nr_elements; j++ )
                 atomic_set(&counters[j],0);
         case TYPE_S_ARRAY:
             counters += perfc_info[i].nr_elements;

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

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