Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jan 2016 17:40:03 -0800
From:      Ravi Pokala <rpokala@mac.com>
To:        Mateusz Guzik <mjg@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r294475 - head/sys/kern
Message-ID:  <0BB9E046-D76D-47CF-9BE6-4888727B7E05@panasas.com>
In-Reply-To: <201601210104.u0L143tP098546@repo.freebsd.org>
References:  <201601210104.u0L143tP098546@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
-----Original Message-----


From: <owner-src-committers@freebsd.org> on behalf of Mateusz Guzik <mjg@FreeBSD.org>
Date: 2016-01-20, Wednesday at 17:04
To: <src-committers@freebsd.org>, <svn-src-all@freebsd.org>, <svn-src-head@freebsd.org>
Subject: svn commit: r294475 - head/sys/kern

>Author: mjg
>Date: Thu Jan 21 01:04:03 2016
>New Revision: 294475
>URL: https://svnweb.freebsd.org/changeset/base/294475
>
>Log:
>  cache: use counter(9) API to maintain statistics
>  
>...
>
>Modified:
>  head/sys/kern/vfs_cache.c
>
>Modified: head/sys/kern/vfs_cache.c
>==============================================================================
>--- head/sys/kern/vfs_cache.c	Thu Jan 21 00:42:48 2016	(r294474)
>+++ head/sys/kern/vfs_cache.c	Thu Jan 21 01:04:03 2016	(r294475)
>
>...
> 
>
>+	numcalls = counter_u64_alloc(M_WAITOK);
>+	dothits = counter_u64_alloc(M_WAITOK);
>+	dotdothits = counter_u64_alloc(M_WAITOK);
>
>...
>

ISTR there's an API for creating a batch of counters; that might be cleaner than creating a dozen+ individually?

-Ravi (rpokala@)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0BB9E046-D76D-47CF-9BE6-4888727B7E05>