MAXCPU preparations
Attilio Rao
attilio at freebsd.org
Mon Sep 27 16:04:05 UTC 2010
2010/9/27 Sean Bruno <seanbru at yahoo-inc.com>:
> Does this look like an appropriate modification to libmemstat?
>
> Sean
>
>
> ==== //depot/yahoo/ybsd_7/src/lib/libmemstat/memstat.h#4
> - /home/seanbru/ybsd_7/src/lib/libmemstat/memstat.h ====
> @@ -28,12 +28,13 @@
>
> #ifndef _MEMSTAT_H_
> #define _MEMSTAT_H_
> +#include <sys/param.h>
>
> /*
> * Number of CPU slots in library-internal data structures. This
> should be
> * at least the value of MAXCPU from param.h.
> */
> -#define MEMSTAT_MAXCPU 64
> +#define MEMSTAT_MAXCPU MAXCPU /* defined in
> sys/${ARCH}/include/param.h */
>
> /*
> * Amount of caller data to maintain for each caller data slot.
> Applications
I would not include sys/param and would axe out the comment.
Just make sure anything compiles with these modifies eventually.
Thanks,
Attilio
--
Peace can only be achieved by understanding - A. Einstein
More information about the freebsd-current
mailing list