/freebsd/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 | 19 …$(CPPCHECK) -j$(CPU_COUNT) $(CPPCHECKFLAGS) $(patsubst -U%,,$(patsubst -D%,,$(filter-out $(AM_CPPF…
|
H A D | zfs-build.m4 | 210 AC_SUBST(CPU_COUNT) 261 TEST_JOBS=$CPU_COUNT
|
/freebsd/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/lib/libc/tests/sys/ |
H A D | cpuset_test.c | 106 if (CPU_COUNT(mask) < ncpu) in skip_ltncpu() 181 ncpu = CPU_COUNT(&mask); in ATF_TC_BODY() 222 ATF_REQUIRE_EQ(1, CPU_COUNT(&mask)); in ATF_TC_BODY() 350 count = CPU_COUNT(mask); in jail_attach_mutate_pro() 352 ATF_REQUIRE_EQ(count - 1, CPU_COUNT(mask)); in jail_attach_mutate_pro()
|
/freebsd/contrib/llvm-project/llvm/lib/Support/Unix/ |
H A D | Threading.inc | 304 return CPU_COUNT(&mask); 308 return CPU_COUNT(&Set); 372 return CPU_COUNT(&Enabled); 382 return CPU_COUNT(&Affinity); 391 int NumCPUs = CPU_COUNT(DynAffinity);
|
/freebsd/bin/nproc/ |
H A D | nproc.c | 121 cpus = CPU_COUNT(&mask); in main()
|
/freebsd/sys/powerpc/powernv/ |
H A D | platform_powernv.c | 491 group->cg_count = CPU_COUNT(cpus); in cpu_group_init() 522 ncores = CPU_COUNT(&domcpus) / smp_threads_per_core; in powernv_smp_topo() 523 KASSERT(CPU_COUNT(&domcpus) % smp_threads_per_core == 0, in powernv_smp_topo()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
H A D | linux.cpp | 167 return static_cast<u32>(CPU_COUNT(&CPUs)); in getNumberOfCPUs()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_linux_libcdep.cpp | 73 # if !defined(CPU_COUNT) && !defined(__aarch64__) 790 # elif SANITIZER_ANDROID && !defined(CPU_COUNT) && !defined(__aarch64__) in GetNumberOfCPUs() 831 return CPU_COUNT(&CPUs); in GetNumberOfCPUs()
|
/freebsd/sys/contrib/openzfs/module/ |
H A D | Makefile.in | 142 @CPPCHECK@ -j@CPU_COUNT@ --std=c99 --quiet --force --error-exitcode=2 \
|
/freebsd/sys/sys/ |
H A D | cpuset.h | 73 #define CPU_COUNT(p) ((int)__BIT_COUNT(CPU_SETSIZE, p)) macro
|
/freebsd/sys/powerpc/powerpc/ |
H A D | openpic.c | 246 int i = mftb() % CPU_COUNT(&cpumask); in openpic_bind()
|
/freebsd/sys/arm64/arm64/ |
H A D | mp_machdep.c | 378 dom->cg_count = CPU_COUNT(&dom->cg_mask); in cpu_topo()
|
/freebsd/sys/dev/cpufreq/ |
H A D | cpufreq_dt.c | 177 DPRINTF(dev, "We have %d cpu on this dev\n", CPU_COUNT(&sc->cpus)); in cpufreq_dt_set()
|
/freebsd/sys/vm/ |
H A D | vm_pageout.c | 2224 domain_cpus = CPU_COUNT(&cpuset_domain[vmd->vmd_domain]); in get_pageout_threads_per_domain() 2230 eligible_cpus -= CPU_COUNT(&cpuset_domain[i]); in get_pageout_threads_per_domain()
|
/freebsd/sys/dev/axgbe/ |
H A D | if_axgbe_pci.c | 655 DBGPR("ncpu %d intrcpu %d\n", cpu_count, CPU_COUNT(&lcpus)); in axgbe_set_counts() 657 pdata->tx_ring_count = min(CPU_COUNT(&lcpus), pdata->hw_feat.tx_ch_cnt); in axgbe_set_counts() 664 pdata->rx_ring_count = min(CPU_COUNT(&lcpus), pdata->hw_feat.rx_ch_cnt); in axgbe_set_counts()
|
/freebsd/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/sys/net/ |
H A D | iflib.c | 4894 n = n % CPU_COUNT(&ctx->ifc_cpus); in cpuid_advance() 5137 cores_consumed = CPU_COUNT(&assigned_cpus); in get_ctx_core_offset() 5302 MPASS(CPU_COUNT(&ctx->ifc_cpus) > 0); in iflib_device_register() 6660 queues = imin(CPU_COUNT(&ctx->ifc_cpus), queues); in iflib_msix_init() 6664 CPU_COUNT(&ctx->ifc_cpus), queuemsgs, admincnt); in iflib_msix_init()
|
/freebsd/usr.bin/top/ |
H A D | machine.c | 378 ncpus = CPU_COUNT(&cpumask); in machine_init()
|
/freebsd/sys/dev/ice/ |
H A D | if_ice_iflib.c | 1434 queues = CPU_COUNT(&cpus); in ice_allocate_msix() 1452 rdma = min(CPU_COUNT(&cpus), ICE_RDMA_MAX_MSIX); in ice_allocate_msix()
|
/freebsd/share/man/man9/ |
H A D | Makefile | 924 cpuset.9 CPU_COUNT.9 \
|