All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xenalyze: increase MAX_CPUS
@ 2011-07-12 12:16 Olaf Hering
  2011-07-14 11:53 ` George Dunlap
  0 siblings, 1 reply; 2+ messages in thread
From: Olaf Hering @ 2011-07-12 12:16 UTC (permalink / raw)
  To: George Dunlap; +Cc: xen-devel

# HG changeset patch
# User Olaf Hering <olaf@aepfle.de>
# 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@aepfle.de>

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
+#endif
 typedef uint32_t cpu_mask_t;
 
 #define IDLE_DOMAIN 32767

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

* Re: [PATCH] xenalyze: increase MAX_CPUS
  2011-07-12 12:16 [PATCH] xenalyze: increase MAX_CPUS Olaf Hering
@ 2011-07-14 11:53 ` George Dunlap
  0 siblings, 0 replies; 2+ messages in thread
From: George Dunlap @ 2011-07-14 11:53 UTC (permalink / raw)
  To: Olaf Hering; +Cc: George Dunlap, xen-devel@lists.xensource.com

Applied, thanks.
 -George

On Tue, 2011-07-12 at 13:16 +0100, Olaf Hering wrote:
> # HG changeset patch
> # User Olaf Hering <olaf@aepfle.de>
> # 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@aepfle.de>
> 
> 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
> +#endif
>  typedef uint32_t cpu_mask_t;
>  
>  #define IDLE_DOMAIN 32767

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

end of thread, other threads:[~2011-07-14 11:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-12 12:16 [PATCH] xenalyze: increase MAX_CPUS Olaf Hering
2011-07-14 11:53 ` George Dunlap

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.