Merge from vendor branch AWK:
[dragonfly.git] / sys / sys / nchstats.h
1 /*
2  * Copyright (c) 2003-2004.  Hiten Pandya <hmp@backplane.com>.
3  * 
4  * All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions
8  * are met:
9  *
10  * 1. Redistributions of source code must retain the above copyright
11  *    notice, this list of conditions and the following
12  *    disclaimer.
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
16  *    distribution.
17  *       
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.
29  *
30  * $DragonFly: src/sys/sys/nchstats.h,v 1.1 2004/04/02 05:46:02 hmp Exp $
31  */
32 #ifndef _SYS_NCHSTATS_H_
33 #define _SYS_NCHSTATS_H_
34
35 /*
36  * Statistics on the usefulness of namei caches.
37  * (per-cpu)
38  */
39 struct  nchstats {
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 */
48 };
49
50 #endif /* _SYS_NCHSTATS_H_ */