| /xnu-11215/osfmk/kern/ |
| H A D | thread_group.h | 35 struct thread_group; 122 struct thread_group *thread_group_create_and_retain(uint32_t flags); 128 uint32_t thread_group_get_flags(struct thread_group *); 135 struct thread_group *thread_group_retain(struct thread_group *tg); 136 void thread_group_release(struct thread_group *tg); 137 void thread_group_release_live(struct thread_group *tg); 139 struct thread_group *thread_group_get(thread_t t); 140 struct thread_group *thread_group_get_home_group(thread_t t); 142 uint64_t thread_group_get_id(struct thread_group *tg); 144 const char * thread_group_get_name(struct thread_group *tg); [all …]
|
| H A D | thread_group.c | 47 struct thread_group { struct 176 sched_clutch_for_thread_group(struct thread_group *thread_group) in sched_clutch_for_thread_group() argument 256 struct thread_group * 460 struct thread_group * 493 struct thread_group * 536 struct thread_group * 629 struct thread_group * 827 struct thread_group *old_tg = t->thread_group; in thread_resolve_thread_group_hierarchy_self_locked() 861 struct thread_group *old_tg = t->thread_group; in thread_resolve_and_enforce_thread_group_hierarchy_if_needed() 899 struct thread_group *old_tg = t->thread_group; in thread_set_preadopt_thread_group() [all …]
|
| H A D | machine.h | 157 extern void machine_thread_group_init(struct thread_group *tg); 158 extern void machine_thread_group_deinit(struct thread_group *tg); 159 extern void machine_thread_group_flags_update(struct thread_group *tg, uint32_t flags); 160 extern void machine_thread_group_blocked(struct thread_group *tg_blocked, struct thread_group *tg_b… 161 extern void machine_thread_group_unblocked(struct thread_group *tg_unblocked, struct thread_group *…
|
| H A D | sched_clutch.h | 323 struct thread_group *sc_tg; 332 void sched_clutch_init_with_thread_group(sched_clutch_t, struct thread_group *); 350 extern sched_clutch_t sched_clutch_for_thread_group(struct thread_group *); 359 void sched_edge_tg_preferred_cluster_change(struct thread_group *tg, uint32_t *tg_bucket_preferred_…
|
| H A D | coalition.h | 85 struct thread_group *task_coalition_get_thread_group(task_t task); 88 void coalition_set_thread_group(coalition_t coal, struct thread_group *tg); 89 struct thread_group *kdp_coalition_get_thread_group(coalition_t coal); 92 struct thread_group *coalition_get_thread_group(coalition_t coal);
|
| H A D | coalition.c | 263 struct thread_group *thread_group; member 1107 coal->j.thread_group = NULL; in i_coal_jetsam_dealloc() 1413 coal->j.thread_group : 0); in coalition_retire() 1733 struct thread_group * 1741 return coal->j.thread_group; in task_coalition_get_thread_group() 1745 struct thread_group * 1752 return coal->j.thread_group; in kdp_coalition_get_thread_group() 1756 struct thread_group * 1763 return coal->j.thread_group; in coalition_get_thread_group() 1776 struct thread_group *old_tg = coal->j.thread_group; in coalition_set_thread_group() [all …]
|
| H A D | work_interval.c | 176 struct thread_group *wi_group; /* holds +1 ref on group */ 304 assert(thread->thread_group == work_interval->wi_group); in work_interval_auto_join_decrement() 433 struct thread_group *thread_home_tg = thread_group_get_home_group(thread); in work_interval_should_propagate() 439 if (thread->thread_group != thread_home_tg) { in work_interval_should_propagate() 748 struct thread_group **tg) in kern_work_interval_get_thread_group() 988 struct thread_group *new_tg = (work_interval) ? (work_interval->wi_group) : NULL; in thread_set_work_interval() 1078 assert(work_interval->wi_group == thread->thread_group); in kern_work_interval_notify() 1188 struct thread_group *tg; in kern_work_interval_create() 1424 struct thread_group *home_group = in kern_work_interval_set_workload_id() 1447 struct thread_group *tg; in kern_work_interval_set_workload_id()
|
| H A D | thread.h | 644 struct thread_group *thread_group; member 941 struct thread_group *preadopt_thread_group; 961 struct thread_group *old_preadopt_thread_group; 969 struct thread_group *bank_thread_group; 977 struct thread_group *auto_join_thread_group; 980 struct thread_group *work_interval_thread_group; 1337 struct thread_group *thread_get_current_voucher_thread_group(thread_t thread);
|
| H A D | sched_amp_common.h | 70 void sched_amp_bounce_thread_group_from_ecores(processor_set_t pset, struct thread_group *tg);
|
| H A D | work_interval.h | 106 struct thread_group **tg);
|
| H A D | Makefile | 111 thread_group.h \
|
| /xnu-11215/iokit/Kernel/ |
| H A D | IOPerfControl.cpp | 201 IOPerfControlClient::allocateToken(thread_group *thread_group) in allocateToken() argument 214 workTable[index].thread_group = thread_group; in allocateToken() 259 auto *thread_group = entry.thread_group; in deallocateToken() local 307 static struct thread_group * 320 struct thread_group * thread_group = thread_group_get(thread); in threadGroupForDextService() local 322 return thread_group; in threadGroupForDextService() 398 if (!thread_group) { in workSubmit() 431 if (!thread_group) { in workSubmitAndBegin() 531 struct thread_group *thread_group; member in IOPerfControlWorkContext 557 thread_group = nullptr; in reset() [all …]
|
| /xnu-11215/tests/sched/sched_test_harness/shadow_headers/ |
| H A D | misc_needed_deps.c | 67 struct thread_group *thread_group; member 121 struct thread_group { struct 129 assert(thread->thread_group != NULL); in sched_clutch_for_thread() argument 130 return &(thread->thread_group->tg_sched_clutch); in sched_clutch_for_thread() 134 sched_clutch_for_thread_group(struct thread_group *thread_group) in sched_clutch_for_thread_group() argument 136 return &(thread_group->tg_sched_clutch); in sched_clutch_for_thread_group() 140 thread_group_get_id(struct thread_group *tg) in thread_group_get_id() 162 struct thread_group *current_thread_group; /* thread_group of current thread */
|
| /xnu-11215/bsd/sys/ |
| H A D | eventvar.h | 266 typedef struct thread_group *thread_group_qos_t; 294 #define KQWL_PREADOPTED_TG_NULL ((struct thread_group *) 0) 295 #define KQWL_PREADOPTED_TG_SENTINEL ((struct thread_group *) -1) 296 #define KQWL_PREADOPTED_TG_PROCESSED ((struct thread_group *) -2) 297 #define KQWL_PREADOPTED_TG_NEVER ((struct thread_group *) -3) 300 (struct thread_group *) ((uintptr_t) tg | (uintptr_t) qos); 304 (struct thread_group *)(((uintptr_t) tg) & KQWL_PREADOPT_TG_MASK) 336 struct thread_group * 339 _Atomic(struct thread_group *) * 399 struct thread_group *old_preadopt_tg; [all …]
|
| H A D | event_private.h | 725 struct thread_group; 866 extern void kqueue_set_preadopted_thread_group(struct kqueue *kq, struct thread_group *tg, thread_q… 867 extern bool kqueue_process_preadopt_thread_group(thread_t t, struct kqueue *kq, struct thread_group…
|
| /xnu-11215/osfmk/bank/ |
| H A D | bank.c | 310 struct thread_group *thread_group = NULL; in bank_get_value() local 408 thread_group, &persona); in bank_get_value() 481 thread_group, &persona); in bank_get_value() 1053 struct thread_group *thread_group, in bank_account_alloc_init() argument 1759 struct thread_group *thread_group = NULL; in bank_get_preadopt_thread_group() local 1801 *banktg = thread_group; in bank_get_preadopt_thread_group() 1811 static struct thread_group * 1829 static struct thread_group * 1872 struct thread_group *thread_group = NULL; in bank_get_bank_ledger_thread_group_and_persona() local 1909 thread_group = NULL; in bank_get_bank_ledger_thread_group_and_persona() [all …]
|
| H A D | bank_internal.h | 82 struct thread_group * bt_thread_group; /* Task's home thread group pointer */ 143 struct thread_group * ba_thread_group; /* thread group to be adopted */ 193 ledger_t *bankledger, struct thread_group **banktg, uint32_t *persona_id); 198 bank_get_preadopt_thread_group(ipc_voucher_t voucher, struct thread_group **banktg);
|
| /xnu-11215/tests/sched/sched_test_harness/ |
| H A D | sched_runqueue_harness.h | 21 extern struct thread_group *create_tg(int interactivity_score); 22 extern test_thread_t create_thread(int th_sched_bucket, struct thread_group *tg, int pri); 42 extern struct thread_group *impl_create_tg(int interactivity_score); 43 extern test_thread_t impl_create_thread(int th_sched_bucket, struct thread_group *tg, int p…
|
| H A D | sched_clutch_harness.c | 128 struct thread_group * 131 struct thread_group *tg = malloc(sizeof(struct thread_group)); in impl_create_tg() 145 impl_create_thread(int root_bucket, struct thread_group *tg, int pri) in impl_create_thread() 153 thread->thread_group = tg; in impl_create_thread() 183 cpu0.current_thread_group = ((thread_t)thread)->thread_group; in impl_set_thread_current()
|
| H A D | sched_runqueue_harness.c | 77 struct thread_group * 80 struct thread_group *tg = impl_create_tg(interactivity_score); in create_tg() 86 create_thread(int th_sched_bucket, struct thread_group *tg, int pri) in create_thread()
|
| /xnu-11215/tests/sched/ |
| H A D | clutch_runqueue.c | 23 struct thread_group *high_tg = create_tg(clutch_interactivity_score_max); 24 struct thread_group *low_tg = create_tg(0); 61 struct thread_group *same_tg = create_tg(clutch_interactivity_score_max); 82 struct thread_group *same_tg = create_tg(0); 141 struct thread_group *tgs[num_tgs]; 161 struct thread_group *low_tg = create_tg(clutch_interactivity_score_max / 2); 177 struct thread_group *first_tg = create_tg(clutch_interactivity_score_max / 2); 198 struct thread_group *same_tg = create_tg(0); 260 struct thread_group *same_tg = create_tg(0); 379 struct thread_group *same_tg = create_tg(0); [all …]
|
| /xnu-11215/iokit/IOKit/perfcontrol/ |
| H A D | IOPerfControl.h | 15 struct thread_group; 328 struct thread_group *target_thread_group; 353 struct thread_group *thread_group; member 365 uint64_t allocateToken(thread_group *thread_group);
|
| /xnu-11215/osfmk/arm/ |
| H A D | machine_routines_common.c | 313 struct thread_group *tg = thread_group_get(thread); in machine_switch_populate_perfcontrol_thread_data() 519 struct thread_group *tg = thread_group_get(new_thread); in machine_thread_going_on_core() 553 struct thread_group *tg = thread_group_get(old_thread); in machine_thread_going_off_core() 572 machine_thread_group_init(struct thread_group *tg) in machine_thread_group_init() 586 machine_thread_group_deinit(struct thread_group *tg) in machine_thread_group_deinit() 600 machine_thread_group_flags_update(struct thread_group *tg, uint32_t flags) in machine_thread_group_flags_update() 614 machine_thread_group_blocked(struct thread_group *blocked_tg, in machine_thread_group_blocked() 615 struct thread_group *blocking_tg, in machine_thread_group_blocked() 656 machine_thread_group_unblocked(struct thread_group *unblocked_tg, in machine_thread_group_unblocked() 657 struct thread_group *unblocking_tg, in machine_thread_group_unblocked() [all …]
|
| /xnu-11215/bsd/pthread/ |
| H A D | workqueue_internal.h | 113 struct thread_group *trp_permanent_preadopt_tg;
|
| /xnu-11215/osfmk/ipc/ |
| H A D | ipc_kmsg.h | 389 extern struct thread_group *ipc_kmsg_get_thread_group(
|