Subject: Re: uvm_cnt replacement
To: Matt Thomas <matt@3am-software.com>
From: Andrey Petrov <petrov@netbsd.org>
List: tech-kern
Date: 05/01/2004 01:27:45
On Fri, Apr 30, 2004 at 04:04:16PM -0700, Matt Thomas wrote:
>
> 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.
I plan to have UVMMAP_COUNTERS not defined by default as don't see
apps in the tree using them. So I'll add UVMMAP_COUNTERS defflag.
> >
> >+#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.
Oh, yeah. I thought about it too. Thanks Matt. I'll test some
and commit.
Andrey