2 * Copyright (c) 2000-2001 Apple Computer, Inc. All Rights Reserved.
4 * The contents of this file constitute Original Code as defined in and are
5 * subject to the Apple Public Source License Version 1.2 (the 'License').
6 * You may not use this file except in compliance with the License. Please obtain
7 * a copy of the License at http://www.apple.com/publicsource and read it before
10 * This Original Code and all software distributed under the License are
11 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS
12 * OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT
13 * LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
14 * PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the
15 * specific language governing rights and limitations under the License.
19 /* Copyright (c) 1997 Apple Computer, Inc. All rights reserved.
21 * kdebugprivate.h - private kernel_debug definitions
26 /**********************************************************************/
27 #ifndef _BSD_KERN_KDEBUG_PRIVATE_H_
28 #define _BSD_KERN_KDEBUG_PRIVATE_H_
31 mach_timespec_t timestamp
;
36 unsigned int arg5
; /* will hold current thread */
42 #define KDBG_NOWRAP 0x2
43 #define KDBG_FREERUN 0x4
44 #define KDBG_WRAPPED 0x8
45 #define KDBG_USERFLAGS (KDBG_FREERUN|KDBG_NOWRAP|KDBG_INIT)
46 #define KDBG_PIDCHECK 0x10
47 #define KDBG_MAPINIT 0x20
75 #define KDBG_CLASSTYPE 0x10000
76 #define KDBG_SUBCLSTYPE 0x20000
77 #define KDBG_RANGETYPE 0x40000
78 #define KDBG_TYPENONE 0x80000
79 #define KDBG_CKTYPES 0xF0000
81 #define KDBG_RANGECHECK 0x100000
82 #define KDBG_VALCHECK 0x200000 /* Check up to 4 individual values
85 #define KDBG_BUFINIT 0x80000000
86 /* Maximum number of buffer entries is 64k */
88 #define KDBG_MAXBUFSIZE (64*1024)
90 /* Control operations */
94 #define KDBG_SETNUMBUF 4
95 #define KDBG_GETNUMBUF 5
98 #define KDBG_SETREGCODE 8
99 #define KDBG_GETREGCODE 9
100 #define KDBG_READTRACE 10
102 #define KDBGREGCALSS 1
103 #define KDBGREGSUBCALSS 2
104 #define KDBGREGRANGE 3
105 #define KDBGREGNONE 4
106 /**********************************************************************/
108 #endif /* _BSD_KERN_KDEBUG_PRIVATE_H_ */