/external/ltp/testcases/open_posix_testsuite/include/ |
D | ncpu.h | 37 int ncpu = -1; in get_ncpu() local 41 ncpu = sysconf(_SC_NPROCESSORS_ONLN); in get_ncpu() 45 size_t len = sizeof(ncpu); in get_ncpu() 48 sysctl(mib, 2, &ncpu, &len, NULL, 0); in get_ncpu() 53 ncpu = (int)psd.psd_proc_cnt; in get_ncpu() 57 return ncpu; in get_ncpu()
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/gpr/ |
D | cpu_iphone.cc | 29 unsigned int ncpu; in gpr_cpu_num_cores() local 30 len = sizeof(ncpu); in gpr_cpu_num_cores() 31 sysctlbyname("hw.ncpu", &ncpu, &len, NULL, 0); in gpr_cpu_num_cores() 33 return ncpu; in gpr_cpu_num_cores()
|
/external/ltp/testcases/kernel/syscalls/sched_getaffinity/ |
D | sched_getaffinity01.c | 17 static long ncpu; variable 73 else if (af_cpus > ncpu) in do_test() 74 tst_res(TFAIL, "Enabled cpus = %li > system cpus %li", af_cpus, ncpu); in do_test() 87 ncpu = SAFE_SYSCONF(_SC_NPROCESSORS_CONF); in setup() 88 tst_res(TINFO, "system has %ld processor(s).", ncpu); in setup()
|
/external/bcc/tools/ |
D | cpuunclaimed.py | 97 ncpu = multiprocessing.cpu_count() # assume all are online variable 241 print(",".join("CPU" + str(c) for c in range(ncpu)), end="") 244 print(",".join("OFFSET_ns_CPU" + str(c) for c in range(ncpu)), end="") 311 lens = [0] * ncpu 312 offs = [0] * ncpu 321 print(",".join(str(lens[c]) for c in range(ncpu)), end="") 324 print(",".join(str(offs[c]) for c in range(ncpu))) 336 g_idle = ncpu - g_running
|
/external/cronet/base/system/ |
D | sys_info_openbsd.cc | 32 int ncpu; in NumberOfProcessors() local 33 size_t size = sizeof(ncpu); in NumberOfProcessors() 34 if (sysctl(mib, std::size(mib), &ncpu, &size, NULL, 0) < 0) { in NumberOfProcessors() 38 return ncpu; in NumberOfProcessors()
|
/external/virglrenderer/src/mesa/util/ |
D | u_cpu_detect.c | 625 int ncpu; in util_cpu_detect_once() local 626 int len = sizeof(ncpu); in util_cpu_detect_once() 628 sysctl(mib, 2, &ncpu, &len, NULL, 0); in util_cpu_detect_once() 629 available_cpus = ncpu; in util_cpu_detect_once() 640 int ncpu; in util_cpu_detect_once() local 641 int len = sizeof(ncpu); in util_cpu_detect_once() 643 sysctl(mib, 2, &ncpu, &len, NULL, 0); in util_cpu_detect_once() 644 available_cpus = ncpu; in util_cpu_detect_once() 661 int ncpu; in util_cpu_detect_once() local 662 int len = sizeof(ncpu); in util_cpu_detect_once() [all …]
|
/external/arm-trusted-firmware/plat/nvidia/tegra/soc/t194/ |
D | plat_psci_handlers.c | 185 uint32_t ncpu) in tegra_last_on_cpu_in_cluster() argument 189 uint32_t num_cpus = ncpu, pos = 0; in tegra_last_on_cpu_in_cluster() 207 uint32_t ncpu) in tegra_get_afflvl1_pwr_state() argument 217 if (tegra_last_on_cpu_in_cluster(states, ncpu)) { in tegra_get_afflvl1_pwr_state() 244 uint32_t ncpu) in tegra_soc_get_target_pwr_state() argument 256 target = tegra_get_afflvl1_pwr_state(states, ncpu); in tegra_soc_get_target_pwr_state()
|
/external/arm-trusted-firmware/plat/nvidia/tegra/soc/t186/ |
D | plat_psci_handlers.c | 176 uint32_t ncpu) in tegra_last_cpu_in_cluster() argument 180 uint32_t num_cpus = ncpu, pos = 0; in tegra_last_cpu_in_cluster() 198 uint32_t ncpu) in tegra_get_afflvl1_pwr_state() argument 226 if (tegra_last_cpu_in_cluster(states, ncpu)) { in tegra_get_afflvl1_pwr_state() 259 uint32_t ncpu) in tegra_soc_get_target_pwr_state() argument 272 target = tegra_get_afflvl1_pwr_state(states, ncpu); in tegra_soc_get_target_pwr_state()
|
/external/arm-trusted-firmware/plat/common/ |
D | plat_psci_common.c | 150 unsigned int ncpu) in plat_get_target_pwr_state() argument 154 unsigned int n = ncpu; in plat_get_target_pwr_state() 156 assert(ncpu > 0U); in plat_get_target_pwr_state()
|
/external/strace/ |
D | affinity.c | 71 const unsigned int ncpu = size * 8; in print_affinitylist() local 86 i = next_set_bit(cpu, i, ncpu); in print_affinitylist()
|
/external/arm-trusted-firmware/plat/nvidia/tegra/common/ |
D | tegra_pm.c | 326 unsigned int ncpu) in plat_get_target_pwr_state() argument 328 return tegra_soc_get_target_pwr_state(lvl, states, ncpu); in plat_get_target_pwr_state()
|
/external/arm-trusted-firmware/plat/mediatek/mt8173/ |
D | plat_pm.c | 590 unsigned int ncpu) in plat_get_target_pwr_state() argument 594 assert(ncpu); in plat_get_target_pwr_state() 600 } while (--ncpu); in plat_get_target_pwr_state()
|
/external/mesa3d/src/util/ |
D | u_cpu_detect.c | 558 int mib[2], ncpu; in util_cpu_detect_once() local 564 len = sizeof (ncpu); in util_cpu_detect_once() 565 sysctl(mib, 2, &ncpu, &len, NULL, 0); in util_cpu_detect_once() 566 util_cpu_caps.nr_cpus = ncpu; in util_cpu_detect_once()
|
/external/tensorflow/tensorflow/tools/ci_build/builds/ |
D | cmake.sh | 24 N_JOBS=$(sysctl -n hw.ncpu)
|
/external/tensorflow/tensorflow/tools/ci_build/osx/cpu/ |
D | run_py3_cc_core.sh | 21 N_JOBS=$(sysctl -n hw.ncpu)
|
D | run_contrib.sh | 21 N_JOBS=$(sysctl -n hw.ncpu)
|
D | run_py2_cc_core.sh | 21 N_JOBS=$(sysctl -n hw.ncpu)
|
/external/toybox/scripts/ |
D | portability.sh | 42 : ${CPUS:=$(($(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null)+1))}
|
/external/vulkan-validation-layers/build-android/ |
D | update_external_sources_android.sh | 28 cores=$(sysctl -n hw.ncpu)
|
D | build_all.sh | 30 cores=$(sysctl -n hw.ncpu) || echo 4
|
/external/grpc-grpc-java/buildscripts/ |
D | make_dependencies.sh | 20 NUM_CPU=$(sysctl -n hw.ncpu)
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/extensions/ffmpeg/src/main/jni/ |
D | build_ffmpeg.sh | 22 JOBS=$(nproc 2> /dev/null || sysctl -n hw.ncpu 2> /dev/null || echo 4)
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/extensions/ffmpeg/src/main/jni/ |
D | build_ffmpeg.sh | 22 JOBS=$(nproc 2> /dev/null || sysctl -n hw.ncpu 2> /dev/null || echo 4)
|
/external/arm-trusted-firmware/plat/nvidia/tegra/include/ |
D | tegra_private.h | 120 uint32_t ncpu);
|
/external/google-breakpad/android/ |
D | common-functions.sh | 193 sysctl -n hw.ncpu
|