]> git.saurik.com Git - apple/xnu.git/blame - osfmk/mach/events_info.h
xnu-344.21.73.tar.gz
[apple/xnu.git] / osfmk / mach / events_info.h
CommitLineData
1c79356b
A
1/*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
d7e50217
A
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
7 *
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * file.
14 *
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
1c79356b
A
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
d7e50217
A
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
1c79356b
A
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
25/*
26 * @OSF_FREE_COPYRIGHT@
27 */
28/*
29 * HISTORY
30 *
31 * Revision 1.1.1.1 1998/09/22 21:05:29 wsanchez
32 * Import of Mac OS X kernel (~semeria)
33 *
34 * Revision 1.1.1.1 1998/03/07 02:25:45 wsanchez
35 * Import of OSF Mach kernel (~mburg)
36 *
37 * Revision 1.1.8.3 1995/01/26 22:15:39 ezf
38 * removed extraneous CMU CR
39 * [1995/01/26 20:24:56 ezf]
40 *
41 * Revision 1.1.8.2 1995/01/06 19:50:12 devrcs
42 * mk6 CR668 - 1.3b26 merge
43 * 64bit cleanup
44 * [1994/10/14 03:42:32 dwm]
45 *
46 * Revision 1.1.4.3 1993/09/17 21:35:27 robert
47 * change marker to OSF_FREE_COPYRIGHT
48 * [1993/09/17 21:28:46 robert]
49 *
50 * Revision 1.1.4.2 1993/06/04 15:13:47 jeffc
51 * CR9193 - MK5.0 merge.
52 * [1993/05/18 02:37:52 gm]
53 *
54 * Revision 3.0 92/12/31 22:12:17 ede
55 * Initial revision for OSF/1 R1.3
56 *
57 * Revision 1.2 1991/06/20 12:13:09 devrcs
58 * Created from mach/task_info.h.
59 * [91/06/04 08:53:02 jeffc]
60 *
61 * $EndLog$
62 */
63/*
64 * Machine-independent event information structures and definitions.
65 *
66 * The definitions in this file are exported to the user. The kernel
67 * will translate its internal data structures to these structures
68 * as appropriate.
69 *
70 * This data structure is used to track events that occur during
71 * thread execution, and to summarize this information for tasks.
72 */
73
74#ifndef _MACH_EVENTS_INFO_H_
75#define _MACH_EVENTS_INFO_H_
76
77struct events_info {
78 long faults; /* number of page faults */
79 long zero_fills; /* number of zero fill pages */
80 long reactivations; /* number of reactivated pages */
81 long pageins; /* number of actual pageins */
82 long cow_faults; /* number of copy-on-write faults */
83 long messages_sent; /* number of messages sent */
84 long messages_received; /* number of messages received */
85};
86typedef struct events_info events_info_data_t;
87typedef struct events_info *events_info_t;
88#define EVENTS_INFO_COUNT \
89 (sizeof(events_info_data_t) / sizeof(long))
90
91#endif /*_MACH_EVENTS_INFO_H_*/