]>
git.saurik.com Git - apple/xnu.git/blob - osfmk/kern/etap_options.h
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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.
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
20 * @APPLE_LICENSE_HEADER_END@
29 * Revision 1.1.1.1 1998/09/22 21:05:35 wsanchez
30 * Import of Mac OS X kernel (~semeria)
32 * Revision 1.1.1.1 1998/03/07 02:25:54 wsanchez
33 * Import of OSF Mach kernel (~mburg)
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]
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]
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]
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]
51 * Revision 1.1.3.1 1994/12/14 18:55:51 joe
53 * [1994/12/14 17:07:33 joe]
55 * Revision 1.1.1.2 1994/12/12 15:34:48 joe
61 * ETAP build options are selected using the config.debug configuration file.
64 * ETAP_LOCK_ACCUMULATE - Cumulative lock tracing
65 * ETAP_LOCK_MONITOR - Monitor lock behavior
66 * ETAP_EVENT_MONITOR - Monitor general events
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).
75 #ifndef _KERN_ETAP_OPTIONS_H_
76 #define _KERN_ETAP_OPTIONS_H_
78 #ifdef ETAP_DYNAMIC_OPTIONS
80 #include <etap_lock_monitor.h>
81 #include <etap_lock_accumulate.h>
82 #include <etap_event_monitor.h>
85 #define ETAP_LOCK_MONITOR 0
86 #define ETAP_LOCK_ACCUMULATE 0
87 #define ETAP_EVENT_MONITOR 0
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 */
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 */
102 #endif /* _KERN_ETAP_OPTIONS_H_ */