| /xnu-11215.1.10/tests/ |
| H A D | turnstiles_test.c | 130 pri = get_sched_pri(mach_thread_self()); in chain_locking() 149 pri = get_sched_pri(mach_thread_self()); in chain_locking() 154 pri = get_base_pri(mach_thread_self()); in chain_locking() 166 pri = get_sched_pri(mach_thread_self()); in chain_locking() 175 int old_pri = get_base_pri(mach_thread_self()); in take_lock_check_priority() 189 unboosted_pri = get_base_pri(mach_thread_self()); in take_lock_check_priority() 195 boosted_pri = get_base_pri(mach_thread_self()); in take_lock_check_priority() 202 after_unlock_pri = get_base_pri(mach_thread_self()); in take_lock_check_priority() 217 int old_pri = get_base_pri(mach_thread_self()); in try_to_take_lock_and_unlock() 230 int old_pri = get_base_pri(mach_thread_self()); in take_lock_and_exit() [all …]
|
| H A D | prioritize_process_launch_helper.c | 172 priority = get_pri(mach_thread_self()); in main() 257 priority = get_pri(mach_thread_self()); in main() 263 priority = get_pri(mach_thread_self()); in main() 268 priority = get_pri(mach_thread_self()); in main() 281 priority = get_pri(mach_thread_self()); in main() 306 priority = get_pri(mach_thread_self()); in main() 316 priority = get_pri(mach_thread_self()); in main() 326 priority = get_pri(mach_thread_self()); in main()
|
| H A D | mach_eventlink.c | 73 mach_port_t self = mach_thread_self(); in test_eventlink_wait_with_timeout() 96 mach_port_t self = mach_thread_self(); in test_eventlink_wait_no_wait() 118 mach_port_t self = mach_thread_self(); in test_eventlink_wait_destroy() 139 mach_port_t self = mach_thread_self(); in test_eventlink_wait_for_signal() 161 mach_port_t self = mach_thread_self(); in test_eventlink_wait_then_signal() 187 mach_port_t self = mach_thread_self(); in test_eventlink_wait_then_wait_signal_with_no_wait() 216 mach_port_t self = mach_thread_self(); in test_eventlink_wait_then_wait_signal_with_prepost() 246 mach_port_t self = mach_thread_self(); in test_eventlink_wait_then_signal_loop() 328 mach_port_t self = mach_thread_self(); 581 mach_port_t self = mach_thread_self(); [all …]
|
| H A D | thread_set_state_arm64_cpsr.c | 57 err = thread_get_state(mach_thread_self(), ARM_THREAD_STATE64, (thread_state_t)&ts, &count); in phase2() 77 err = thread_get_state(mach_thread_self(), ARM_THREAD_STATE64, (thread_state_t)&ts, &count); 93 …err = thread_set_state(mach_thread_self(), ARM_THREAD_STATE64, (thread_state_t)&ts, ARM_THREAD_STA…
|
| H A D | reply_port_defense_client.c | 204 …kern_return_t kr = thread_get_state(mach_thread_self(), MACHINE_THREAD_STATE, (thread_state_t)&ts,… in test_unentitled_thread_set_state() 206 kr = thread_set_state(mach_thread_self(), MACHINE_THREAD_STATE, (thread_state_t)&ts, count); in test_unentitled_thread_set_state() 218 mach_thread_self(), in unentitled_set_exception_ports_crash() 239 mach_thread_self(), in unentitled_set_exception_ports_pass() 247 mach_thread_self(), in unentitled_set_exception_ports_pass() 274 mach_thread_self(), in exception_ports_crash()
|
| H A D | imm_pinned_control_port_crasher.c | 66 mach_port_t thread_self = mach_thread_self(); in pinned_test_main_thread_mod_ref() 122 mach_port_t th_kp = mach_thread_self(); in pinned_test_task_threads_mod_ref() 209 kr = attempt_send_immovable_port(mach_thread_self(), MACH_MSG_TYPE_MOVE_SEND); in immovable_test_move_send_thread_self() 220 port = mach_thread_self(); in immovable_test_copy_send_thread_self() 258 mach_port_t th_port = mach_thread_self(); in immovable_test_move_send_thread_inspect() 293 mach_port_t th_port = mach_thread_self(); in immovable_test_copy_send_thread_read()
|
| H A D | prioritize_process_launch.c | 328 priority = get_pri(mach_thread_self()); in workloop_cb_test_intransit() 334 priority = get_pri(mach_thread_self()); in workloop_cb_test_intransit() 365 priority = get_pri(mach_thread_self()); in workloop_cb_test_knote_kill() 373 priority = get_pri(mach_thread_self()); in workloop_cb_test_knote_kill() 400 priority = get_pri(mach_thread_self()); in workloop_cb_test_sync_bootstrap() 410 priority = get_pri(mach_thread_self()); in workloop_cb_test_sync_bootstrap() 423 priority = get_pri(mach_thread_self()); in workloop_cb_test_sync_bootstrap()
|
| H A D | turnstile_multihop.c | 577 .ident = mach_thread_self(), in dispatch_sync_wait() 635 sixty_thread_port = mach_thread_self(); in thread_at_sixty() 677 ui_thread_port = mach_thread_self(); in thread_at_ui() 699 in_thread_port = mach_thread_self(); in thread_at_in() 722 def_thread_port = mach_thread_self(); in thread_at_default() 752 main_thread_port = mach_thread_self(); in thread_at_maintenance()
|
| H A D | exception_ports_info.c | 93 …kr = thread_get_exception_ports(mach_thread_self(), EXC_MASK_ALL, masks2, &count2, ports, behavior… 97 …kr = thread_get_exception_ports_info(mach_thread_self(), EXC_MASK_ALL, masks, &count, ports_info, …
|
| H A D | imm_pinned_control_port.c | 218 kr = thread_set_special_port(mach_thread_self(), THREAD_KERNEL_PORT, mach_thread_self()); in test_immovable_port_stashing() 259 th_self = mach_thread_self(); in test_task_thread_port_values()
|
| H A D | task_ident_test.c | 65 kr = task_identity_token_get_task_port(mach_thread_self(), TASK_FLAVOR_NAME, &port2);
|
| H A D | ptrauth_failure.c | 98 err = thread_get_state(mach_thread_self(), ARM_THREAD_STATE64, (thread_state_t)&state, &count);
|
| H A D | persona_adoption.c | 91 kr = thread_set_mach_voucher(mach_thread_self(), mach_voucher); in _persona_try_adopting()
|
| H A D | exc_helpers.c | 301 mach_port_t thread = mach_thread_self(); in create_exception_port_behavior64()
|
| H A D | task_suspend_stats.c | 66 kr = thread_info(mach_thread_self(), THREAD_IDENTIFIER_INFO, (thread_info_t)&data, &count); in get_thread_id()
|
| /xnu-11215.1.10/tests/ipc/ |
| H A D | hardened_exceptions.c | 114 mach_thread_self(), exc_port, meo.exceptions_allowed, in thread_register_handler() 184 mach_thread_self(),
|
| /xnu-11215.1.10/libsyscall/mach/ |
| H A D | mach_legacy.c | 48 mach_thread_self(void) in mach_thread_self() function
|
| /xnu-11215.1.10/libsyscall/mach/mach/ |
| H A D | mach_init.h | 77 extern mach_port_t mach_thread_self(void);
|
| /xnu-11215.1.10/tests/recount/ |
| H A D | recount_perf_tests.c | 393 kern_return_t before_kr = thread_info(mach_thread_self(), THREAD_BASIC_INFO, in thread_basic_info_usage() 397 thread_info(mach_thread_self(), THREAD_BASIC_INFO, in thread_basic_info_usage() 401 kern_return_t after_kr = thread_info(mach_thread_self(), THREAD_BASIC_INFO, in thread_basic_info_usage()
|
| /xnu-11215.1.10/tools/tests/affinity/ |
| H A D | sets.c | 192 mach_thread_self(), THREAD_EXTENDED_POLICY, in manager_fn() 202 mach_thread_self(), THREAD_AFFINITY_POLICY, in manager_fn()
|
| H A D | pool.c | 175 mach_thread_self(), THREAD_AFFINITY_POLICY, in affinity_set() 201 mach_thread_self(), THREAD_EXTENDED_POLICY, in manager_fn()
|
| /xnu-11215.1.10/tools/tests/jitter/ |
| H A D | timer_jitter.c | 120 …res = thread_policy_set(mach_thread_self(), THREAD_TIME_CONSTRAINT_POLICY, (thread_policy_t) &pol,… in thread_setup() 129 …res = thread_policy_set(mach_thread_self(), THREAD_EXTENDED_POLICY, (thread_policy_t) &pol, THREAD… in thread_setup()
|
| /xnu-11215.1.10/tools/tests/MPMMTest/ |
| H A D | KQMPMMtest.c | 349 mach_thread_self(), THREAD_EXTENDED_POLICY, in thread_setup() 360 mach_thread_self(), THREAD_AFFINITY_POLICY, in thread_setup()
|
| H A D | MPMMtest.c | 469 mach_thread_self(), THREAD_EXTENDED_POLICY, in thread_setup() 480 mach_thread_self(), THREAD_AFFINITY_POLICY, in thread_setup()
|
| /xnu-11215.1.10/tools/tests/zero-to-n/ |
| H A D | zero-to-n.c | 450 kr = thread_policy_set(mach_thread_self(), THREAD_TIME_CONSTRAINT_POLICY, in rt_churn_thread_setup() 643 kr = thread_policy_set(mach_thread_self(), THREAD_TIME_CONSTRAINT_POLICY, in thread_setup() 662 kr = thread_policy_set(mach_thread_self(), THREAD_AFFINITY_POLICY, in thread_setup()
|