FreeBSD/Linux Kernel Cross Reference
sys/mach/pc_sample.h
1 /*
2 * Mach Operating System
3 * Copyright (c) 1993,1992 Carnegie Mellon University
4 * All Rights Reserved.
5 *
6 * Permission to use, copy, modify and distribute this software and its
7 * documentation is hereby granted, provided that both the copyright
8 * notice and this permission notice appear in all copies of the
9 * software, derivative works or modified versions, and any portions
10 * thereof, and that both notices appear in supporting documentation.
11 *
12 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 *
16 * Carnegie Mellon requests users of this software to return to
17 *
18 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 * School of Computer Science
20 * Carnegie Mellon University
21 * Pittsburgh PA 15213-3890
22 *
23 * any improvements or extensions that they make and grant Carnegie Mellon
24 * the rights to redistribute these changes.
25 */
26
27 /*
28 * HISTORY
29 * $Log: pc_sample.h,v $
30 * Revision 2.4 93/11/17 17:43:25 dbg
31 * Moved kernel internal definitions to kern/pc_sample.h.
32 * Made 64-bit clean.
33 * [93/09/24 dbg]
34 *
35 * Revision 2.3 93/08/03 12:31:37 mrt
36 * Defined some flavors for sampling.
37 * [93/07/30 10:26:03 bershad]
38 *
39 * Revision 2.2 93/01/24 13:20:55 danner
40 * Added sample_control_t.
41 * [93/01/15 rvb]
42 *
43 * File: mach/pc_sample.h
44 * Author: Brian Bershad
45 * Date: January 1992
46 *
47 * Mach external interface definitions -- file two
48 *
49 */
50
51 #ifndef _MACH_PC_SAMPLE_H_
52 #define _MACH_PC_SAMPLE_H_
53
54 #include <mach/machine/vm_types.h>
55
56 typedef natural_t sampled_pc_flavor_t;
57
58
59 #define SAMPLED_PC_PERIODIC 0x1 /* default */
60
61
62 #define SAMPLED_PC_VM_ZFILL_FAULTS 0x10
63 #define SAMPLED_PC_VM_REACTIVATION_FAULTS 0x20
64 #define SAMPLED_PC_VM_PAGEIN_FAULTS 0x40
65 #define SAMPLED_PC_VM_COW_FAULTS 0x80
66 #define SAMPLED_PC_VM_FAULTS_ANY 0x100
67 #define SAMPLED_PC_VM_FAULTS \
68 (SAMPLED_PC_VM_ZFILL_FAULTS | \
69 SAMPLED_PC_VM_REACTIVATION_FAULTS |\
70 SAMPLED_PC_VM_PAGEIN_FAULTS |\
71 SAMPLED_PC_VM_COW_FAULTS )
72
73
74
75
76 /*
77 * Definitions for the PC sampling interface.
78 */
79
80 typedef struct sampled_pc {
81 natural_t id;
82 vm_offset_t pc;
83 sampled_pc_flavor_t sampletype;
84 } sampled_pc_t;
85
86 typedef sampled_pc_t *sampled_pc_array_t;
87 typedef unsigned int sampled_pc_seqno_t;
88
89
90 #endif /* _MACH_PC_SAMPLE_H_ */
Cache object: 169cca7fb5452d216aa6681401831eaf
|