Home
last modified time | relevance | path

Searched refs:sched_flags (Results 1 – 22 of 22) sorted by relevance

/xnu-11215/osfmk/kern/
H A Dpriority.c386 uint32_t sched_flags = thread->sched_flags; in thread_recompute_sched_pri() local
395 if (sched_flags & TH_SFLAG_DEPRESS) { in thread_recompute_sched_pri()
400 if ((sched_flags & TH_SFLAG_POLLDEPRESS)) { in thread_recompute_sched_pri()
412 if (sched_flags & TH_SFLAG_PROMOTED) { in thread_recompute_sched_pri()
421 if (sched_flags & TH_SFLAG_RW_PROMOTED) { in thread_recompute_sched_pri()
1032 thread->sched_flags |= reason; in sched_thread_mode_demote()
1040 thread->sched_flags |= reason; in sched_thread_mode_demote()
1060 return (thread->sched_flags & reason) != 0; in sched_thread_mode_has_demotion()
1090 thread->sched_flags &= ~reason; in sched_thread_mode_undemote()
1150 thread->sched_flags |= reason; in sched_thread_promote_reason()
[all …]
H A Dsyscall_subr.c438 assert((self->sched_flags & TH_SFLAG_DEPRESS) == 0); in thread_depress_abstime()
440 if ((self->sched_flags & TH_SFLAG_POLLDEPRESS) == 0) { in thread_depress_abstime()
441 self->sched_flags |= TH_SFLAG_DEPRESS; in thread_depress_abstime()
479 assert((thread->sched_flags & TH_SFLAG_DEPRESSED_MASK) != TH_SFLAG_DEPRESSED_MASK); in thread_depress_expire()
482 thread->sched_flags &= ~TH_SFLAG_DEPRESSED_MASK; in thread_depress_expire()
510 if ((thread->sched_flags & TH_SFLAG_POLLDEPRESS) == 0) { in thread_depress_abort()
527 if ((thread->sched_flags & TH_SFLAG_DEPRESSED_MASK) == 0) { in thread_depress_abort_locked()
533 thread->sched_flags &= ~TH_SFLAG_DEPRESSED_MASK; in thread_depress_abort_locked()
556 assert((self->sched_flags & TH_SFLAG_DEPRESS) == 0); in thread_poll_yield()
583 self->sched_flags |= TH_SFLAG_POLLDEPRESS; in thread_poll_yield()
[all …]
H A Dthread_act.c518 if (!(thread->sched_flags & TH_SFLAG_ABORT)) { in act_abort()
519 thread->sched_flags |= TH_SFLAG_ABORT; in act_abort()
523 thread->sched_flags &= ~TH_SFLAG_ABORTSAFELY; in act_abort()
572 if (!(thread->sched_flags & TH_SFLAG_ABORT)) { in thread_abort_safely()
573 thread->sched_flags |= TH_SFLAG_ABORTED_MASK; in thread_abort_safely()
1187 assert((thread->sched_flags & TH_SFLAG_DEPRESS) == 0); in thread_apc_ast()
1189 thread->sched_flags &= ~TH_SFLAG_ABORTED_MASK; in thread_apc_ast()
1270 if ((thread->sched_flags & TH_SFLAG_RW_PROMOTED) || in thread_debug_return_to_user_ast()
1272 …w lock held, thread %p sched_flag %u rwlock_count %d", thread, thread->sched_flags, thread->rwlock… in thread_debug_return_to_user_ast()
1275 if ((thread->sched_flags & TH_SFLAG_FLOOR_PROMOTED) || in thread_debug_return_to_user_ast()
[all …]
H A Dthread_policy.c736 thread->sched_flags |= TH_SFLAG_BASE_PRI_FROZEN; in thread_freeze_base_pri()
752 assert(thread->sched_flags & TH_SFLAG_BASE_PRI_FROZEN); in thread_unfreeze_base_pri()
753 thread->sched_flags &= ~TH_SFLAG_BASE_PRI_FROZEN; in thread_unfreeze_base_pri()
1249 if (thread->sched_flags & TH_SFLAG_FAILSAFE) { in thread_policy_reset()
1253 if (thread->sched_flags & TH_SFLAG_THROTTLED) { in thread_policy_reset()
1257 if (thread->sched_flags & TH_SFLAG_RT_DISALLOWED) { in thread_policy_reset()
1262 assert(!(thread->sched_flags & TH_SFLAG_DEMOTED_MASK)); in thread_policy_reset()
1263 assert(!(thread->sched_flags & TH_SFLAG_DEPRESSED_MASK)); in thread_policy_reset()
1313 if (!(thread->sched_flags & TH_SFLAG_DEMOTED_MASK)) { in thread_policy_get()
3428 thread->sched_flags |= TH_SFLAG_RT_CPULIMIT; in thread_rt_set_cpulimit()
[all …]
H A Dbsd_kern.c281 (inc->sched_flags & TH_SFLAG_ABORTED_MASK) != TH_SFLAG_ABORT) { in get_signalact()
333 (inc->sched_flags & TH_SFLAG_ABORTED_MASK) != TH_SFLAG_ABORT) { in check_actforsig()
999 return (th->sched_flags & TH_SFLAG_ABORTED_MASK) == TH_SFLAG_ABORT; in thread_should_abort()
1017 if ((th->sched_flags & TH_SFLAG_ABORTED_MASK) == TH_SFLAG_ABORT && in current_thread_aborted()
1021 if (th->sched_flags & TH_SFLAG_ABORTSAFELY) { in current_thread_aborted()
1024 if (th->sched_flags & TH_SFLAG_ABORTSAFELY) { in current_thread_aborted()
1025 th->sched_flags &= ~TH_SFLAG_ABORTED_MASK; in current_thread_aborted()
H A Dthread_group.c193 return t->sched_flags & TH_SFLAG_REEVALUTE_TG_HIERARCHY_LATER; in thread_get_reevaluate_tg_hierarchy_locked()
199 t->sched_flags |= TH_SFLAG_REEVALUTE_TG_HIERARCHY_LATER; in thread_set_reevaluate_tg_hierarchy_locked()
205 t->sched_flags &= ~TH_SFLAG_REEVALUTE_TG_HIERARCHY_LATER; in thread_clear_reevaluate_tg_hierarchy_locked()
669 if (t->sched_flags & TH_SFLAG_THREAD_GROUP_AUTO_JOIN) { in thread_compute_resolved_thread_group()
1144 assert(!(t->sched_flags & TH_SFLAG_THREAD_GROUP_AUTO_JOIN)); in thread_set_work_interval_thread_group()
H A Dsched_clutch.h54 #define SCHED_CLUTCH_THREAD_CLUSTER_BOUND_SOFT(thread) ((thread->sched_flags & TH_SFLAG_BOUND_SOFT…
H A Dast.c376 assert3u(0, ==, thread->sched_flags & in ast_taken_user()
H A Dwork_interval.c928 const bool old_wi_auto_joined = ((thread->sched_flags & TH_SFLAG_THREAD_GROUP_AUTO_JOIN) != 0); in thread_set_work_interval()
948 thread->sched_flags &= ~TH_SFLAG_THREAD_GROUP_AUTO_JOIN; in thread_set_work_interval()
963 thread->sched_flags |= TH_SFLAG_THREAD_GROUP_AUTO_JOIN; in thread_set_work_interval()
H A Dthread.c649 assert((thread->sched_flags & TH_SFLAG_DEPRESSED_MASK) == 0); in thread_terminate_self()
734 assert3u(0, ==, thread->sched_flags & in thread_terminate_self()
2113 ts_info->depressed = (thread->sched_flags & TH_SFLAG_DEPRESSED_MASK) != 0; in thread_info_internal()
2158 rr_info->depressed = (thread->sched_flags & TH_SFLAG_DEPRESSED_MASK) != 0; in thread_info_internal()
2367 if (!(thread->sched_flags & TH_SFLAG_FLOOR_PROMOTED)) { in thread_floor_boost_set_promotion_locked()
2422 if ((thread->priority_floor_count-- == 1) && (thread->sched_flags & TH_SFLAG_FLOOR_PROMOTED)) { in thread_priority_floor_end()
2426 if (thread->sched_flags & TH_SFLAG_FLOOR_PROMOTED) { in thread_priority_floor_end()
H A Dsched_prim.c1242 !(thread->sched_flags & TH_SFLAG_ABORT) || in thread_mark_wait_locked()
1244 (thread->sched_flags & TH_SFLAG_ABORTSAFELY))) { in thread_mark_wait_locked()
1273 if (thread->sched_flags & TH_SFLAG_ABORTSAFELY) { in thread_mark_wait_locked()
1274 thread->sched_flags &= ~TH_SFLAG_ABORTED_MASK; in thread_mark_wait_locked()
7397 thread->sched_flags |= TH_SFLAG_EAGERPREEMPT; in thread_set_eager_preempt()
7431 thread->sched_flags &= ~TH_SFLAG_EAGERPREEMPT; in thread_clear_eager_preempt()
9967 thread->sched_flags |= TH_SFLAG_NO_SMT; in thread_set_no_smt()
10035 thread->sched_flags &= ~(TH_SFLAG_BOUND_SOFT); in thread_bind_cluster_type()
10038 thread->sched_flags |= TH_SFLAG_BOUND_SOFT; in thread_bind_cluster_type()
10117 thread->sched_flags &= ~(TH_SFLAG_BOUND_SOFT); in thread_bind_cluster_id()
[all …]
H A Dlock_rw.c2819 if (thread->sched_flags & TH_SFLAG_RW_PROMOTED) { in lck_rw_clear_promotion()
2850 if (!(thread->sched_flags & TH_SFLAG_RW_PROMOTED)) { in lck_rw_set_promotion_locked()
2891 if (__improbable(thread->sched_flags & TH_SFLAG_RW_PROMOTED)) { in lck_rw_lock_count_dec()
H A Dtelemetry.c1046 thsnap->sched_flags = thread->sched_flags; in telemetry_process_sample()
H A Ddebug.h64 int32_t sched_flags; /* scheduler flags */ member
H A Dsched_clutch.c1474 if (thread->sched_flags & TH_SFLAG_DEPRESSED_MASK) { in sched_edge_thread_preferred_cluster()
3612 return (thread->sched_flags & TH_SFLAG_PROMOTED) || in sched_thread_sched_pri_promoted()
3613 (thread->sched_flags & TH_SFLAG_PROMOTE_REASON_MASK) || in sched_thread_sched_pri_promoted()
3614 (thread->sched_flags & TH_SFLAG_DEMOTED_MASK) || in sched_thread_sched_pri_promoted()
3615 (thread->sched_flags & TH_SFLAG_DEPRESSED_MASK) || in sched_thread_sched_pri_promoted()
H A Dthread.h520 uint32_t sched_flags; /* current flag bits */ member
H A Dwaitq.c1486 if ((thread->sched_flags & TH_SFLAG_WAITQ_PROMOTED) != TH_SFLAG_WAITQ_PROMOTED) { in waitq_clear_promotion_locked()
H A Dkern_stackshot.c4267 cur_thread_snap->ths_sched_flags = thread->sched_flags; in kcdata_record_thread_snapshot()
4522 cur_thread_snap->tds_sched_flags = thread->sched_flags; in kcdata_record_thread_delta_snapshot()
/xnu-11215/tests/sched/sched_test_harness/shadow_headers/
H A Dmisc_needed_deps.c71 uint32_t sched_flags; /* current flag bits */ member
/xnu-11215/tools/lldbmacros/
H A Dscheduler.py427 if (unsigned(thread.sched_flags) & 0x0004):
H A Dprocess.py464 if (unsigned(thread.sched_flags) & TH_SFLAG_THROTTLED):
/xnu-11215/osfmk/vm/
H A Dvm_fault.c1975 if ((interruptible != THREAD_UNINT) && (current_thread()->sched_flags & TH_SFLAG_ABORT)) { in vm_fault_page()