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/
Home Products Support Community News


[Xen-devel] [PATCH] xenalyze: increase MAX_CPUS

To: George Dunlap <George.Dunlap@xxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] xenalyze: increase MAX_CPUS
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Tue, 12 Jul 2011 14:16:01 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 12 Jul 2011 05:16:56 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1310472969; l=830; s=domk; d=aepfle.de; h=Cc:To:From:Date:Subject:Content-Transfer-Encoding:MIME-Version: Content-Type:X-RZG-CLASS-ID:X-RZG-AUTH; bh=YcjWZVS44C0Y7jifyPrhoBzs7Qg=; b=U4VJTGC/7iyBoUOjcXCxTRyCX4q2nqP+jQ96PF5agH8J5PzB2kX4axJuAPn03R3SYEX bplJgcXXLJlQatX1dsCY0n1+Tk83R+Eyst8qI1ge9Q29lP3JG9V820/3MHKiyzGas1u8p CX5I+AZmJMObBOCopfWS+pnAGO1xT44IN/k=
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
User-agent: Mercurial-patchbomb/1.7.5
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1310472861 -7200
# Node ID 1d7a842aecc538c794c78db93d141cdc5683882c
# Parent  275dd17a6a36023ffa4e25f1b0d358c22af098b8
xenalyze: increase MAX_CPUS

On a large system xenalyze will refuse to process the trace file because it
has an hardcoded limit of 32 cpus.  The default of NR_CPUS in xen-unstable is
128. Increase the limit to match xen-unstable and also add an option to
override the macro with a gcc cmdline option.

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>

diff -r 275dd17a6a36 -r 1d7a842aecc5 xenalyze.c
--- a/xenalyze.c
+++ b/xenalyze.c
@@ -1618,7 +1618,9 @@ struct cr3_value_struct {
     } destroy;
-#define MAX_CPUS 32
+#ifndef MAX_CPUS
+#define MAX_CPUS 128
 typedef uint32_t cpu_mask_t;
 #define IDLE_DOMAIN 32767

Xen-devel mailing list

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