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