| /xnu-11215/tests/ |
| H A D | proc_info_list_kthreads.c | 37 int thread_count = 0; variable 51 while (!thread_count && (attempt < MAX_TRIES)) { 76 thread_count = expected_size / (int)sizeof(uint64_t); 80 thread_count = buf_used / (int)sizeof(uint64_t); 85 thread_count = buf_used / (int)sizeof(uint64_t); 101 T_QUIET; T_ASSERT_GT(thread_count, 0, "thread_count > 0"); 104 for (int i = 0; i < thread_count; i++) {
|
| H A D | work_interval_data_test.c | 281 …interval_data_test(unsigned int num_iterations, uint64_t interval_nanos, unsigned int thread_count, in run_work_interval_data_test() argument 302 total_thread_count = thread_count; in run_work_interval_data_test() 304 unsigned int num_helper_threads = thread_count - 1; in run_work_interval_data_test() 306 barrier_count[active_barrier_ind] = thread_count; in run_work_interval_data_test()
|
| H A D | hw_breakpoint_step_arm64.c | 183 mach_msg_type_number_t thread_count; variable 184 kr = task_threads(task, &threads, &thread_count);
|
| H A D | turnstile_multihop.c | 65 int thread_count; member 122 context->thread_count = nthreads; in sched_create_load_at_qos() 173 for (i = 0; i < context->thread_count; i++) { in sched_terminate_load()
|
| /xnu-11215/tests/vm/ |
| H A D | fault_throughput.lua | 94 for _, thread_count in ipairs(test_threads) do 98 name = ('with %d CPU workers%s'):format(thread_count, 99 thread_count == 1 and '' or 's'), 106 cmd[#cmd + 1] = thread_count 119 threads = thread_count,
|
| /xnu-11215/osfmk/kdp/ |
| H A D | user_core.c | 99 uint64_t thread_state_size = 0, thread_count = 0; in user_dump_save_summary() local 112 kern_collect_userth_state_size(uccontext->task, &thread_count, &thread_state_size); in user_dump_save_summary() 114 thread_count, thread_state_size, 0, context); in user_dump_save_summary() 158 uint64_t thread_state_size = 0, thread_count = 0; in user_dump_save_thread_state() local 161 kern_collect_userth_state_size(uccontext->task, &thread_count, &thread_state_size); in user_dump_save_thread_state()
|
| H A D | processor_core.h | 78 uint64_t thread_count, uint64_t thread_state_size,
|
| H A D | kdp_core.c | 644 uint64_t thread_state_size = 0, thread_count = 0; in kern_dump_save_summary() local 658 kern_collectth_state_size(&thread_count, &thread_state_size); in kern_dump_save_summary() 661 thread_count, thread_state_size, 0, context); in kern_dump_save_summary() 692 uint64_t thread_state_size = 0, thread_count = 0; in kern_dump_save_thread_state() local 694 kern_collectth_state_size(&thread_count, &thread_state_size); in kern_dump_save_thread_state()
|
| H A D | processor_core.c | 412 uint64_t thread_count, uint64_t thread_state_size, in coredump_save_summary() argument 430 && (!thread_count || !thread_state_size)) { in coredump_save_summary() 437 core_context->core_threads_remaining = core_context->core_thread_count = thread_count; in coredump_save_summary()
|
| /xnu-11215/tests/sched/ |
| H A D | yield_aggressor.c | 211 run_yielding_test(yield_type_t yield_type, unsigned int num_iters, unsigned int thread_count, in run_yielding_test() argument 223 num_threads = thread_count; in run_yielding_test() 313 unsigned int thread_count = (unsigned int) dt_ncpu() * 3; 316 run_yielding_test(yield_type, DEFAULT_NUM_ITERS, thread_count, DEFAULT_THREAD_PRI, writer);
|
| /xnu-11215/bsd/kern/ |
| H A D | kern_core.c | 325 size_t thread_count, segment_count; in coredump() local 481 thread_count = get_task_numacts(task); in coredump() 503 if (os_add_and_mul_overflow(tstate_size, sizeof(struct thread_command), thread_count, &rhs)) { in coredump() 504 …"error: thread state size overflow: tstate_size=%lu, thread_count=%lu", tstate_size, thread_count); in coredump() 552 mh64->ncmds = (uint32_t)(segment_count + notes_count + thread_count); in coredump() 560 mh->ncmds = (uint32_t)(segment_count + notes_count + thread_count); in coredump() 738 COREDUMPLOG("dumping %zu threads", thread_count); in coredump()
|
| H A D | mach_loader.h | 77 int thread_count; member
|
| H A D | mach_loader.c | 110 .thread_count = 0, 1506 if (result->thread_count == 0) { in parse_machfile() 2495 if (result->thread_count != 0) { in load_main() 2550 result->thread_count++; in load_main() 2597 result->thread_count++; in setup_driver_main() 2618 if (result->thread_count != 0) { in load_unixthread() 2674 result->thread_count++; in load_unixthread()
|
| /xnu-11215/osfmk/mach/ |
| H A D | processor_info.h | 145 int thread_count; /* How many threads */ member
|
| /xnu-11215/osfmk/kern/ |
| H A D | thread.c | 1076 task->thread_count--; in thread_terminate_queue_invoke() 1082 if (task->thread_count == 1 && task->halting) { in thread_terminate_queue_invoke() 1433 parent_task->thread_count >= thread_limit && in thread_create_internal() 1436 int thread_count = parent_task->thread_count; in thread_create_internal() local 1553 parent_task->thread_count++; in thread_create_internal() 2709 "suppressed by a boot-arg.\n", procname, pid, thread_count); in SENDING_NOTIFICATION__TASK_HAS_TOO_MANY_THREADS() 2721 "suppressed due to audio playback.\n", procname, pid, thread_count); in SENDING_NOTIFICATION__TASK_HAS_TOO_MANY_THREADS() 2728 thread_count); in SENDING_NOTIFICATION__TASK_HAS_TOO_MANY_THREADS() 2734 "EXC_RESOURCE\n", procname, pid, thread_count); in SENDING_NOTIFICATION__TASK_HAS_TOO_MANY_THREADS() 2738 EXC_RESOURCE_THREADS_ENCODE_THREADS(code[0], thread_count); in SENDING_NOTIFICATION__TASK_HAS_TOO_MANY_THREADS() [all …]
|
| H A D | bsd_kern.c | 408 return t->thread_count; in get_task_numacts() 1115 ptinfo->pti_threadnum = task->thread_count; in fill_taskprocinfo() 1229 return task->thread_count; in get_numthreads()
|
| H A D | thread_call.c | 442 uint32_t thread_count = group->active_count; in thread_call_group_should_add_thread() local 452 if ((thread_count == 0) || in thread_call_group_should_add_thread() 453 (thread_count < group->target_thread_count) || in thread_call_group_should_add_thread() 454 ((group->pending_count > THREAD_CALL_ADD_RATIO * thread_count) && in thread_call_group_should_add_thread()
|
| /xnu-11215/bsd/nfs/ |
| H A D | nfs_upcall.c | 255 int32_t thread_count = nfsrv_uc_thread_count; in nfsrv_uc_stop() local 261 for (i = 0; i < thread_count; i++) { in nfsrv_uc_stop()
|
| /xnu-11215/osfmk/i386/ |
| H A D | cpu_threads.c | 81 return cpuinfo->thread_count > cpuinfo->core_count; in cpu_is_hyperthreaded() 155 topoParms.nCoresSharingLLC = nCPUsSharing / (cpuinfo->thread_count / in x86_LLC_info() 166 if (nCPUsSharing > cpuinfo->thread_count) { in x86_LLC_info() 167 topoParms.nLCPUsSharingLLC = cpuinfo->thread_count; in x86_LLC_info() 191 topoParms.nLThreadsPerCore = cpuinfo->thread_count / cpuinfo->core_count; in initTopoParms()
|
| H A D | cpuid.c | 299 if (cpuinfo->thread_count > cpuinfo->core_count) { in do_cwas() 998 info_p->thread_count = 1; in cpuid_set_info() 1005 info_p->thread_count = info_p->cpuid_logical_per_package; in cpuid_set_info() 1019 info_p->thread_count = bitfield32((uint32_t)msr, 15, 0); in cpuid_set_info() 1030 info_p->thread_count = bitfield32((uint32_t)msr, 15, 0); in cpuid_set_info() 1039 DBG(" thread_count : %d\n", info_p->thread_count); in cpuid_set_info()
|
| /xnu-11215/osfmk/arm64/ |
| H A D | platform_tests.c | 942 uint thread_count = 0; in lt_test_locks() local 945 thread_count++; in lt_test_locks() 947 T_EXPECT_GE_UINT(thread_count, lt_target_done_threads, "Spawned enough threads for valid test"); in lt_test_locks() 969 thread_count = 0; in lt_test_locks() 983 thread_count++; in lt_test_locks() 985 T_EXPECT_GE_UINT(thread_count, lt_target_done_threads, "Spawned enough threads for valid test"); in lt_test_locks()
|
| /xnu-11215/osfmk/kdp/ml/x86_64/ |
| H A D | kdp_vm.c | 72 *tstate_count = task->thread_count; in kern_collect_userth_state_size()
|
| /xnu-11215/bsd/sys/ |
| H A D | kdebug_private.h | 499 int thread_count; member
|
| /xnu-11215/bsd/dev/arm64/ |
| H A D | sysctl.c | 212 SYSCTL_PROC(_machdep_cpu, OID_AUTO, thread_count,
|
| /xnu-11215/osfmk/kperf/ |
| H A D | pet.c | 354 count_needed = task->thread_count; in kppet_threads_prepare()
|