Home
last modified time | relevance | path

Searched refs:cpu_count (Results 1 – 7 of 7) sorted by relevance

/xnu-11215/tests/
H A Dprocessor_info.c39 mach_msg_type_number_t cpu_count = 0;
40 kr = host_processors(priv_port, &cpu_ports, &cpu_count);
46 T_ASSERT_GT(cpu_count, (mach_msg_type_number_t)0,
49 T_LOG("found %d CPUs", cpu_count);
51 struct processor_cpu_stat64 *prestats = calloc(cpu_count,
56 memset(prestats, 0xff, cpu_count * sizeof(*prestats));
58 for (int i = 0; i < (int)cpu_count; i++) {
72 struct processor_cpu_stat64 *poststats = calloc(cpu_count - 1,
78 for (int i = 0; i < (int)cpu_count; i++) {
90 for (int i = 0; i < (int)cpu_count; i++) {
/xnu-11215/tests/sched/
H A Dall_cores_running.c75 static mach_msg_type_number_t cpu_count; variable
88 kr = host_processors(priv_host, &cpu_ports, &cpu_count); in init_host_and_cpu_count()
91 …T_QUIET; T_ASSERT_EQ(cpu_count, (unsigned int)dt_ncpu(), "cpu counts between host_processors() and… in init_host_and_cpu_count()
99 for (unsigned int i = 0; i < cpu_count; i++) { in record_cpu_loads()
110 struct processor_cpu_load_info delta_loads[cpu_count]; in cpu_loads_delta()
112 for (unsigned int i = 0; i < cpu_count; i++) { in cpu_loads_delta()
152 T_LOG("System has %d logical cores", cpu_count);
160 struct processor_cpu_load_info start_cpu_loads[cpu_count];
178 struct processor_cpu_load_info finish_cpu_loads[cpu_count];
184 unsigned int non_idle_ticks[cpu_count];
[all …]
/xnu-11215/bsd/kern/
H A Dkern_mib.c297 unsigned int cpu_count; in sysctl_hw_generic() local
373 cpu_count = ml_get_cpu_number_type(cpu_type_for_perflevel(perflevel), false, true); in sysctl_hw_generic()
374 return SYSCTL_RETURN(req, cpu_count); in sysctl_hw_generic()
377 return SYSCTL_RETURN(req, cpu_count); in sysctl_hw_generic()
379 cpu_count = ml_get_cpu_number_type(cpu_type_for_perflevel(perflevel), true, true); in sysctl_hw_generic()
380 return SYSCTL_RETURN(req, cpu_count); in sysctl_hw_generic()
383 return SYSCTL_RETURN(req, cpu_count); in sysctl_hw_generic()
403 cpu_count = ml_cpu_cache_sharing(2, cpu_type_for_perflevel(perflevel), false); in sysctl_hw_generic()
404 return SYSCTL_RETURN(req, cpu_count); in sysctl_hw_generic()
419 cpu_count = ml_cpu_cache_sharing(3, cpu_type_for_perflevel(perflevel), false); in sysctl_hw_generic()
[all …]
H A Dkdebug.c1370 unsigned int cpu_count = kd_control_trace.kdebug_cpus; in _copy_cpu_map() local
1373 assert(cpu_count != 0); in _copy_cpu_map()
1374 assert(coprocs == NULL || coprocs[0].cpu_id + 1 == cpu_count); in _copy_cpu_map()
1379 size_t size_needed = sizeof(kd_cpumap_header) + cpu_count * stride; in _copy_cpu_map()
1395 header->cpu_count = cpu_count; in _copy_cpu_map()
1401 int i = cpu_count - 1; in _copy_cpu_map()
/xnu-11215/tools/lldbmacros/
H A Dktrace.py564 cpu_count = kern.globals.machine_info.logical_cpu_max
566 cpu_count = ctrl.kdebug_cpus
581 for cpuid in range(cpu_count)]
/xnu-11215/bsd/sys/
H A Dkdebug_private.h401 uint32_t cpu_count; member
/xnu-11215/osfmk/kern/
H A Drecount.c124 unsigned int cpu_count = ml_get_cpu_count(); in recount_startup() local
126 for (unsigned int i = 0; i < cpu_count; i++) { in recount_startup()