| /freebsd-13.1/sys/contrib/openzfs/config/ |
| H A D | ax_count_cpus.m4 | 37 CPU_COUNT="0" 44 …CPU_COUNT=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null` || CPU_C… 47 … CPU_COUNT=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT=`nproc 2>/dev/null` || CPU_COUNT="0" 53 …[[*linux*]],[[CPU_COUNT=`lscpu -p 2>/dev/null | $EGREP -e '^@<:@0-9@:>@+,' -c` || CPU_COUNT="0"]],… 54 [[*darwin*]],[[CPU_COUNT=`sysctl -n hw.logicalcpu 2>/dev/null` || CPU_COUNT="0"]],dnl 67 CPU_COUNT=`sysctl -n hw.ncpu 2>/dev/null` || CPU_COUNT="0" 74 …[[*linux*]],[[CPU_COUNT=`$EGREP -e '^processor' -c /proc/cpuinfo 2>/dev/null` || CPU_COUNT="0"]],d… 88 AS_IF([[test "x$CPU_COUNT" != "x0" && test "$CPU_COUNT" -gt 0 2>/dev/null]],[dnl 89 AC_MSG_RESULT([[$CPU_COUNT]]) 93 AS_UNSET([[CPU_COUNT]]) [all …]
|
| H A D | CppCheck.am | 11 $(CPPCHECK) -j$(CPU_COUNT) $(CPPCHECKFLAGS) $(DEFAULT_INCLUDES) $(SOURCES)
|
| H A D | zfs-build.m4 | 210 AC_SUBST(CPU_COUNT) 256 TEST_JOBS=$CPU_COUNT
|
| /freebsd-13.1/contrib/xz/src/common/ |
| H A D | tuklib_cpucores.c | 59 ret = (uint32_t)CPU_COUNT(&cpu_mask); in tuklib_cpucores() 65 # ifdef CPU_COUNT in tuklib_cpucores() 66 ret = (uint32_t)CPU_COUNT(&set); in tuklib_cpucores()
|
| /freebsd-13.1/lib/libc/tests/sys/ |
| H A D | cpuset_test.c | 109 if (CPU_COUNT(mask) < ncpu) in skip_ltncpu() 184 ncpu = CPU_COUNT(&mask); in ATF_TC_BODY() 225 ATF_REQUIRE_EQ(1, CPU_COUNT(&mask)); in ATF_TC_BODY() 353 count = CPU_COUNT(mask); in jail_attach_mutate_pro() 355 ATF_REQUIRE_EQ(count - 1, CPU_COUNT(mask)); in jail_attach_mutate_pro()
|
| /freebsd-13.1/sys/powerpc/powernv/ |
| H A D | platform_powernv.c | 494 group->cg_count = CPU_COUNT(cpus); in cpu_group_init() 525 ncores = CPU_COUNT(&domcpus) / smp_threads_per_core; in powernv_smp_topo() 526 KASSERT(CPU_COUNT(&domcpus) % smp_threads_per_core == 0, in powernv_smp_topo()
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
| H A D | linux.cpp | 143 return static_cast<u32>(CPU_COUNT(&CPUs)); in getNumberOfCPUs()
|
| /freebsd-13.1/sys/contrib/openzfs/module/ |
| H A D | Makefile.in | 123 @CPPCHECK@ -j@CPU_COUNT@ --std=c99 --quiet --force --error-exitcode=2 \
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_linux_libcdep.cpp | 73 #if !defined(CPU_COUNT) && !defined(__aarch64__) 725 #elif SANITIZER_ANDROID && !defined(CPU_COUNT) && !defined(__aarch64__) in GetNumberOfCPUs() 766 return CPU_COUNT(&CPUs); in GetNumberOfCPUs()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Support/Unix/ |
| H A D | Threading.inc | 296 return CPU_COUNT(&mask); 300 return CPU_COUNT(&Set);
|
| /freebsd-13.1/sys/sys/ |
| H A D | cpuset.h | 74 #define CPU_COUNT(p) ((int)__BIT_COUNT(CPU_SETSIZE, p)) macro
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Support/ |
| H A D | Host.cpp | 1404 return CPU_COUNT(&Enabled); in computeHostNumPhysicalCores() 1410 return CPU_COUNT(&Affinity); in computeHostNumPhysicalCores() 1419 int NumCPUs = CPU_COUNT(DynAffinity); in computeHostNumPhysicalCores()
|
| /freebsd-13.1/sys/powerpc/powerpc/ |
| H A D | openpic.c | 250 int i = mftb() % CPU_COUNT(&cpumask); in openpic_bind()
|
| /freebsd-13.1/sys/dev/cpufreq/ |
| H A D | cpufreq_dt.c | 174 DPRINTF(dev, "We have %d cpu on this dev\n", CPU_COUNT(&sc->cpus)); in cpufreq_dt_set()
|
| /freebsd-13.1/sys/arm64/arm64/ |
| H A D | mp_machdep.c | 463 dom->cg_count = CPU_COUNT(&dom->cg_mask); in cpu_topo()
|
| /freebsd-13.1/sys/vm/ |
| H A D | vm_pageout.c | 2231 domain_cpus = CPU_COUNT(&cpuset_domain[vmd->vmd_domain]); in get_pageout_threads_per_domain() 2237 eligible_cpus -= CPU_COUNT(&cpuset_domain[i]); in get_pageout_threads_per_domain()
|
| /freebsd-13.1/sys/dev/axgbe/ |
| H A D | if_axgbe_pci.c | 606 DBGPR("ncpu %d intrcpu %d\n", cpu_count, CPU_COUNT(&lcpus)); in axgbe_set_counts() 608 pdata->tx_ring_count = min(CPU_COUNT(&lcpus), pdata->hw_feat.tx_ch_cnt); in axgbe_set_counts() 615 pdata->rx_ring_count = min(CPU_COUNT(&lcpus), pdata->hw_feat.rx_ch_cnt); in axgbe_set_counts()
|
| /freebsd-13.1/contrib/jemalloc/src/ |
| H A D | jemalloc.c | 737 #elif defined(JEMALLOC_GLIBC_MALLOC_HOOK) && defined(CPU_COUNT) in malloc_ncpus() 749 result = CPU_COUNT(&set); in malloc_ncpus() 2961 # ifdef CPU_COUNT
|
| /freebsd-13.1/sys/net/ |
| H A D | iflib.c | 4709 n = n % CPU_COUNT(&ctx->ifc_cpus); in cpuid_advance() 4952 cores_consumed = CPU_COUNT(&assigned_cpus); in get_ctx_core_offset() 5115 MPASS(CPU_COUNT(&ctx->ifc_cpus) > 0); in iflib_device_register() 6643 queues = imin(CPU_COUNT(&ctx->ifc_cpus), queues); in iflib_msix_init() 6647 CPU_COUNT(&ctx->ifc_cpus), queuemsgs, admincnt); in iflib_msix_init()
|
| /freebsd-13.1/sys/dev/ice/ |
| H A D | if_ice_iflib.c | 1350 queues = CPU_COUNT(&cpus); in ice_allocate_msix()
|
| /freebsd-13.1/share/man/man9/ |
| H A D | Makefile | 905 cpuset.9 CPU_COUNT.9 \
|