Path Lines of Code bsd/kern/counter_test.c 210 bsd/tests/bsd_tests.c 251 bsd/tests/copyio_tests.c 441 bsd/tests/ctrr_test_sysctl.c 18 bsd/tests/pmap_test_sysctl.c 46 bsd/tests/ptrauth_data_tests_sysctl.c 59 iokit/Tests/TestCollections.cpp 847 iokit/Tests/TestContainers.cpp 419 iokit/Tests/TestDevice.cpp 139 iokit/Tests/TestIOMemoryDescriptor.cpp 808 iokit/Tests/Tests.cpp 631 iokit/Tests/Tests.h 1 libkdd/tests/Tests.swift 1092 libkdd/tests/kdd_bridge.h 6 libkern/c++/Tests/TestSerialization/test1/test1_main.cpp 68 libkern/c++/Tests/TestSerialization/test2/test2_main.cpp 120 libkern/kxld/tests/kextcopyright.c 155 libkern/kxld/tests/kxld_array_test.c 96 libkern/kxld/tests/kxld_dict_test.c 107 libkern/kxld/tests/kxld_test.c 13 libkern/kxld/tests/kxld_test.h 3 libkern/kxld/tests/loadtest.py 24 osfmk/arm64/platform_tests.c 1129 osfmk/kern/test_lock.c 783 osfmk/kern/test_mpsc_queue.c 72 osfmk/tests/bitmap_test.c 122 osfmk/tests/kernel_tests.c 1893 osfmk/tests/ktest.c 102 osfmk/tests/ktest.h 480 osfmk/tests/ktest_accessor.c 44 osfmk/tests/ktest_emit.c 185 osfmk/tests/ktest_global.c 75 osfmk/tests/ktest_internal.h 48 osfmk/tests/pmap_tests.c 91 osfmk/tests/ptrauth_data_tests.c 61 osfmk/tests/test_thread_call.c 117 osfmk/tests/vfp_state_test.c 170 osfmk/tests/xnupost.h 87 osfmk/vm/vm_tests.c 808 san/kasan-test-arm64.s 52 san/kasan-test-x86_64.s 99 tests/IP6_EXTHDR_CHECK_61873584.c 72 tests/atm_diagnostic_flag.c 69 tests/atm_diagnostic_flag_entitled.c 68 tests/avx.c 730 tests/backtracing.c 230 tests/benchmark/helpers.c 75 tests/benchmark/helpers.h 14 tests/bounded_array.cpp 6 tests/bounded_array_ref.cpp 6 tests/bounded_array_ref_src/begin_end.cpp 32 tests/bounded_array_ref_src/compare.equal.nullptr.cpp 28 tests/bounded_array_ref_src/ctor.C_array.cpp 50 tests/bounded_array_ref_src/ctor.begin_end.cpp 52 tests/bounded_array_ref_src/ctor.bounded_array.cpp 56 tests/bounded_array_ref_src/ctor.bounded_ptr.cpp 73 tests/bounded_array_ref_src/ctor.default.cpp 29 tests/bounded_array_ref_src/ctor.raw_ptr.cpp 87 tests/bounded_array_ref_src/data.cpp 36 tests/bounded_array_ref_src/for_loop.cpp 22 tests/bounded_array_ref_src/operator.bool.cpp 30 tests/bounded_array_ref_src/operator.subscript.cpp 27 tests/bounded_array_ref_src/size.cpp 36 tests/bounded_array_ref_src/slice.cpp 198 tests/bounded_array_ref_src/test_policy.h 44 tests/bounded_array_src/begin_end.cpp 46 tests/bounded_array_src/ctor.aggregate_init.cpp 48 tests/bounded_array_src/ctor.default.cpp 59 tests/bounded_array_src/data.cpp 48 tests/bounded_array_src/for_loop.cpp 21 tests/bounded_array_src/operator.subscript.cpp 46 tests/bounded_array_src/size.cpp 23 tests/bounded_array_src/test_policy.h 20 tests/bounded_ptr.cpp 6 tests/bounded_ptr_03.cpp 5 tests/bounded_ptr_src/arith.add.cpp 97 tests/bounded_ptr_src/arith.add_assign.cpp 151 tests/bounded_ptr_src/arith.difference.cpp 103 tests/bounded_ptr_src/arith.inc_dec.cpp 128 tests/bounded_ptr_src/arith.subtract.cpp 81 tests/bounded_ptr_src/arith.subtract_assign.cpp 148 tests/bounded_ptr_src/assign.convert.cpp 102 tests/bounded_ptr_src/assign.nullptr.cpp 40 tests/bounded_ptr_src/compare.equal.cpp 123 tests/bounded_ptr_src/compare.equal.nullptr.cpp 45 tests/bounded_ptr_src/compare.equal.raw.cpp 123 tests/bounded_ptr_src/compare.order.cpp 131 tests/bounded_ptr_src/compare.order.raw.cpp 131 tests/bounded_ptr_src/ctor.begin_end.cpp 70 tests/bounded_ptr_src/ctor.convert.cpp 105 tests/bounded_ptr_src/ctor.default.cpp 25 tests/bounded_ptr_src/ctor.nullptr.cpp 83 tests/bounded_ptr_src/deref.cpp 109 tests/bounded_ptr_src/discard_bounds.cpp 77 tests/bounded_ptr_src/example.malloc.cpp 50 tests/bounded_ptr_src/operator_bool.cpp 33 tests/bounded_ptr_src/reinterpret_cast.cpp 65 tests/bounded_ptr_src/subscript.cpp 167 tests/bounded_ptr_src/test_utils.h 16 tests/bounded_ptr_src/unsafe_discard_bounds.cpp 89 tests/bpflib.c 160 tests/bpflib.h 13 tests/coalition_info.c 53 tests/contextswitch.c 228 tests/correct_kernel_booted.c 142 tests/counter/benchmark.c 213 tests/counter/benchmark.lua 94 tests/counter/common.c 20 tests/counter/common.h 5 tests/counter/counter.c 151 tests/cpucount.c 125 tests/data_protection.c 858 tests/debug_control_port_for_pid.c 21 tests/decompression_failure.c 142 tests/dev_zero.c 23 tests/dirtiness_tracking.c 123 tests/disk_mount_conditioner.c 396 tests/drop_priv.c 52 tests/drop_priv.h 4 tests/exc_helpers.c 152 tests/exc_helpers.h 12 tests/exc_resource_threads.c 143 tests/exception_ports_info.c 142 tests/exception_tests.c 38 tests/exec-race-58566604.c 128 tests/extended_getdirentries64.c 38 tests/extract_right_soft_fail.c 89 tests/fcntl.c 25 tests/fd.c 108 tests/fd_aio_fsync_uaf.c 51 tests/fd_send.c 164 tests/fduiomove.c 21 tests/filter_policy.c 136 tests/flow_div_doubleconnect_55917185.c 44 tests/fp_exception.c 69 tests/freebsd_waitpid_nohang.c 31 tests/ftruncate.c 61 tests/get_shared_cache_address.c 30 tests/gettimeofday.c 35 tests/gettimeofday_29192647.c 43 tests/host_notifications.c 43 tests/host_statistics_rate_limiting.c 159 tests/hvbench.c 291 tests/hvtest_x86.m 1165 tests/hvtest_x86_asm.s 415 tests/hvtest_x86_guest.c 54 tests/hvtest_x86_guest.h 28 tests/imm_pinned_control_port.c 278 tests/imm_pinned_control_port_crasher.c 206 tests/immovable_rights.c 41 tests/immovable_send.c 168 tests/immovable_send_client.c 110 tests/in_cksum.c 62 tests/in_cksum.h 4 tests/in_cksum_test.c 202 tests/intrusive_shared_ptr.cpp 6 tests/intrusive_shared_ptr_src/abi.callee.raw.cpp 6 tests/intrusive_shared_ptr_src/abi.callee.smart.cpp 7 tests/intrusive_shared_ptr_src/abi.caller.raw.cpp 9 tests/intrusive_shared_ptr_src/abi.caller.smart.cpp 13 tests/intrusive_shared_ptr_src/abi.size_alignment.cpp 114 tests/intrusive_shared_ptr_src/abi_helper.h 16 tests/intrusive_shared_ptr_src/assign.copy.cpp 87 tests/intrusive_shared_ptr_src/assign.move.cpp 88 tests/intrusive_shared_ptr_src/assign.nullptr.cpp 34 tests/intrusive_shared_ptr_src/cast.const.cpp 52 tests/intrusive_shared_ptr_src/cast.reinterpret.cpp 57 tests/intrusive_shared_ptr_src/cast.static.cpp 61 tests/intrusive_shared_ptr_src/compare.equal.cpp 66 tests/intrusive_shared_ptr_src/compare.equal.nullptr.cpp 40 tests/intrusive_shared_ptr_src/compare.equal.raw.cpp 78 tests/intrusive_shared_ptr_src/ctor.copy.cpp 71 tests/intrusive_shared_ptr_src/ctor.default.cpp 29 tests/intrusive_shared_ptr_src/ctor.move.cpp 82 tests/intrusive_shared_ptr_src/ctor.nullptr.cpp 25 tests/intrusive_shared_ptr_src/ctor.ptr.no_retain.cpp 27 tests/intrusive_shared_ptr_src/ctor.ptr.retain.cpp 27 tests/intrusive_shared_ptr_src/deref.cpp 27 tests/intrusive_shared_ptr_src/detach.cpp 23 tests/intrusive_shared_ptr_src/dtor.cpp 24 tests/intrusive_shared_ptr_src/get.cpp 39 tests/intrusive_shared_ptr_src/operator.bool.cpp 34 tests/intrusive_shared_ptr_src/reset.cpp 40 tests/intrusive_shared_ptr_src/reset.no_retain.cpp 56 tests/intrusive_shared_ptr_src/reset.retain.cpp 67 tests/intrusive_shared_ptr_src/swap.cpp 68 tests/intrusive_shared_ptr_src/test_policy.h 69 tests/invalid_setaudit_57414044.c 37 tests/ioc_str.h 120 tests/ioconnectasyncmethod_57641955.c 26 tests/iokit/io_catalog_send_data.m 104 tests/ioperf.c 195 tests/ipc_mach_port.c 162 tests/ipsec.m 517 tests/jumbo_va_spaces_28530648.c 40 tests/kas_info.c 197 tests/kdebug.c 1395 tests/kernel_inspection.c 155 tests/kernel_mtx_perf.c 342 tests/kevent_continuous_time.c 192 tests/kevent_pty.c 237 tests/kevent_qos.c 1327 tests/kpc.c 478 tests/kperf.c 902 tests/kperf_backtracing.c 443 tests/kperf_helpers.c 31 tests/kperf_helpers.h 13 tests/kqueue_add_and_trigger.c 26 tests/kqueue_close.c 53 tests/kqueue_fifo_18776047.c 130 tests/kqueue_file_tests.c 1468 tests/kqueue_timer_tests.c 347 tests/ktrace_helpers.h 62 tests/ldt.c 799 tests/ldt_code32.s 251 tests/lockf_uaf_poc/lockf_uaf_poc_70587638.c 115 tests/ltable_exhaustion_test.c 22 tests/mach_boottime_usec.c 17 tests/mach_continuous_time.c 291 tests/mach_eventlink.c 500 tests/mach_exception_reply.c 391 tests/mach_get_times.c 34 tests/mach_port_deallocate_21692215.c 28 tests/mach_port_insert_right.c 42 tests/mach_port_mod_refs.c 50 tests/mach_timebase_info.c 16 tests/macho_size_63133398.c 3181 tests/memcmp_zero.c 77 tests/memorystatus_assertion_helpers.c 176 tests/memorystatus_assertion_helpers.h 24 tests/memorystatus_freeze_test.c 982 tests/memorystatus_is_assertion.c 263 tests/memorystatus_vm_map_fork.c 250 tests/memorystatus_zone_test.c 568 tests/mktimer_kobject.c 29 tests/mo_immovable_receive.c 178 tests/monotonic_core.c 233 tests/monotonic_uncore.c 310 tests/mpsc.c 18 tests/net_bridge.c 3014 tests/net_tun_pr_35136664.c 49 tests/net_tuntests.c 956 tests/netagent_kctl_header_infodisc_56190773.c 40 tests/netagent_race_infodisc_56244905.c 175 tests/netbsd_utimensat.c 128 tests/ntp_adjtime_29192647.c 229 tests/os_atomic.cpp 28 tests/os_proc.c 71 tests/os_refcnt.c 291 tests/os_unaligned.c 29 tests/osptr_compat.cpp 12 tests/perf_compressor.c 367 tests/perf_exit.c 142 tests/perf_exit_proc.c 79 tests/perf_spawn_fork.c 69 tests/perf_vmfault.c 376 tests/pfkey.c 1546 tests/pfz.c 202 tests/phys_footprint_interval_max.c 57 tests/pid_for_task_test.c 14 tests/pipe_drain.c 49 tests/pipe_kevent.c 41 tests/pipe_read_infloop_55437634.c 36 tests/poll.c 98 tests/poll_select_kevent_paired_fds.c 727 tests/port_descriptions.c 176 tests/posix_spawn_archpref.c 55 tests/posix_spawn_archpref_helper.c 18 tests/posix_spawn_file_actions.c 121 tests/posix_spawn_file_actions_add_fileportdup2_np.c 59 tests/posix_spawn_posix_cred.c 71 tests/preoslog.c 73 tests/print_apple_array.c 21 tests/prioritize_process_launch.c 555 tests/prioritize_process_launch_helper.c 274 tests/priority_queue.cpp 219 tests/prng.c 62 tests/proc_core_name_24152432.c 162 tests/proc_info.c 1715 tests/proc_info_44873309.c 32 tests/proc_info_list_kthreads.c 75 tests/proc_info_udata.c 39 tests/proc_pidpath_audittoken.c 89 tests/proc_rlimit.c 183 tests/proc_uuid_policy_26567533.c 32 tests/processor_info.c 112 tests/ptrauth_data_tests.c 13 tests/ptrauth_failure.c 35 tests/pwrite_avoid_sigxfsz_28581610.c 67 tests/quiesce_counter.c 38 tests/read_inspect.c 473 tests/recvmsg_x_test.c 145 tests/regression_17272465.c 20 tests/remote_time.c 22 tests/rename_excl.c 83 tests/restart.c 127 tests/restrict_jit.c 23 tests/route_output_stack_oflow_56033075.c 65 tests/safe_allocation.cpp 6 tests/safe_allocation_src/assign.copy.cpp 9 tests/safe_allocation_src/assign.move.cpp 117 tests/safe_allocation_src/assign.nullptr.cpp 33 tests/safe_allocation_src/begin_end.cpp 53 tests/safe_allocation_src/compare.equal.nullptr.cpp 27 tests/safe_allocation_src/ctor.adopt.cpp 28 tests/safe_allocation_src/ctor.allocate.cpp 53 tests/safe_allocation_src/ctor.copy.cpp 11 tests/safe_allocation_src/ctor.default.cpp 33 tests/safe_allocation_src/ctor.move.cpp 87 tests/safe_allocation_src/ctor.nullptr.cpp 41 tests/safe_allocation_src/data.cpp 31 tests/safe_allocation_src/dtor.cpp 37 tests/safe_allocation_src/operator.bool.cpp 33 tests/safe_allocation_src/operator.subscript.cpp 64 tests/safe_allocation_src/size.cpp 39 tests/safe_allocation_src/swap.cpp 77 tests/safe_allocation_src/test_utils.h 83 tests/safe_allocation_src/usage.for_loop.cpp 21 tests/safe_allocation_src/usage.two_dimensions.cpp 26 tests/sbuf_tests.c 9 tests/scanf.c 152 tests/sched_cluster_bound_threads.c 109 tests/scm_rights_leak.c 65 tests/select_stress.c 283 tests/settimeofday_29193041.c 100 tests/settimeofday_29193041_entitled.c 89 tests/shared_cache_reslide_test.c 187 tests/shared_cache_tests.c 34 tests/sigchld_return.c 81 tests/sigcont_return.c 24 tests/signal_stack.c 43 tests/sioc-if-addr-bounds.c 735 tests/socket_0byte_udp_poll_58140856.c 77 tests/socket_bind_35243417.c 87 tests/socket_bind_35685803.c 182 tests/socket_poll_close_25786011.c 20 tests/socket_raw_uint8_max.c 9 tests/sr_entitlement.c 71 tests/sr_entitlement_helper.c 11 tests/stackshot_accuracy.m 400 tests/stackshot_block_owner_14362384.m 725 tests/stackshot_idle_25570396.m 195 tests/stackshot_spawn_exit_stress.c 103 tests/stackshot_tests.m 1990 tests/stackshot_translated_child.c 13 tests/subsystem_root_path.c 32 tests/subsystem_root_path.h 24 tests/subsystem_root_path_helper.c 50 tests/suspended_spawn_26184412.c 68 tests/sysctl_get_owned_vmobjects.c 122 tests/sysctl_hw.c 32 tests/sysctl_system_version.c 19 tests/sysctl_wire_limits.c 162 tests/system_version_compat.c 221 tests/task_create_suid_cred.c 210 tests/task_filter_msg.c 61 tests/task_ident_test.c 49 tests/task_info.c 772 tests/task_info_28439149.c 68 tests/task_is_self.c 20 tests/task_policy.c 488 tests/task_vm_info_decompressions.c 166 tests/tcp_input_outputopts_uaf_56155583.c 79 tests/telemetry.c 218 tests/test_sysctl_kern_procargs_25397314.m 293 tests/test_utils.c 20 tests/test_utils.h 5 tests/testposixshm.c 163 tests/text_corruption.c 45 tests/text_corruption_helper.c 45 tests/thread_call_race_71455282.c 42 tests/thread_group_set_32261625.c 51 tests/thread_set_state_arm64_cpsr.c 44 tests/time.c 77 tests/trial_experiments.c 192 tests/tty_hang.c 116 tests/turnstile_multihop.c 675 tests/turnstile_multihop_helper.h 173 tests/turnstile_multihop_types.h 25 tests/turnstiles_test.c 330 tests/ulock.c 71 tests/unp_connect_thread_uaf.c 116 tests/utimensat.c 69 tests/verify_kalloc_config.c 58 tests/vm/compression_sweep.c 63 tests/vm/entitlement_increased_memory_limit.c 110 tests/vm/fault_throughput.c 477 tests/vm/fault_throughput.lua 90 tests/vm/kern_max_task_pmem.c 27 tests/vm/memorystatus_sort_test.c 256 tests/vm/mixed_pagesize.c 19 tests/vm/page_size_globals.c 33 tests/vm/perf_madvise.c 165 tests/vm/perf_madvise.lua 62 tests/vm/retired_pages.c 30 tests/vm/vm_allocation.c 3197 tests/vm/zone_gc_replenish_test.c 57 tests/vm_kern_count_wired_kernelcache.c 56 tests/vm_memory_tests_src/common.c 142 tests/vm_memory_tests_src/mach_vm_tests.h 55 tests/vm_memory_tests_src/main.c 119 tests/vm_memory_tests_src/server.c 52 tests/vm_memory_tests_src/vm_tests.c 517 tests/vm_phys_footprint.c 1198 tests/vm_set_max_addr_helper.c 15 tests/vm_set_max_addr_test.c 44 tests/vm_spawn_tool.c 47 tests/vm_test_code_signing_helper.c 130 tests/vm_test_mach_map.c 1575 tests/voucher_entry_18826844.c 45 tests/voucher_traps.c 76 tests/vsock.c 594 tests/work_interval_test.c 166 tests/work_interval_test_unentitled.c 148 tests/workq_sigprof.c 56 tests/x18.c 36 tests/xnu_quick_test.c 77 tests/xnu_quick_test_getsetpriority.c 30 tests/xnu_quick_test_helpers.c 89 tests/xnu_quick_test_helpers.h 11 tests/zalloc.c 13 tests/zalloc_buddy.c 103 tools/tests/MPMMTest/KQMPMMtest.c 792 tools/tests/MPMMTest/MPMMtest.c 894 tools/tests/MPMMTest/MPMMtest_run.sh 45 tools/tests/TLBcoherency/TLBcoherency.c 226 tools/tests/affinity/pool.c 372 tools/tests/affinity/sets.c 363 tools/tests/affinity/tags.c 134 tools/tests/execperf/exit-asm.S 61 tools/tests/execperf/exit.c 15 tools/tests/execperf/printexecinfo.c 70 tools/tests/execperf/run.c 77 tools/tests/execperf/test.sh 49 tools/tests/jitter/timer_jitter.c 349 tools/tests/kernpost_test_report/kernpost_test_report.m 335 tools/tests/mktimer/mktimer_test.c 83 tools/tests/perf_index/PerfIndex_COPS_Module/PITest.h 22 tools/tests/perf_index/PerfIndex_COPS_Module/PITest.m 128 tools/tests/perf_index/PerfIndex_COPS_Module/PerfIndex.h 3 tools/tests/perf_index/fail.h 15 tools/tests/perf_index/md5.c 127 tools/tests/perf_index/md5.h 5 tools/tests/perf_index/perf_index.c 199 tools/tests/perf_index/perf_index.h 7 tools/tests/perf_index/perfindex-compile.c 41 tools/tests/perf_index/perfindex-cpu.c 13 tools/tests/perf_index/perfindex-fault.c 8 tools/tests/perf_index/perfindex-file_create.c 23 tools/tests/perf_index/perfindex-file_read.c 24 tools/tests/perf_index/perfindex-file_write.c 25 tools/tests/perf_index/perfindex-iperf.c 17 tools/tests/perf_index/perfindex-memory.c 61 tools/tests/perf_index/perfindex-ram_file_create.c 24 tools/tests/perf_index/perfindex-ram_file_read.c 26 tools/tests/perf_index/perfindex-ram_file_write.c 26 tools/tests/perf_index/perfindex-syscall.c 10 tools/tests/perf_index/perfindex-zfod.c 8 tools/tests/perf_index/ramdisk.c 31 tools/tests/perf_index/ramdisk.h 5 tools/tests/perf_index/test_controller.py 50 tools/tests/perf_index/test_fault_helper.c 75 tools/tests/perf_index/test_fault_helper.h 9 tools/tests/perf_index/test_file_helper.c 170 tools/tests/perf_index/test_file_helper.h 13 tools/tests/personas/persona_mgr.c 283 tools/tests/personas/persona_spawn.c 334 tools/tests/personas/persona_test.h 185 tools/tests/personas/persona_test_run_src.sh 386 tools/tests/superpages/measure_tlbs.c 118 tools/tests/superpages/testsp.c 634 tools/tests/testkext/pgokext/pgokext.c 13 tools/tests/testkext/testthreadcall.cpp 80 tools/tests/testkext/testthreadcall.h 11 tools/tests/testkext/testvmx.cpp 30 tools/tests/testkext/testvmx.h 7 tools/tests/zero-to-n/zero-to-n.c 1057