Subject: Re: uvm_cnt replacement
To: Andrey Petrov <petrov@netbsd.org>
From: Matt Thomas <matt@3am-software.com>
List: tech-kern
Date: 04/30/2004 16:04:16
On Apr 30, 2004, at 2:29 PM, Andrey Petrov wrote:
> +#ifdef UVMMAP_COUNTERS
How about adding a UVMMAP_NOCOUNTERS defflag? That way this code
can be removed from INSTALL kernels.
>
> +#ifdef UVMMAP_COUNTERS
> + evcnt_attach_static(&map_ubackmerge);
> + evcnt_attach_static(&map_uforwmerge);
> + evcnt_attach_static(&map_ubimerge);
> + evcnt_attach_static(&map_unomerge);
> + evcnt_attach_static(&map_kbackmerge);
> + evcnt_attach_static(&map_kforwmerge);
> + evcnt_attach_static(&map_kbimerge);
> + evcnt_attach_static(&map_knomerge);
> + evcnt_attach_static(&uvm_map_call);
> + evcnt_attach_static(&uvm_mlk_call);
> + evcnt_attach_static(&uvm_mlk_hint);
> +#endif
Use EVCNT_ATTACH_STATIC and move them up to where they
are declared.
--
Matt Thomas email: matt@3am-software.com
3am Software Foundry www: http://3am-software.com/bio/matt/
Cupertino, CA disclaimer: I avow all knowledge of this
message.