Home
last modified time | relevance | path

Searched refs:ncpu (Results 1 – 25 of 35) sorted by relevance

12

/external/ltp/testcases/open_posix_testsuite/include/
Dncpu.h37 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/
Dcpu_iphone.cc29 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/
Dsched_getaffinity01.c17 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/
Dcpuunclaimed.py97 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/
Dsys_info_openbsd.cc32 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/
Du_cpu_detect.c625 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/
Dplat_psci_handlers.c185 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/
Dplat_psci_handlers.c176 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/
Dplat_psci_common.c150 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/
Daffinity.c71 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/
Dtegra_pm.c326 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/
Dplat_pm.c590 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/
Du_cpu_detect.c558 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/
Dcmake.sh24 N_JOBS=$(sysctl -n hw.ncpu)
/external/tensorflow/tensorflow/tools/ci_build/osx/cpu/
Drun_py3_cc_core.sh21 N_JOBS=$(sysctl -n hw.ncpu)
Drun_contrib.sh21 N_JOBS=$(sysctl -n hw.ncpu)
Drun_py2_cc_core.sh21 N_JOBS=$(sysctl -n hw.ncpu)
/external/toybox/scripts/
Dportability.sh42 : ${CPUS:=$(($(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null)+1))}
/external/vulkan-validation-layers/build-android/
Dupdate_external_sources_android.sh28 cores=$(sysctl -n hw.ncpu)
Dbuild_all.sh30 cores=$(sysctl -n hw.ncpu) || echo 4
/external/grpc-grpc-java/buildscripts/
Dmake_dependencies.sh20 NUM_CPU=$(sysctl -n hw.ncpu)
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/extensions/ffmpeg/src/main/jni/
Dbuild_ffmpeg.sh22 JOBS=$(nproc 2> /dev/null || sysctl -n hw.ncpu 2> /dev/null || echo 4)
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/extensions/ffmpeg/src/main/jni/
Dbuild_ffmpeg.sh22 JOBS=$(nproc 2> /dev/null || sysctl -n hw.ncpu 2> /dev/null || echo 4)
/external/arm-trusted-firmware/plat/nvidia/tegra/include/
Dtegra_private.h120 uint32_t ncpu);
/external/google-breakpad/android/
Dcommon-functions.sh193 sysctl -n hw.ncpu

12