xref: /xnu-11215.1.10/bsd/sys/kdebug_triage.h (revision 8d741a5de7ff4191bf97d57b9f54c2f6d4a15585)
1*8d741a5dSApple OSS Distributions /*
2*8d741a5dSApple OSS Distributions  * Copyright (c) 2000-2020 Apple Inc. All rights reserved.
3*8d741a5dSApple OSS Distributions  *
4*8d741a5dSApple OSS Distributions  * @Apple_LICENSE_HEADER_START@
5*8d741a5dSApple OSS Distributions  *
6*8d741a5dSApple OSS Distributions  * The contents of this file constitute Original Code as defined in and
7*8d741a5dSApple OSS Distributions  * are subject to the Apple Public Source License Version 1.1 (the
8*8d741a5dSApple OSS Distributions  * "License").  You may not use this file except in compliance with the
9*8d741a5dSApple OSS Distributions  * License.  Please obtain a copy of the License at
10*8d741a5dSApple OSS Distributions  * http://www.apple.com/publicsource and read it before using this file.
11*8d741a5dSApple OSS Distributions  *
12*8d741a5dSApple OSS Distributions  * This Original Code and all software distributed under the License are
13*8d741a5dSApple OSS Distributions  * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14*8d741a5dSApple OSS Distributions  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15*8d741a5dSApple OSS Distributions  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16*8d741a5dSApple OSS Distributions  * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
17*8d741a5dSApple OSS Distributions  * License for the specific language governing rights and limitations
18*8d741a5dSApple OSS Distributions  * under the License.
19*8d741a5dSApple OSS Distributions  *
20*8d741a5dSApple OSS Distributions  * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
21*8d741a5dSApple OSS Distributions  */
22*8d741a5dSApple OSS Distributions 
23*8d741a5dSApple OSS Distributions #ifndef BSD_SYS_KDEBUG_TRIAGE_H
24*8d741a5dSApple OSS Distributions #define BSD_SYS_KDEBUG_TRIAGE_H
25*8d741a5dSApple OSS Distributions 
26*8d741a5dSApple OSS Distributions void delete_buffers_triage(void);
27*8d741a5dSApple OSS Distributions 
28*8d741a5dSApple OSS Distributions #define KDBG_TRIAGE_CLASS_MASK   (0xff000000)
29*8d741a5dSApple OSS Distributions #define KDBG_TRIAGE_CLASS_OFFSET (24)
30*8d741a5dSApple OSS Distributions #define KDBG_TRIAGE_CLASS_MAX    (0xff)
31*8d741a5dSApple OSS Distributions 
32*8d741a5dSApple OSS Distributions /* Unused but reserved for future use (possibly for payload encoding) */
33*8d741a5dSApple OSS Distributions #define KDBG_TRIAGE_RESERVED (0)
34*8d741a5dSApple OSS Distributions #define KDBG_TRIAGE_RESERVED_MASK   (0x00ff0000)
35*8d741a5dSApple OSS Distributions #define KDBG_TRIAGE_RESERVED_OFFSET (16)
36*8d741a5dSApple OSS Distributions #define KDBG_TRIAGE_RESERVED_MAX    (0xff)
37*8d741a5dSApple OSS Distributions 
38*8d741a5dSApple OSS Distributions #define KDBG_TRIAGE_CODE_MASK   (0x0000fffc)
39*8d741a5dSApple OSS Distributions #define KDBG_TRIAGE_CODE_OFFSET (2)
40*8d741a5dSApple OSS Distributions #define KDBG_TRIAGE_CODE_MAX    (0x3fff)
41*8d741a5dSApple OSS Distributions 
42*8d741a5dSApple OSS Distributions #define KDBG_TRIAGE_EVENTID(Class, Reserved, Code)                \
43*8d741a5dSApple OSS Distributions 	(((unsigned)((Class)    &   0xff) << KDBG_TRIAGE_CLASS_OFFSET)    | \
44*8d741a5dSApple OSS Distributions 	 ((unsigned)((Reserved) &   0xff) << KDBG_TRIAGE_RESERVED_OFFSET) | \
45*8d741a5dSApple OSS Distributions 	 ((unsigned)((Code)     & 0x3fff) << KDBG_TRIAGE_CODE_OFFSET))
46*8d741a5dSApple OSS Distributions 
47*8d741a5dSApple OSS Distributions #define KDBG_TRIAGE_EXTRACT_CLASS(Debugid) \
48*8d741a5dSApple OSS Distributions 	((uint8_t)(((Debugid) & KDBG_TRIAGE_CLASS_MASK) >> KDBG_TRIAGE_CLASS_OFFSET))
49*8d741a5dSApple OSS Distributions #define KDBG_TRIAGE_EXTRACT_CODE(Debugid) \
50*8d741a5dSApple OSS Distributions 	((uint16_t)(((Debugid) & KDBG_TRIAGE_CODE_MASK) >> KDBG_TRIAGE_CODE_OFFSET))
51*8d741a5dSApple OSS Distributions 
52*8d741a5dSApple OSS Distributions #define KDBG_TRIAGE_MAX_STRINGS (5)
53*8d741a5dSApple OSS Distributions #define KDBG_TRIAGE_MAX_STRLEN  (128)
54*8d741a5dSApple OSS Distributions 
55*8d741a5dSApple OSS Distributions /****** VM Codes Begin ******/
56*8d741a5dSApple OSS Distributions #define KDBG_TRIAGE_SUBSYS_VM   (1)
57*8d741a5dSApple OSS Distributions 
58*8d741a5dSApple OSS Distributions enum vm_subsys_error_codes {
59*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_PREFIX = 0,
60*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_NO_DATA,
61*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_TEXT_CORRUPTION,
62*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_ADDRESS_NOT_FOUND,
63*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_PROTECTION_FAILURE,
64*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_FAULT_MEMORY_SHORTAGE,
65*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_FAULT_COPY_MEMORY_SHORTAGE,
66*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_FAULT_OBJCOPYSLOWLY_MEMORY_SHORTAGE,
67*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_FAULT_OBJIOPLREQ_MEMORY_SHORTAGE,
68*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_FAULT_INTERRUPTED,
69*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SUCCESS_NO_PAGE,
70*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_GUARDPAGE_FAULT,
71*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_NONZERO_PREEMPTION_LEVEL,
72*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_BUSYPAGE_WAIT_INTERRUPTED,
73*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_PURGEABLE_FAULT_ERROR,
74*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_OBJECT_SHADOW_SEVERED,
75*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_OBJECT_NOT_ALIVE,
76*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_OBJECT_NO_PAGER,
77*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_OBJECT_NO_PAGER_RECLAIM,
78*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_OBJECT_NO_PAGER_UNMOUNT,
79*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_OBJECT_NO_PAGER_FORCED_UNMOUNT,
80*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_OBJECT_NO_PAGER_UNGRAFT,
81*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_OBJECT_NO_PAGER_DEALLOC_PAGER,
82*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_PAGE_HAS_ERROR,
83*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_PAGE_HAS_RESTART,
84*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_FAILED_IMMUTABLE_PAGE_WRITE,
85*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_FAILED_NX_PAGE_EXEC_MAPPING,
86*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_PMAP_ENTER_RESOURCE_SHORTAGE,
87*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_COMPRESSOR_GET_OUT_OF_RANGE,
88*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_COMPRESSOR_GET_NO_PAGE,
89*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_COMPRESSOR_DECOMPRESS_FAILED,
90*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SUBMAP_NO_COW_ON_EXECUTABLE,
91*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SUBMAP_COPY_SLOWLY_FAILED,
92*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SUBMAP_COPY_STRAT_FAILED,
93*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_VNODEPAGER_CLREAD_NO_UPL,
94*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_VNODEPAGEIN_NO_UBCINFO,
95*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_VNODEPAGEIN_FSPAGEIN_FAIL,
96*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_VNODEPAGEIN_NO_UPL,
97*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_ECC_DIRTY,
98*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_ECC_CLEAN,
99*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_COPYOUTMAP_SAMEMAP_ERROR,
100*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_COPYOUTMAP_DIFFERENTMAP_ERROR,
101*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_COPYOVERWRITE_FULL_NESTED_ERROR,
102*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_COPYOVERWRITE_PARTIAL_NESTED_ERROR,
103*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_COPYOVERWRITE_PARTIAL_HEAD_NESTED_ERROR,
104*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_COPYOVERWRITE_PARTIAL_TAIL_NESTED_ERROR,
105*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_COPYOUT_INTERNAL_SIZE_ERROR,
106*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_COPYOUT_KERNEL_BUFFER_ERROR,
107*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_COPYOUT_INTERNAL_ADJUSTING_ERROR,
108*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_COPYOUT_INTERNAL_SPACE_ERROR,
109*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_ALLOCATE_KERNEL_BADFLAGS_ERROR,
110*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_ALLOCATE_KERNEL_BADMAP_ERROR,
111*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_ALLOCATE_KERNEL_BADSIZE_ERROR,
112*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_ALLOCATE_KERNEL_VMMAPENTER_ERROR,
113*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_CODE_SIGNING,
114*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_FAULTS_DISABLED,
115*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_MAX
116*8d741a5dSApple OSS Distributions };
117*8d741a5dSApple OSS Distributions #define VM_MAX_TRIAGE_STRINGS (KDBG_TRIAGE_VM_MAX)
118*8d741a5dSApple OSS Distributions 
119*8d741a5dSApple OSS Distributions /****** VM Codes End ******/
120*8d741a5dSApple OSS Distributions 
121*8d741a5dSApple OSS Distributions /****** Cluster Codes Begin ******/
122*8d741a5dSApple OSS Distributions #define KDBG_TRIAGE_SUBSYS_CLUSTER   (2)
123*8d741a5dSApple OSS Distributions 
124*8d741a5dSApple OSS Distributions enum cluster_subsys_error_codes {
125*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_CL_PREFIX = 0,
126*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_CL_PGIN_PAST_EOF,
127*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_CL_MAX
128*8d741a5dSApple OSS Distributions };
129*8d741a5dSApple OSS Distributions #define CLUSTER_MAX_TRIAGE_STRINGS (KDBG_TRIAGE_CL_MAX)
130*8d741a5dSApple OSS Distributions 
131*8d741a5dSApple OSS Distributions /****** Cluster Codes End ******/
132*8d741a5dSApple OSS Distributions 
133*8d741a5dSApple OSS Distributions /****** Shared Region Codes Begin ******/
134*8d741a5dSApple OSS Distributions #define KDBG_TRIAGE_SUBSYS_SHARED_REGION   (3)
135*8d741a5dSApple OSS Distributions 
136*8d741a5dSApple OSS Distributions enum shared_region_subsys_error_codes {
137*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_SHARED_REGION_PREFIX = 0,
138*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_SHARED_REGION_NO_UPL,
139*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_SHARED_REGION_SLIDE_ERROR,
140*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_SHARED_REGION_PAGER_MEMORY_SHORTAGE,
141*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_SHARED_REGION_MAX
142*8d741a5dSApple OSS Distributions };
143*8d741a5dSApple OSS Distributions #define SHARED_REGION_MAX_TRIAGE_STRINGS (KDBG_TRIAGE_SHARED_REGION_MAX)
144*8d741a5dSApple OSS Distributions 
145*8d741a5dSApple OSS Distributions /****** Shared Region Codes End ******/
146*8d741a5dSApple OSS Distributions 
147*8d741a5dSApple OSS Distributions /****** DYLD pager Codes Begin ******/
148*8d741a5dSApple OSS Distributions #define KDBG_TRIAGE_SUBSYS_DYLD_PAGER   (4)
149*8d741a5dSApple OSS Distributions 
150*8d741a5dSApple OSS Distributions enum dyld_pager_subsys_error_codes {
151*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_DYLD_PAGER_PREFIX = 0,
152*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_DYLD_PAGER_NO_UPL,
153*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_DYLD_PAGER_MEMORY_SHORTAGE,
154*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_DYLD_PAGER_SLIDE_ERROR,
155*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_DYLD_PAGER_CHAIN_OUT_OF_RANGE,
156*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_DYLD_PAGER_SEG_INFO_OUT_OF_RANGE,
157*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_DYLD_PAGER_SEG_SIZE_OUT_OF_RANGE,
158*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_DYLD_PAGER_SEG_PAGE_CNT_OUT_OF_RANGE,
159*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_DYLD_PAGER_NO_SEG_FOR_VA,
160*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_DYLD_PAGER_RANGE_NOT_FOUND,
161*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_DYLD_PAGER_DELTA_TOO_LARGE,
162*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_DYLD_PAGER_PAGE_START_OUT_OF_RANGE,
163*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_DYLD_PAGER_BAD_POINTER_FMT,
164*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_DYLD_PAGER_INVALID_AUTH_KEY,
165*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_DYLD_PAGER_BIND_ORDINAL,
166*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_DYLD_PAGER_MAX
167*8d741a5dSApple OSS Distributions };
168*8d741a5dSApple OSS Distributions #define DYLD_PAGER_MAX_TRIAGE_STRINGS (KDBG_TRIAGE_DYLD_PAGER_MAX)
169*8d741a5dSApple OSS Distributions 
170*8d741a5dSApple OSS Distributions /****** DYLD pager Codes End ******/
171*8d741a5dSApple OSS Distributions 
172*8d741a5dSApple OSS Distributions /****** APPLE_PROTECT_PAGER pager Codes Begin ******/
173*8d741a5dSApple OSS Distributions #define KDBG_TRIAGE_SUBSYS_APPLE_PROTECT_PAGER   (5)
174*8d741a5dSApple OSS Distributions 
175*8d741a5dSApple OSS Distributions enum apple_protect_pager_subsys_error_codes {
176*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_APPLE_PROTECT_PAGER_PREFIX = 0,
177*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_APPLE_PROTECT_PAGER_MEMORY_SHORTAGE,
178*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_APPLE_PROTECT_PAGER_MAX
179*8d741a5dSApple OSS Distributions };
180*8d741a5dSApple OSS Distributions #define APPLE_PROTECT_PAGER_MAX_TRIAGE_STRINGS (KDBG_TRIAGE_APPLE_PROTECT_PAGER_MAX)
181*8d741a5dSApple OSS Distributions 
182*8d741a5dSApple OSS Distributions /****** APPLE_PROTECT pager Codes End ******/
183*8d741a5dSApple OSS Distributions 
184*8d741a5dSApple OSS Distributions /****** Kext ktriage Begin ******/
185*8d741a5dSApple OSS Distributions /*
186*8d741a5dSApple OSS Distributions  * kexts can define their own strings and augment them with an argument.
187*8d741a5dSApple OSS Distributions  * ktriage only needs to know the subsystem id, and expects that the first
188*8d741a5dSApple OSS Distributions  * string will be the subsystem prefix string.
189*8d741a5dSApple OSS Distributions  *
190*8d741a5dSApple OSS Distributions  * Right now we don't support dynamically adding or removing subsystems.
191*8d741a5dSApple OSS Distributions  */
192*8d741a5dSApple OSS Distributions 
193*8d741a5dSApple OSS Distributions #define KDBG_TRIAGE_SUBSYS_APFS    (7)
194*8d741a5dSApple OSS Distributions #define KDBG_TRIAGE_SUBSYS_DECMPFS (8)
195*8d741a5dSApple OSS Distributions 
196*8d741a5dSApple OSS Distributions /****** Kext ktriage End ******/
197*8d741a5dSApple OSS Distributions 
198*8d741a5dSApple OSS Distributions /****** Corpse pager Codes Begin ******/
199*8d741a5dSApple OSS Distributions #define KDBG_TRIAGE_SUBSYS_CORPSE   (9)
200*8d741a5dSApple OSS Distributions 
201*8d741a5dSApple OSS Distributions enum corpse_subsys_error_codes {
202*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_CORPSE_PREFIX = 0,
203*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_CORPSE_PROC_TOO_BIG,
204*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_CORPSE_FAIL_LIBGMALLOC,
205*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_CORPSE_BLOCKED_JETSAM,
206*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_CORPSE_LIMIT,
207*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_CORPSES_DISABLED,
208*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_CORPSE_DISABLED_FOR_PROC,
209*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_CORPSE_MAX
210*8d741a5dSApple OSS Distributions };
211*8d741a5dSApple OSS Distributions #define CORPSE_MAX_TRIAGE_STRINGS (KDBG_TRIAGE_CORPSE_MAX)
212*8d741a5dSApple OSS Distributions 
213*8d741a5dSApple OSS Distributions /****** Corpse pager Codes End ******/
214*8d741a5dSApple OSS Distributions 
215*8d741a5dSApple OSS Distributions /****** VM API Sanitization Codes Begin ******/
216*8d741a5dSApple OSS Distributions #define KDBG_TRIAGE_SUBSYS_VM_SANITIZE   (10)
217*8d741a5dSApple OSS Distributions 
218*8d741a5dSApple OSS Distributions enum vm_sanitize_subsys_error_codes {
219*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_PREFIX = 0,
220*8d741a5dSApple OSS Distributions 
221*8d741a5dSApple OSS Distributions 	// value 0 is also used for skipping ktriage
222*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_SKIP = KDBG_TRIAGE_VM_SANITIZE_PREFIX,
223*8d741a5dSApple OSS Distributions 
224*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_MACH_MAKE_MEMORY_ENTRY = 1,
225*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_MACH_MEMORY_ENTRY_PAGE_OP,
226*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_MACH_MEMORY_ENTRY_RANGE_OP,
227*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_MACH_MEMORY_ENTRY_MAP_SIZE,
228*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_MACH_MEMORY_OBJECT_MEMORY_ENTRY,
229*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_VM_ALLOCATE_FIXED,
230*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_VM_ALLOCATE_ANYWHERE,
231*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_VM_DEALLOCATE,
232*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_MUNMAP,
233*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_VM_MAP_REMAP,
234*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_MMAP,
235*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_MAP_WITH_LINKING_NP,
236*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_ENTER_MEM_OBJ,
237*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_ENTER_MEM_OBJ_CTL,
238*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_MREMAP_ENCRYPTED,
239*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_VM_WIRE_USER,
240*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_VM_UNWIRE_USER,
241*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_VM_MAP_WIRE,
242*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_VM_MAP_UNWIRE,
243*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_VSLOCK,
244*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_VSUNLOCK,
245*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_VM_MAP_COPY_OVERWRITE,
246*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_VM_MAP_COPYIN,
247*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_VM_MAP_READ_USER,
248*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_VM_MAP_WRITE_USER,
249*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_MACH_VM_INHERIT,
250*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_VM_INHERIT,
251*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_VM32_INHERIT,
252*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_VM_MAP_INHERIT,
253*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_MINHERIT,
254*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_MACH_VM_PROTECT,
255*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_VM_PROTECT,
256*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_VM32_PROTECT,
257*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_VM_MAP_PROTECT,
258*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_MPROTECT,
259*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_USERACC,
260*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_VM_MAP_MSYNC,
261*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_MSYNC,
262*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_VM_MAP_MACHINE_ATTRIBUTE,
263*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_MINCORE,
264*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_VM_MAP_PAGE_RANGE_INFO,
265*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_VM_MAP_PAGE_RANGE_QUERY,
266*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_TEST,
267*8d741a5dSApple OSS Distributions 
268*8d741a5dSApple OSS Distributions 	KDBG_TRIAGE_VM_SANITIZE_MAX
269*8d741a5dSApple OSS Distributions };
270*8d741a5dSApple OSS Distributions #define VM_SANITIZE_MAX_TRIAGE_STRINGS (KDBG_TRIAGE_VM_SANITIZE_MAX)
271*8d741a5dSApple OSS Distributions 
272*8d741a5dSApple OSS Distributions /****** VM API Sanitization Codes End ******/
273*8d741a5dSApple OSS Distributions 
274*8d741a5dSApple OSS Distributions /* please update KDBG_TRIAGE_SUBSYS_MAX when adding a new subsystem */
275*8d741a5dSApple OSS Distributions 
276*8d741a5dSApple OSS Distributions #define KDBG_TRIAGE_SUBSYS_MAX  KDBG_TRIAGE_SUBSYS_VM_SANITIZE
277*8d741a5dSApple OSS Distributions 
278*8d741a5dSApple OSS Distributions #endif /* BSD_SYS_KDEBUG_TRIAGE_H */
279