Rizin
unix-like reverse engineering framework and cli tools
mig_index.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2019-2021 RizinOrg <info@rizin.re>
2 // SPDX-FileCopyrightText: 2019 Francesco Tamagni <mrmacete@protonmail.ch>
3 // SPDX-License-Identifier: LGPL-3.0-only
4 
5 // clang-format off
6 
7 /*
8  * This file is generated in this way:
9  *
10  * python3 build_mig_index.py ~/xnu-4570.51.1/bsd/kern/trace_codes traps.json > mig_index.h
11  *
12  *
13  * The traps.json file is generated from any dyld cache using the machtraps.py rzpipe script.
14  *
15  */
16 
17 #ifndef RZ_MIG_INDEX_H
18 #define RZ_MIG_INDEX_H
19 
20 #define RZ_MIG_INDEX_LEN 846
21 
22 static const char *mig_index[RZ_MIG_INDEX_LEN] = {
23  "65", "mach_notify_port_deleted",
24  "69", "mach_notify_port_destroyed",
25  "70", "mach_notify_no_senders",
26  "71", "mach_notify_send_once",
27  "72", "mach_notify_dead_name",
28  "123", "audit_triggers",
29  "200", "host_info",
30  "201", "host_kernel_version",
31  "202", "host_page_size",
32  "203", "mach_memory_object_memory_entry",
33  "204", "host_processor_info",
34  "205", "host_get_io_master",
35  "206", "host_get_clock_service",
36  "207", "kmod_get_info",
37  "209", "host_virtual_physical_table_info",
38  "210", "host_ipc_hash_info",
39  "211", "enable_bluebox",
40  "212", "disable_bluebox",
41  "213", "processor_set_default",
42  "214", "processor_set_create",
43  "215", "mach_memory_object_memory_entry_64",
44  "216", "host_statistics",
45  "217", "host_request_notification",
46  "218", "host_lockgroup_info",
47  "219", "host_statistics64",
48  "220", "mach_zone_info",
49  "221", "mach_zone_force_gc",
50  "222", "_kernelrpc_host_create_mach_voucher",
51  "223", "host_register_mach_voucher_attr_manager",
52  "224", "host_register_well_known_mach_voucher_attr_manager",
53  "225", "host_set_atm_diagnostic_flag",
54  "227", "mach_memory_info",
55  "228", "host_set_multiuser_config_flags",
56  "231", "mach_zone_info_for_zone",
57  "232", "mach_zone_info_for_largest_zone",
58  "233", "mach_zone_get_zlog_zones",
59  "234", "mach_zone_get_btlog_records",
60  "400", "host_get_boot_info",
61  "401", "host_reboot",
62  "402", "host_priv_statistics",
63  "403", "host_default_memory_manager",
64  "404", "vm_wire",
65  "405", "thread_wire",
66  "406", "vm_allocate_cpm",
67  "407", "host_processors",
68  "408", "host_get_clock_control",
69  "409", "kmod_create",
70  "410", "kmod_destroy",
71  "411", "kmod_control",
72  "412", "host_get_special_port",
73  "413", "host_set_special_port",
74  "414", "host_set_exception_ports",
75  "415", "host_get_exception_ports",
76  "416", "host_swap_exception_ports",
77  "417", "host_load_symbol_table",
78  "418", "mach_vm_wire",
79  "419", "host_processor_sets",
80  "420", "host_processor_set_priv",
81  "421", "set_dp_control_port",
82  "422", "get_dp_control_port",
83  "423", "host_set_UNDServer",
84  "424", "host_get_UNDServer",
85  "425", "kext_request",
86  "600", "host_security_create_task_token",
87  "601", "host_security_set_task_token",
88  "999", "mach_gss_init_sec_context",
89  "1000", "clock_get_time",
90  "1001", "clock_get_attributes",
91  "1002", "clock_alarm",
92  "1003", "mach_gss_accept_sec_context_v2",
93  "1004", "mach_gss_hold_cred",
94  "1005", "mach_gss_unhold_cred",
95  "1023", "lockd_request",
96  "1024", "lockd_ping",
97  "1025", "lockd_shutdown",
98  "1040", "netname_check_in",
99  "1041", "netname_look_up",
100  "1042", "netname_check_out",
101  "1043", "netname_version",
102  "1200", "clock_set_time",
103  "1201", "clock_set_attributes",
104  "2000", "memory_object_get_attributes",
105  "2001", "memory_object_change_attributes",
106  "2002", "memory_object_synchronize_completed",
107  "2003", "memory_object_lock_request",
108  "2004", "memory_object_destroy",
109  "2005", "memory_object_upl_request",
110  "2006", "memory_object_super_upl_request",
111  "2007", "memory_object_cluster_size",
112  "2008", "memory_object_page_op",
113  "2009", "memory_object_recover_named",
114  "2010", "memory_object_release_name",
115  "2011", "memory_object_range_op",
116  "2050", "upl_abort",
117  "2051", "upl_abort_range",
118  "2052", "upl_commit",
119  "2053", "upl_commit_range",
120  "2200", "memory_object_init",
121  "2201", "memory_object_terminate",
122  "2202", "memory_object_data_request",
123  "2203", "memory_object_data_return",
124  "2204", "memory_object_data_initialize",
125  "2205", "memory_object_data_unlock",
126  "2206", "memory_object_synchronize",
127  "2207", "memory_object_map",
128  "2208", "memory_object_last_unmap",
129  "2209", "memory_object_data_reclaim",
130  "2250", "memory_object_create",
131  "2275", "default_pager_object_create",
132  "2276", "default_pager_info",
133  "2277", "default_pager_objects",
134  "2278", "default_pager_object_pages",
135  "2280", "default_pager_backing_store_create",
136  "2281", "default_pager_backing_store_delete",
137  "2282", "default_pager_backing_store_info",
138  "2283", "default_pager_add_file",
139  "2284", "default_pager_triggers",
140  "2285", "default_pager_info_64",
141  "2295", "default_pager_space_alert",
142  "2401", "exception_raise",
143  "2402", "exception_raise_state",
144  "2403", "exception_raise_state_identity",
145  "2405", "mach_exception_raise",
146  "2406", "mach_exception_raise_state",
147  "2407", "mach_exception_raise_state_identity",
148  "2800", "io_object_get_class",
149  "2801", "io_object_conforms_to",
150  "2802", "io_iterator_next",
151  "2803", "io_iterator_reset",
152  "2804", "io_service_get_matching_services",
153  "2805", "io_registry_entry_get_property",
154  "2806", "io_registry_create_iterator",
155  "2807", "io_registry_iterator_enter_entry",
156  "2808", "io_registry_iterator_exit_entry",
157  "2809", "io_registry_entry_from_path",
158  "2810", "io_registry_entry_get_name",
159  "2811", "io_registry_entry_get_properties",
160  "2812", "io_registry_entry_get_property_bytes",
161  "2813", "io_registry_entry_get_child_iterator",
162  "2814", "io_registry_entry_get_parent_iterator",
163  "2816", "io_service_close",
164  "2817", "io_connect_get_service",
165  "2818", "io_connect_set_notification_port",
166  "2819", "io_connect_map_memory",
167  "2820", "io_connect_add_client",
168  "2821", "io_connect_set_properties",
169  "2822", "io_connect_method_scalarI_scalarO",
170  "2823", "io_connect_method_scalarI_structureO",
171  "2824", "io_connect_method_scalarI_structureI",
172  "2825", "io_connect_method_structureI_structureO",
173  "2826", "io_registry_entry_get_path",
174  "2827", "io_registry_get_root_entry",
175  "2828", "io_registry_entry_set_properties",
176  "2829", "io_registry_entry_in_plane",
177  "2830", "io_object_get_retain_count",
178  "2831", "io_service_get_busy_state",
179  "2832", "io_service_wait_quiet",
180  "2833", "io_registry_entry_create_iterator",
181  "2834", "io_iterator_is_valid",
182  "2836", "io_catalog_send_data",
183  "2837", "io_catalog_terminate",
184  "2838", "io_catalog_get_data",
185  "2839", "io_catalog_get_gen_count",
186  "2840", "io_catalog_module_loaded",
187  "2841", "io_catalog_reset",
188  "2842", "io_service_request_probe",
189  "2843", "io_registry_entry_get_name_in_plane",
190  "2844", "io_service_match_property_table",
191  "2845", "io_async_method_scalarI_scalarO",
192  "2846", "io_async_method_scalarI_structureO",
193  "2847", "io_async_method_scalarI_structureI",
194  "2848", "io_async_method_structureI_structureO",
195  "2849", "io_service_add_notification",
196  "2850", "io_service_add_interest_notification",
197  "2851", "io_service_acknowledge_notification",
198  "2852", "io_connect_get_notification_semaphore",
199  "2853", "io_connect_unmap_memory",
200  "2854", "io_registry_entry_get_location_in_plane",
201  "2855", "io_registry_entry_get_property_recursively",
202  "2856", "io_service_get_state",
203  "2857", "io_service_get_matching_services_ool",
204  "2858", "io_service_match_property_table_ool",
205  "2859", "io_service_add_notification_ool",
206  "2860", "io_object_get_superclass",
207  "2861", "io_object_get_bundle_identifier",
208  "2862", "io_service_open_extended",
209  "2863", "io_connect_map_memory_into_task",
210  "2864", "io_connect_unmap_memory_from_task",
211  "2865", "io_connect_method",
212  "2866", "io_connect_async_method",
213  "2867", "io_connect_set_notification_port_64",
214  "2868", "io_service_add_notification_64",
215  "2869", "io_service_add_interest_notification_64",
216  "2870", "io_service_add_notification_ool_64",
217  "2871", "io_registry_entry_get_registry_entry_id",
218  "3000", "processor_start",
219  "3001", "processor_exit",
220  "3002", "processor_info",
221  "3003", "processor_control",
222  "3004", "processor_assign",
223  "3005", "processor_get_assignment",
224  "3200", "mach_port_names",
225  "3201", "mach_port_type",
226  "3202", "mach_port_rename",
227  "3203", "mach_port_allocate_name",
228  "3204", "mach_port_allocate",
229  "3205", "mach_port_destroy",
230  "3206", "mach_port_deallocate",
231  "3207", "mach_port_get_refs",
232  "3208", "mach_port_mod_refs",
233  "3209", "_kernelrpc_mach_port_peek",
234  "3210", "mach_port_set_mscount",
235  "3211", "mach_port_get_set_status",
236  "3212", "mach_port_move_member",
237  "3213", "mach_port_request_notification",
238  "3214", "mach_port_insert_right",
239  "3215", "mach_port_extract_right",
240  "3216", "mach_port_set_seqno",
241  "3217", "mach_port_get_attributes",
242  "3218", "mach_port_set_attributes",
243  "3219", "mach_port_allocate_qos",
244  "3220", "mach_port_allocate_full",
245  "3221", "task_set_port_space",
246  "3222", "mach_port_get_srights",
247  "3223", "mach_port_space_info",
248  "3224", "mach_port_dnrequest_info",
249  "3225", "mach_port_kernel_object",
250  "3226", "mach_port_insert_member",
251  "3227", "mach_port_extract_member",
252  "3228", "mach_port_get_context",
253  "3229", "mach_port_set_context",
254  "3230", "mach_port_kobject",
255  "3231", "_kernelrpc_mach_port_construct",
256  "3232", "_kernelrpc_mach_port_destruct",
257  "3233", "_kernelrpc_mach_port_guard",
258  "3234", "_kernelrpc_mach_port_unguard",
259  "3235", "_kernelrpc_mach_port_space_basic_info",
260  "3236", "_kernelrpc_mach_port_special_reply_port_reset_link",
261  "3400", "task_create",
262  "3401", "task_terminate",
263  "3402", "task_threads",
264  "3403", "mach_ports_register",
265  "3404", "mach_ports_lookup",
266  "3405", "task_info",
267  "3406", "task_set_info",
268  "3407", "task_suspend",
269  "3408", "task_resume",
270  "3409", "task_get_special_port",
271  "3410", "task_set_special_port",
272  "3411", "thread_create",
273  "3412", "thread_create_running",
274  "3413", "task_set_exception_ports",
275  "3414", "task_get_exception_ports",
276  "3415", "task_swap_exception_ports",
277  "3416", "lock_set_create",
278  "3417", "lock_set_destroy",
279  "3418", "semaphore_create",
280  "3419", "semaphore_destroy",
281  "3420", "task_policy_set",
282  "3421", "task_policy_get",
283  "3422", "task_sample",
284  "3423", "task_policy",
285  "3424", "task_set_emulation",
286  "3425", "task_get_emulation_vector",
287  "3426", "task_set_emulation_vector",
288  "3427", "task_set_ras_pc",
289  "3428", "task_zone_info",
290  "3429", "task_assign",
291  "3430", "task_assign_default",
292  "3431", "task_get_assignment",
293  "3432", "task_set_policy",
294  "3433", "task_get_state",
295  "3434", "task_set_state",
296  "3435", "task_set_phys_footprint_limit",
297  "3436", "task_suspend2",
298  "3437", "task_resume2",
299  "3438", "task_purgable_info",
300  "3439", "task_get_mach_voucher",
301  "3440", "task_set_mach_voucher",
302  "3441", "task_swap_mach_voucher",
303  "3442", "task_generate_corpse",
304  "3443", "task_map_corpse_info",
305  "3444", "task_register_dyld_image_infos",
306  "3445", "task_unregister_dyld_image_infos",
307  "3446", "task_get_dyld_image_infos",
308  "3447", "task_register_dyld_shared_cache_image_info",
309  "3448", "task_register_dyld_set_dyld_state",
310  "3449", "task_register_dyld_get_process_state",
311  "3450", "task_map_corpse_info_64",
312  "3451", "task_inspect",
313  "3600", "thread_terminate",
314  "3601", "act_get_state",
315  "3602", "act_set_state",
316  "3603", "thread_get_state",
317  "3604", "thread_set_state",
318  "3605", "thread_suspend",
319  "3606", "thread_resume",
320  "3607", "thread_abort",
321  "3608", "thread_abort_safely",
322  "3609", "thread_depress_abort",
323  "3610", "thread_get_special_port",
324  "3611", "thread_set_special_port",
325  "3612", "thread_info",
326  "3613", "thread_set_exception_ports",
327  "3614", "thread_get_exception_ports",
328  "3615", "thread_swap_exception_ports",
329  "3616", "thread_policy",
330  "3617", "thread_policy_set",
331  "3618", "thread_policy_get",
332  "3619", "thread_sample",
333  "3620", "etap_trace_thread",
334  "3621", "thread_assign",
335  "3622", "thread_assign_default",
336  "3623", "thread_get_assignment",
337  "3624", "thread_set_policy",
338  "3625", "thread_get_mach_voucher",
339  "3626", "thread_set_mach_voucher",
340  "3627", "thread_swap_mach_voucher",
341  "3800", "vm_region",
342  "3801", "vm_allocate",
343  "3802", "vm_deallocate",
344  "3803", "vm_protect",
345  "3804", "vm_inherit",
346  "3805", "vm_read",
347  "3806", "vm_read_list",
348  "3807", "vm_write",
349  "3808", "vm_copy",
350  "3809", "vm_read_overwrite",
351  "3810", "vm_msync",
352  "3811", "vm_behavior_set",
353  "3812", "vm_map",
354  "3813", "vm_machine_attribute",
355  "3814", "vm_remap",
356  "3815", "task_wire",
357  "3816", "mach_make_memory_entry",
358  "3817", "vm_map_page_query",
359  "3818", "mach_vm_region_info",
360  "3819", "vm_mapped_pages_info",
361  "3821", "vm_region_recurse",
362  "3822", "vm_region_recurse_64",
363  "3823", "mach_vm_region_info_64",
364  "3824", "vm_region_64",
365  "3825", "mach_make_memory_entry_64",
366  "3826", "vm_map_64",
367  "3827", "vm_map_get_upl",
368  "3830", "vm_purgable_control",
369  "4000", "processor_set_statistics",
370  "4001", "processor_set_destroy",
371  "4002", "processor_set_max_priority",
372  "4003", "processor_set_policy_enable",
373  "4004", "processor_set_policy_disable",
374  "4005", "processor_set_tasks",
375  "4006", "processor_set_threads",
376  "4007", "processor_set_policy_control",
377  "4008", "processor_set_stack_usage",
378  "4009", "processor_set_info",
379  "4800", "mach_vm_allocate",
380  "4801", "mach_vm_deallocate",
381  "4802", "mach_vm_protect",
382  "4803", "mach_vm_inherit",
383  "4804", "mach_vm_read",
384  "4805", "mach_vm_read_list",
385  "4806", "mach_vm_write",
386  "4807", "mach_vm_copy",
387  "4808", "mach_vm_read_overwrite",
388  "4809", "mach_vm_msync",
389  "4810", "mach_vm_behavior_set",
390  "4811", "mach_vm_map",
391  "4812", "mach_vm_machine_attribute",
392  "4813", "mach_vm_remap",
393  "4814", "mach_vm_page_query",
394  "4815", "mach_vm_region_recurse",
395  "4816", "mach_vm_region",
396  "4817", "_mach_make_memory_entry",
397  "4818", "mach_vm_purgable_control",
398  "4819", "mach_vm_page_info",
399  "4820", "mach_vm_page_range_query",
400  "5000", "ledger_create",
401  "5001", "ledger_terminate",
402  "5002", "ledger_transfer",
403  "5003", "ledger_read",
404  "5200", "mach_get_task_label",
405  "5201", "mach_get_task_label_text",
406  "5202", "mach_get_label",
407  "5203", "mach_get_label_text",
408  "5204", "mach_set_port_label",
409  "5205", "mac_check_service",
410  "5206", "mac_port_check_service_obj",
411  "5207", "mac_port_check_access",
412  "5208", "mac_label_new",
413  "5209", "mac_request_label",
414  "5400", "mach_voucher_extract_attr_content",
415  "5401", "_kernelrpc_mach_voucher_extract_attr_recipe",
416  "5402", "mach_voucher_extract_all_attr_recipes",
417  "5403", "mach_voucher_attr_command",
418  "5404", "mach_voucher_debug_info",
419  "6000", "UNDExecute_rpc",
420  "6001", "UNDDisplayNoticeFromBundle_rpc",
421  "6002", "UNDDisplayAlertFromBundle_rpc",
422  "6003", "UNDDisplayCustomFromBundle_rpc",
423  "6004", "UNDDisplayCustomFromDictionary_rpc",
424  "6005", "UNDCancelNotification_rpc",
425  "6006", "UNDDisplayNoticeSimple_rpc",
426  "6007", "UNDDisplayAlertSimple_rpc",
427  "6200", "UNDAlertCompletedWithResult_rpc",
428  "6201", "UNDNotificationCreated_rpc",
429  "27000", "check_task_access",
430  "27001", "find_code_signature",
431  "77000", "kextd_ping",
432  "617000", "lock_acquire",
433  "617001", "lock_release",
434  "617002", "lock_try",
435  "617003", "lock_make_stable",
436  "617004", "lock_handoff",
437  "617005", "lock_handoff_accept",
438  "617200", "semaphore_signal",
439  "617201", "semaphore_signal_all",
440  "617202", "semaphore_wait",
441  "617203", "semaphore_signal_thread",
442  "617204", "semaphore_timedwait",
443  "617205", "semaphore_wait_signal",
444  "617206", "semaphore_timedwait_signal",
445  "3125107", "clock_alarm_reply",
446 };
447 
448 #endif
#define RZ_MIG_INDEX_LEN
Definition: mig_index.h:20
static const char * mig_index[RZ_MIG_INDEX_LEN]
Definition: mig_index.h:22