]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
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 | |
14 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, | |
15 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
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. | |
19 | * | |
20 | * @APPLE_LICENSE_HEADER_END@ | |
21 | */ | |
22 | /* | |
23 | * @OSF_COPYRIGHT@ | |
24 | * | |
25 | */ | |
26 | /* | |
27 | * HISTORY | |
28 | * | |
29 | * Revision 1.1.1.1 1998/09/22 21:05:35 wsanchez | |
30 | * Import of Mac OS X kernel (~semeria) | |
31 | * | |
32 | * Revision 1.1.1.1 1998/03/07 02:25:54 wsanchez | |
33 | * Import of OSF Mach kernel (~mburg) | |
34 | * | |
35 | * Revision 1.1.9.2 1995/10/09 17:13:48 devrcs | |
36 | * Merged in RT3_SHARED ETAP code. | |
37 | * [1995/09/13 18:34:10 joe] | |
38 | * | |
39 | * Revision 1.1.6.1 1995/05/11 20:57:18 burke | |
40 | * Update ETAP changes. | |
41 | * [1995/05/09 17:15:03 burke] | |
42 | * | |
43 | * Revision 1.1.9.1 1995/09/18 19:13:34 devrcs | |
44 | * Merged in RT3_SHARED ETAP code. | |
45 | * [1995/09/13 18:34:10 joe] | |
46 | * | |
47 | * Revision 1.1.6.1 1995/05/11 20:57:18 burke | |
48 | * Update ETAP changes. | |
49 | * [1995/05/09 17:15:03 burke] | |
50 | * | |
51 | * Revision 1.1.3.1 1994/12/14 18:55:51 joe | |
52 | * ETAP nswc merge | |
53 | * [1994/12/14 17:07:33 joe] | |
54 | * | |
55 | * Revision 1.1.1.2 1994/12/12 15:34:48 joe | |
56 | * Initial check-in | |
57 | * | |
58 | * $EndLog$ | |
59 | */ | |
60 | /* | |
61 | * ETAP build options are selected using the config.debug configuration file. | |
62 | * | |
63 | * ETAP options are: | |
64 | * ETAP_LOCK_ACCUMULATE - Cumulative lock tracing | |
65 | * ETAP_LOCK_MONITOR - Monitor lock behavior | |
66 | * ETAP_EVENT_MONITOR - Monitor general events | |
67 | * | |
68 | * Derived options are: | |
69 | * ETAP_LOCK_TRACE - Equals one if either cumulative or monitored | |
70 | * lock tracing is configured (zero otherwise). | |
71 | * ETAP_MONITOR - Equals one if either lock or event monitoring | |
72 | * is configured (zero otherwise). | |
73 | */ | |
74 | ||
75 | #ifndef _KERN_ETAP_OPTIONS_H_ | |
76 | #define _KERN_ETAP_OPTIONS_H_ | |
77 | ||
78 | #ifdef ETAP_DYNAMIC_OPTIONS | |
79 | #include <etap.h> | |
80 | #include <etap_lock_monitor.h> | |
81 | #include <etap_lock_accumulate.h> | |
82 | #include <etap_event_monitor.h> | |
83 | #else | |
84 | #define ETAP 0 | |
85 | #define ETAP_LOCK_MONITOR 0 | |
86 | #define ETAP_LOCK_ACCUMULATE 0 | |
87 | #define ETAP_EVENT_MONITOR 0 | |
88 | #endif | |
89 | ||
90 | #if ETAP_LOCK_MONITOR || ETAP_LOCK_ACCUMULATE | |
91 | #define ETAP_LOCK_TRACE 1 | |
92 | #else /* ETAP_LOCK_MONITOR || ETAP_LOCK_ACCUMULATE */ | |
93 | #define ETAP_LOCK_TRACE 0 | |
94 | #endif /* ETAP_LOCK_MONITOR || ETAP_LOCK_ACCUMULATE */ | |
95 | ||
96 | #if ETAP_LOCK_MONITOR || ETAP_EVENT_MONITOR | |
97 | #define ETAP_MONITOR 1 | |
98 | #else /* ETAP_LOCK_MONITOR || ETAP_EVENT_MONITOR */ | |
99 | #define ETAP_MONITOR 0 | |
100 | #endif /* ETAP_LOCK_MONITOR || ETAP_EVENT_MONITOR */ | |
101 | ||
102 | #endif /* _KERN_ETAP_OPTIONS_H_ */ |