/third_party/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()
|
/third_party/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()
|
/third_party/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()
|
/third_party/mesa3d/src/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 …]
|
/third_party/jerryscript/tools/ |
D | check-cppcheck.sh | 20 CPPCHECK_JOBS=${CPPCHECK_JOBS:=$(sysctl -n hw.ncpu)}
|
/third_party/flutter/skia/third_party/externals/sdl/build-scripts/ |
D | emscripten-buildbot.sh | 25 NCPU=`sysctl -n hw.ncpu`
|
D | naclbuild.sh | 28 NCPU=`sysctl -n hw.ncpu`
|
D | checker-buildbot.sh | 31 NCPU=`sysctl -n hw.ncpu`
|
D | androidbuild.sh | 58 NCPU=`sysctl -n hw.ncpu`
|
D | iosbuild.sh | 7 NCPU=`sysctl -n hw.ncpu`
|
/third_party/skia/third_party/externals/microhttpd/m4/ |
D | ax_count_cpus.m4 | 41 CPU_COUNT=`/usr/sbin/sysctl -n hw.ncpu`
|
/third_party/toybox/scripts/ |
D | make.sh | 23 CPUS=$(($(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null)+1))
|
/third_party/protobuf/objectivec/DevTools/ |
D | full_mac_build.sh | 76 NUM_MAKE_JOBS=$(/usr/sbin/sysctl -n hw.ncpu)
|
/third_party/re2/benchlog/ |
D | benchlog.mini | 1 hw.ncpu: 2 39 hw.ncpu = 2
|
D | benchlog.wreck | 3 hw.ncpu = 4 22 hw.ncpu: 4
|
/third_party/python/Modules/ |
D | posixmodule.c | 13233 int ncpu = 0; in os_cpu_count_impl() local 13235 ncpu = GetActiveProcessorCount(ALL_PROCESSOR_GROUPS); in os_cpu_count_impl() 13237 ncpu = mpctl(MPC_GETNUMSPUS, NULL, NULL); in os_cpu_count_impl() 13239 ncpu = sysconf(_SC_NPROCESSORS_ONLN); in os_cpu_count_impl() 13241 ncpu = _Py_popcount32(vxCpuEnabledGet()); in os_cpu_count_impl() 13248 size_t len = sizeof(ncpu); in os_cpu_count_impl() 13251 if (sysctl(mib, 2, &ncpu, &len, NULL, 0) != 0) in os_cpu_count_impl() 13252 ncpu = 0; in os_cpu_count_impl() 13254 if (ncpu >= 1) in os_cpu_count_impl() 13255 return PyLong_FromLong(ncpu); in os_cpu_count_impl()
|
/third_party/mbedtls/tests/scripts/ |
D | all.sh | 354 sysctl -n hw.ncpu || # FreeBSD
|
/third_party/skia/third_party/externals/microhttpd/ |
D | configure | 16703 CPU_COUNT=`/usr/sbin/sysctl -n hw.ncpu`
|