Home
last modified time | relevance | path

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

/third_party/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()
/third_party/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()
/third_party/mesa3d/src/util/
Du_cpu_detect.c627 int ncpu; in util_cpu_detect_once() local
628 size_t len = sizeof(ncpu); in util_cpu_detect_once()
630 sysctl(mib, 2, &ncpu, &len, NULL, 0); in util_cpu_detect_once()
631 available_cpus = ncpu; in util_cpu_detect_once()
642 int ncpu; in util_cpu_detect_once() local
643 int len = sizeof(ncpu); in util_cpu_detect_once()
645 sysctl(mib, 2, &ncpu, &len, NULL, 0); in util_cpu_detect_once()
646 available_cpus = ncpu; in util_cpu_detect_once()
663 int ncpu; in util_cpu_detect_once() local
664 int len = sizeof(ncpu); in util_cpu_detect_once()
[all …]
/third_party/jerryscript/tools/
Dcheck-cppcheck.sh20 CPPCHECK_JOBS=${CPPCHECK_JOBS:=$(sysctl -n hw.ncpu)}
/third_party/flutter/skia/third_party/externals/sdl/build-scripts/
Dnaclbuild.sh28 NCPU=`sysctl -n hw.ncpu`
Demscripten-buildbot.sh25 NCPU=`sysctl -n hw.ncpu`
Dchecker-buildbot.sh31 NCPU=`sysctl -n hw.ncpu`
Dandroidbuild.sh58 NCPU=`sysctl -n hw.ncpu`
Diosbuild.sh7 NCPU=`sysctl -n hw.ncpu`
/third_party/skia/third_party/externals/microhttpd/m4/
Dax_count_cpus.m441 CPU_COUNT=`/usr/sbin/sysctl -n hw.ncpu`
/third_party/toybox/scripts/
Dmake.sh23 CPUS=$(($(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null)+1))
/third_party/protobuf/objectivec/DevTools/
Dfull_mac_build.sh76 NUM_MAKE_JOBS=$(/usr/sbin/sysctl -n hw.ncpu)
/third_party/python/Modules/
Dposixmodule.c13233 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/
Dall.sh354 sysctl -n hw.ncpu || # FreeBSD
/third_party/skia/third_party/externals/microhttpd/
Dconfigure16703 CPU_COUNT=`/usr/sbin/sysctl -n hw.ncpu`