On Fri, Nov 11, 2016 at 12:55 +1000, David Gwynne wrote:
> there isnt a nice bucket for per cpu counters to use. this makes a
> pretty obvious one.
> 
> ok?
>

OK, but could you please put a tab after the #define for style
consistency with the other ones?  Also please on't forget to
update malloc(9)

> Index: sys/malloc.h
> ===================================================================
> RCS file: /cvs/src/sys/sys/malloc.h,v
> retrieving revision 1.113
> diff -u -p -r1.113 malloc.h
> --- sys/malloc.h      20 Jul 2016 09:15:28 -0000      1.113
> +++ sys/malloc.h      11 Nov 2016 02:53:46 -0000
> @@ -74,7 +74,7 @@
>  #define      M_IFADDR        9       /* interface address */
>  #define      M_SOOPTS        10      /* socket options */
>  #define      M_SYSCTL        11      /* sysctl buffers (persistent storage) 
> */
> -/* 12 - free */
> +#define M_COUNTERS   12      /* per CPU counters */
>  /* 13 - free */
>  #define      M_IOCTLOPS      14      /* ioctl data buffer */
>  /* 15-18 - free */
> @@ -196,7 +196,7 @@
>       "ifaddr",       /* 9 M_IFADDR */ \
>       "soopts",       /* 10 M_SOOPTS */ \
>       "sysctl",       /* 11 M_SYSCTL */ \
> -     NULL, \
> +     "counters",     /* 12 M_COUNTERS */ \
>       NULL, \
>       "ioctlops",     /* 14 M_IOCTLOPS */ \
>       NULL, \
> 

Reply via email to