Home
last modified time | relevance | path

Searched refs:mach_thread_self (Results 1 – 25 of 36) sorted by relevance

12

/xnu-12377.81.4/tests/
H A Dturnstiles_test.c130 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 Dprioritize_process_launch_helper.c172 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 Dmach_eventlink.c59 mach_port_t self = mach_thread_self(); in test_eventlink_wait_with_timeout()
82 mach_port_t self = mach_thread_self(); in test_eventlink_wait_no_wait()
104 mach_port_t self = mach_thread_self(); in test_eventlink_wait_destroy()
125 mach_port_t self = mach_thread_self(); in test_eventlink_wait_for_signal()
147 mach_port_t self = mach_thread_self(); in test_eventlink_wait_then_signal()
173 mach_port_t self = mach_thread_self(); in test_eventlink_wait_then_wait_signal_with_no_wait()
202 mach_port_t self = mach_thread_self(); in test_eventlink_wait_then_wait_signal_with_prepost()
232 mach_port_t self = mach_thread_self(); in test_eventlink_wait_then_signal_loop()
322 mach_port_t self = mach_thread_self();
582 mach_port_t self = mach_thread_self();
[all …]
H A Dthread_set_state_arm64_cpsr.c57 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 Dreply_port_defense_client.c255 …kern_return_t kr = thread_get_state(mach_thread_self(), MACHINE_THREAD_STATE, (thread_state_t)&ts,… in test_unentitled_thread_set_state()
257 kr = thread_set_state(mach_thread_self(), MACHINE_THREAD_STATE, (thread_state_t)&ts, count); in test_unentitled_thread_set_state()
269 mach_thread_self(), in test_unentitled_thread_set_exception_ports()
290 mach_thread_self(), in unentitled_set_exception_ports_pass()
298 mach_thread_self(), in unentitled_set_exception_ports_pass()
325 mach_thread_self(), in exception_ports_crash()
345 kr = thread_get_state(mach_thread_self(), MACHINE_THREAD_STATE, (thread_state_t)&ts, &count); in kobject_reply_port_defense()
351 kr = thread_get_state(mach_thread_self(), MACHINE_THREAD_STATE, (thread_state_t)&ts, &count); in kobject_reply_port_defense()
593 mach_thread_self(), in test_service_port_as_exception_port()
602 mach_thread_self(), in test_service_port_as_exception_port()
[all …]
H A Dtry_read_write.c119 if (mach_thread_self() == thread_port) { in thread_info_for_mach_thread()
134 if (mach_thread_self() == thread_port) { in thread_info_for_mach_thread()
148 if (mach_thread_self() == thread_port) { in thread_info_for_mach_thread()
276 info = thread_info_for_mach_thread(mach_thread_self(), true /* create */); in begin_expected_exceptions()
H A Dprioritize_process_launch.c328 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 Dturnstile_multihop.c577 .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 Dexception_ports_info.c93 …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 Dtask_ident_test.c65 kr = task_identity_token_get_task_port(mach_thread_self(), TASK_FLAVOR_NAME, &port2);
H A Dptrauth_failure.c117 err = thread_get_state(mach_thread_self(), ARM_THREAD_STATE64, (thread_state_t)&state, &count);
H A Dpersona_adoption.c91 kr = thread_set_mach_voucher(mach_thread_self(), mach_voucher); in _persona_try_adopting()
H A Dexc_guard_helper.c262 exc_guard_helper_request.thread = mach_thread_self(); in block_raised_exc_guard_of_type()
/xnu-12377.81.4/tests/ipc/
H A Dimm_pinned_control_port_crasher.c66 mach_port_t thread_self = mach_thread_self(); in pinned_test_main_thread_mod_ref()
124 mach_port_t th_kp = mach_thread_self(); in pinned_test_task_threads_mod_ref()
211 kr = attempt_send_immovable_port(mach_thread_self(), MACH_MSG_TYPE_MOVE_SEND); in immovable_test_move_send_thread_self()
222 port = mach_thread_self(); in immovable_test_copy_send_thread_self()
260 mach_port_t th_port = mach_thread_self(); in immovable_test_move_send_thread_inspect()
295 mach_port_t th_port = mach_thread_self(); in immovable_test_copy_send_thread_read()
H A Dhardened_exceptions.c113 mach_thread_self(), exc_port, meo.exceptions_allowed, in thread_register_handler()
180 mach_thread_self(),
H A Dcontrol_port_movability_common.c15 kr = thread_get_special_port(mach_thread_self(), THREAD_KERNEL_PORT, thread_control); in get_task_thread_control()
17 kr = thread_get_special_port(mach_thread_self(), THREAD_KERNEL_PORT, thread_control); in get_task_thread_control()
H A Dimm_pinned_control_port.c219 kr = thread_set_special_port(mach_thread_self(), THREAD_KERNEL_PORT, mach_thread_self()); in test_immovable_port_stashing()
H A Dimm_pinned_control_port_entitled.c74 th_self = mach_thread_self(); in test_task_thread_port_values()
/xnu-12377.81.4/libsyscall/mach/
H A Dmach_legacy.c48 mach_thread_self(void) in mach_thread_self() function
/xnu-12377.81.4/libsyscall/mach/mach/
H A Dmach_init.h77 extern mach_port_t mach_thread_self(void);
/xnu-12377.81.4/tests/recount/
H A Drecount_perf_tests.c393 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-12377.81.4/tools/tests/affinity/
H A Dsets.c192 mach_thread_self(), THREAD_EXTENDED_POLICY, in manager_fn()
202 mach_thread_self(), THREAD_AFFINITY_POLICY, in manager_fn()
H A Dpool.c175 mach_thread_self(), THREAD_AFFINITY_POLICY, in affinity_set()
201 mach_thread_self(), THREAD_EXTENDED_POLICY, in manager_fn()
/xnu-12377.81.4/tools/tests/jitter/
H A Dtimer_jitter.c120 …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-12377.81.4/tools/tests/MPMMTest/
H A DKQMPMMtest.c349 mach_thread_self(), THREAD_EXTENDED_POLICY, in thread_setup()
360 mach_thread_self(), THREAD_AFFINITY_POLICY, in thread_setup()

12