2 * Copyright (c) 2003-2004. Hiten Pandya <hmp@backplane.com>.
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in
15 * the documentation and/or other materials provided with the
18 * THIS SOFTWARE IS PROVIDED BY HITEN PANDYA AND CONTRIBUTORS "AS IS" AND
19 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL HITEN PANDYA OR CONTRIBUTORS
22 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
25 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
27 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
28 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 * $DragonFly: src/sys/sys/nchstats.h,v 1.1 2004/04/02 05:46:02 hmp Exp $
32 #ifndef _SYS_NCHSTATS_H_
33 #define _SYS_NCHSTATS_H_
36 * Statistics on the usefulness of namei caches.
40 unsigned long ncs_goodhits; /* hits that we can really use */
41 unsigned long ncs_neghits; /* negative hits that we can use */
42 unsigned long ncs_badhits; /* hits we must drop */
43 unsigned long ncs_falsehits; /* hits with id mismatch */
44 unsigned long ncs_miss; /* misses */
45 unsigned long ncs_long; /* long names that ignore cache */
46 unsigned long ncs_pass2; /* names found with passes == 2 */
47 unsigned long ncs_2passes; /* number of times we attempt it */
50 #endif /* _SYS_NCHSTATS_H_ */