On Wed, Mar 16, 2016 at 08:37:52AM +, Hans Petter Selasky wrote:
H> Author: hselasky
H> Date: Wed Mar 16 08:37:52 2016
H> New Revision: 296933
H> URL: https://svnweb.freebsd.org/changeset/base/296933
H>
H> Log:
H> Improve the implementation and documentation of the
H> SYSCTL_COUNTER_U64_AR
On 03/16/16 21:36, Gleb Smirnoff wrote:
On Wed, Mar 16, 2016 at 08:37:52AM +, Hans Petter Selasky wrote:
H> Modified: head/sys/sys/sysctl.h
H>
==
H> --- head/sys/sys/sysctl.h Wed Mar 16 06:42:15 2016(r296932)
On 03/16/16 21:32, Gleb Smirnoff wrote:
On Wed, Mar 16, 2016 at 08:37:52AM +, Hans Petter Selasky wrote:
H> Author: hselasky
H> Date: Wed Mar 16 08:37:52 2016
H> New Revision: 296933
H> URL: https://svnweb.freebsd.org/changeset/base/296933
H>
H> Log:
H> Improve the implementation and docume
On Thu, Mar 17, 2016 at 08:21:12AM +0100, Hans Petter Selasky wrote:
H> On 03/16/16 21:32, Gleb Smirnoff wrote:
H> > On Wed, Mar 16, 2016 at 08:37:52AM +, Hans Petter Selasky wrote:
H> > H> Author: hselasky
H> > H> Date: Wed Mar 16 08:37:52 2016
H> > H> New Revision: 296933
H> > H> URL: https:/
On Thu, Mar 17, 2016 at 08:19:50AM +0100, Hans Petter Selasky wrote:
H> On 03/16/16 21:36, Gleb Smirnoff wrote:
H> > On Wed, Mar 16, 2016 at 08:37:52AM +, Hans Petter Selasky wrote:
H> > H> Modified: head/sys/sys/sysctl.h
H> > H>
On Wed, Mar 16, 2016 at 01:32:41PM -0700, Gleb Smirnoff wrote:
T> H> +.Sh EXAMPLES
T> H> +The following example creates a static counter array exported to
T> H> +userspace through a sysctl:
T> H> +.Bd -literal -offset indent
T> H> +#define MY_SIZE 8
T> H> +static counter_u64_t array[MY_SIZE];
T> H>
On Wed, Mar 16, 2016 at 08:37:52AM +, Hans Petter Selasky wrote:
H> Modified: head/sys/sys/sysctl.h
H>
==
H> --- head/sys/sys/sysctl.hWed Mar 16 06:42:15 2016(r296932)
H> +++ head/sys/sys/sysctl.hWed Ma
Author: hselasky
Date: Wed Mar 16 08:37:52 2016
New Revision: 296933
URL: https://svnweb.freebsd.org/changeset/base/296933
Log:
Improve the implementation and documentation of the
SYSCTL_COUNTER_U64_ARRAY() macro.
- Add proper asserts to the SYSCTL_COUNTER_U64_ARRAY() macro that checks