6811333 Remove prom_printf() message in emlxs driver
[opensolaris.git] / usr / src / uts / common / sys / vmmeter.h
blob5da4459347e262febf3771154ca7e02bacea7389
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
20 * CDDL HEADER END
23 * Copyright 1996 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 /* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
28 /* All Rights Reserved */
31 * University Copyright- Copyright (c) 1982, 1986, 1988
32 * The Regents of the University of California
33 * All Rights Reserved
35 * University Acknowledgment- Portions of this document are derived from
36 * software developed by the University of California, Berkeley, and its
37 * contributors.
40 #ifndef _SYS_VMMETER_H
41 #define _SYS_VMMETER_H
43 #pragma ident "%Z%%M% %I% %E% SMI"
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
50 * Virtual Address Cache flush instrumentation.
52 * Everything from f_first to f_last must be unsigned [int].
54 struct flushmeter {
55 #define f_first f_ctx
56 unsigned f_ctx; /* No. of context flushes */
57 unsigned f_segment; /* No. of segment flushes */
58 unsigned f_page; /* No. of complete page flushes */
59 unsigned f_partial; /* No. of partial page flushes */
60 unsigned f_usr; /* No. of non-supervisor flushes */
61 unsigned f_region; /* No. of region flushes */
62 #define f_last f_region
65 #ifdef _KERNEL
66 #ifdef VAC
67 /* cnt is 1 sec accum; rate is 5 sec avg; sum is grand total */
68 struct flushmeter flush_cnt;
69 #endif /* VAC */
70 #endif /* _KERNEL */
72 #ifdef __cplusplus
74 #endif
76 #endif /* _SYS_VMMETER_H */