Home
last modified time | relevance | path

Searched refs:pol (Results 1 – 14 of 14) sorted by relevance

/xnu-11215/tools/tests/jitter/
H A Dtimer_jitter.c68 my_policy_type_t pol; member
101 thread_setup(my_policy_type_t pol) in thread_setup() argument
105 switch (pol) { in thread_setup()
115 pol.period = 100000; in thread_setup()
126 thread_extended_policy_data_t pol; in thread_setup() local
127 pol.timeshare = 0; in thread_setup()
228 my_policy_type_t pol; in main() local
292 pol = parse_thread_policy(argv[0]); in main()
337 secargs.pol = pol; in main()
353 res = thread_setup(pol); in main()
[all …]
/xnu-11215/tests/
H A Dwork_interval_test_unentitled.c35 thread_time_constraint_policy_data_t pol; in set_realtime() local
41 pol.period = (uint32_t)nanos_to_abs(1000000000); in set_realtime()
42 pol.constraint = (uint32_t)nanos_to_abs(100000000); in set_realtime()
43 pol.computation = (uint32_t)nanos_to_abs(10000000); in set_realtime()
45 pol.preemptible = 0; /* Ignored by OS */ in set_realtime()
46 kr = thread_policy_set(target_thread, THREAD_TIME_CONSTRAINT_POLICY, (thread_policy_t) &pol, in set_realtime()
55 thread_standard_policy_data_t pol = {0}; in set_nonrealtime() local
60 kr = thread_policy_set(target_thread, THREAD_STANDARD_POLICY, (thread_policy_t) &pol, in set_nonrealtime()
H A Dwork_interval_test.c136 thread_time_constraint_policy_data_t pol; in set_realtime() local
142 pol.period = (uint32_t)nanos_to_abs(1000000000); in set_realtime()
143 pol.constraint = (uint32_t)nanos_to_abs(100000000); in set_realtime()
144 pol.computation = (uint32_t)nanos_to_abs(10000000); in set_realtime()
146 pol.preemptible = 0; /* Ignored by OS */ in set_realtime()
147 kr = thread_policy_set(target_thread, THREAD_TIME_CONSTRAINT_POLICY, (thread_policy_t) &pol, in set_realtime()
156 thread_standard_policy_data_t pol = {0}; in set_nonrealtime() local
161 kr = thread_policy_set(target_thread, THREAD_STANDARD_POLICY, (thread_policy_t) &pol, in set_nonrealtime()
H A Dwork_interval_data_test.c46 thread_time_constraint_policy_data_t pol; in set_realtime() local
52 pol.period = (uint32_t)nanos_to_abs(interval_nanos); in set_realtime()
53 pol.constraint = (uint32_t)nanos_to_abs(interval_nanos); in set_realtime()
54 pol.computation = (uint32_t)nanos_to_abs(interval_nanos - 1000000); // 1 ms of leeway in set_realtime()
56 pol.preemptible = 0; /* Ignored by OS */ in set_realtime()
57 kr = thread_policy_set(target_thread, THREAD_TIME_CONSTRAINT_POLICY, (thread_policy_t) &pol, in set_realtime()
H A Dmach_eventlink.c831 thread_time_constraint_policy_data_t pol; in set_realtime() local
837 pol.period = (uint32_t)nanos_to_abs(interval_nanos); in set_realtime()
838 pol.constraint = (uint32_t)nanos_to_abs(interval_nanos); in set_realtime()
839 pol.computation = (uint32_t)nanos_to_abs(interval_nanos - 1000000); // 1 ms of leeway in set_realtime()
841 pol.preemptible = 0; /* Ignored by OS */ in set_realtime()
842 kr = thread_policy_set(target_thread, THREAD_TIME_CONSTRAINT_POLICY, (thread_policy_t) &pol, in set_realtime()
H A Dpoll_select_kevent_paired_fds.c568 int pol = poll(fds, 1, READ_TIMEOUT_SECS * 1000); in read_from_fd() local
569 T_QUIET; T_ASSERT_POSIX_SUCCESS(pol, "poll"); in read_from_fd()
570 T_QUIET; T_ASSERT_NE(pol, 0, in read_from_fd()
/xnu-11215/osfmk/kern/
H A Dticket_lock.h168 #define hw_lck_ticket_lock_to(lck, pol, grp) hw_lck_ticket_lock_to(lck, pol) argument
169 #define hw_lck_ticket_lock_nopreempt_to(lck, pol, grp) \ argument
170 hw_lck_ticket_lock_nopreempt_to(lck, pol)
174 #define hw_lck_ticket_lock_allow_invalid(lck, pol, grp) \ argument
175 hw_lck_ticket_lock_allow_invalid(lck, pol)
181 #define hw_lck_ticket_wait(lck, ticket, pol, grp) \ argument
182 hw_lck_ticket_wait(lck, ticket, pol)
H A Dlock_ptr.c166 hw_spin_policy_t pol = &hw_lck_ptr_spin_policy; in hw_lck_ptr_contended() local
167 hw_spin_timeout_t to = hw_spin_compute_timeout(pol); in hw_lck_ptr_contended()
199 hw_spin_should_keep_spinning(lck, pol, to, &ss); in hw_lck_ptr_contended()
210 hw_spin_should_keep_spinning(lck, pol, to, &ss); in hw_lck_ptr_contended()
232 hw_spin_should_keep_spinning(lck, pol, to, &ss); in hw_lck_ptr_contended()
379 hw_spin_policy_t pol = &hw_lck_ptr_spin_policy; in hw_lck_ptr_wait_for_value_contended() local
380 hw_spin_timeout_t to = hw_spin_compute_timeout(pol); in hw_lck_ptr_wait_for_value_contended()
394 hw_spin_should_keep_spinning(lck, pol, to, &ss); in hw_lck_ptr_wait_for_value_contended()
H A Dlock_ticket.c481 hw_spin_policy_t pol in hw_lck_ticket_contended()
484 hw_spin_timeout_t to = hw_spin_compute_timeout(pol); in hw_lck_ticket_contended()
645 hw_spin_policy_t pol in hw_lck_ticket_lock_to_internal()
660 return hw_lck_ticket_contended(lck, arg, pol LCK_GRP_ARG(grp)); in hw_lck_ticket_lock_to_internal()
666 hw_spin_policy_t pol, in hw_lck_ticket_lock_nopreempt_to() argument
675 hw_spin_policy_t pol, in hw_lck_ticket_lock_to() argument
888 hw_spin_policy_t pol, in hw_lck_ticket_wait() argument
894 if (pol == NULL) { in hw_lck_ticket_wait()
895 pol = &hw_lck_ticket_spin_policy; in hw_lck_ticket_wait()
897 return hw_lck_ticket_contended(lck, arg, pol LCK_GRP_ARG(grp)); in hw_lck_ticket_wait()
[all …]
H A Dlocks.c167 hw_spin_compute_timeout(hw_spin_policy_t pol) in hw_spin_compute_timeout() argument
173 ret.hwst_timeout <<= pol->hwsp_timeout_shift; in hw_spin_compute_timeout()
216 hw_spin_policy_t pol, in hw_spin_should_keep_spinning() argument
259 rc = pol->hwsp_op_timeout((char *)lock - pol->hwsp_lock_offset, in hw_spin_should_keep_spinning()
543 hw_spin_policy_t pol in hw_lock_lock_contended()
546 hw_spin_timeout_t to = hw_spin_compute_timeout(pol); in hw_lock_lock_contended()
673 hw_spin_policy_t pol in hw_lock_to_internal()
870 hw_spin_policy_t pol,
920 hw_spin_policy_t pol,
944 hw_spin_policy_t pol
[all …]
H A Dlock_mtx.c403 hw_spin_policy_t pol = &lck_mtx_ilk_timeout_policy; in lck_mtx_ilk_lock_cleanup_as_mcs() local
404 hw_spin_should_keep_spinning(lock, pol, to, ss); in lck_mtx_ilk_lock_cleanup_as_mcs()
427 hw_spin_policy_t pol = &lck_mtx_ilk_timeout_policy; in lck_mtx_ilk_lock_contended() local
428 hw_spin_timeout_t to = hw_spin_compute_timeout(pol); in lck_mtx_ilk_lock_contended()
455 hw_spin_should_keep_spinning(lock, pol, to, &ss); in lck_mtx_ilk_lock_contended()
473 hw_spin_should_keep_spinning(lock, pol, to, &ss); in lck_mtx_ilk_lock_contended()
496 hw_spin_should_keep_spinning(lock, pol, to, &ss); in lck_mtx_ilk_lock_contended()
681 hw_spin_policy_t pol = &lck_mtx_ilk_timeout_policy; in lck_mtx_lock_adaptive_spin() local
682 hw_spin_timeout_t to = hw_spin_compute_timeout(pol); in lck_mtx_lock_adaptive_spin()
730 hw_spin_should_keep_spinning(lock, pol, to, &ss); in lck_mtx_lock_adaptive_spin()
/xnu-11215/tools/tests/zero-to-n/
H A Dzero-to-n.c442 thread_time_constraint_policy_data_t pol; in rt_churn_thread_setup() local
445 pol.period = 100000; in rt_churn_thread_setup()
446 pol.constraint = (uint32_t) nanos_to_abs(CONSTRAINT_NANOS * 2); in rt_churn_thread_setup()
448 pol.preemptible = 0; /* Ignored by OS */ in rt_churn_thread_setup()
451 (thread_policy_t) &pol, THREAD_TIME_CONSTRAINT_POLICY_COUNT); in rt_churn_thread_setup()
611 thread_time_constraint_policy_data_t pol; in thread_setup() local
633 pol.period = 100000; in thread_setup()
635 pol.constraint = (uint32_t) nanos_to_abs(LL_CONSTRAINT_NANOS); in thread_setup()
638 pol.constraint = (uint32_t) nanos_to_abs(CONSTRAINT_NANOS); in thread_setup()
639 pol.computation = (uint32_t) nanos_to_abs(COMPUTATION_NANOS); in thread_setup()
[all …]
/xnu-11215/bsd/netinet6/
H A Din6_src.c2041 pol = &pent->ape_policy; in match_addrsel_policy()
2042 mp = (u_char *)&pol->addrmask.sin6_addr; in match_addrsel_policy()
2045 p = (u_char *)&pol->addr.sin6_addr; in match_addrsel_policy()
2064 bestpol = pol; in match_addrsel_policy()
2078 struct addrsel_policyent *__single new, *__single pol; in add_addrsel_policyent() local
2083 TAILQ_FOREACH(pol, &addrsel_policytab, ape_entry) { in add_addrsel_policyent()
2085 &pol->ape_policy.addr.sin6_addr) && in add_addrsel_policyent()
2087 &pol->ape_policy.addrmask.sin6_addr)) { in add_addrsel_policyent()
2105 struct addrsel_policyent *__single pol; in walk_addrsel_policy() local
2108 TAILQ_FOREACH(pol, &addrsel_policytab, ape_entry) { in walk_addrsel_policy()
[all …]
/xnu-11215/osfmk/arm64/sptm/pmap/
H A Dpmap_data.c2184 hw_spin_policy_t pol = &hw_paddr_inflight_spin_policy; in pmap_paddr_inflight_barrier() local
2189 to = hw_spin_compute_timeout(pol); in pmap_paddr_inflight_barrier()
2191 hw_spin_should_keep_spinning((void*)paddr, pol, to, &state)) { in pmap_paddr_inflight_barrier()