Home
last modified time | relevance | path

Searched refs:sysctlbyname (Results 1 - 25 of 31) sorted by relevance

12

/third_party/libuv/src/unix/
H A Dfreebsd.c93 if (sysctlbyname("vm.stats.vm.v_free_count", &freecount, &size, NULL, 0)) in uv_get_free_memory()
211 if (sysctlbyname("hw.clockrate", &cpuspeed, &size, NULL, 0)) in uv_cpu_info()
216 if (sysctlbyname(model_key, &model, &size, NULL, 0)) in uv_cpu_info()
220 if (sysctlbyname("hw.ncpu", &numcpus, &size, NULL, 0)) in uv_cpu_info()
233 if (sysctlbyname(maxcpus_key, &maxcpus, &size, NULL, 0)) { in uv_cpu_info()
246 if (sysctlbyname(cptimes_key, cp_times, &size, NULL, 0)) { in uv_cpu_info()
H A Dnetbsd.c198 if (sysctlbyname("machdep.cpu_brand", &model, &size, NULL, 0) && in uv_cpu_info()
199 sysctlbyname("hw.model", &model, &size, NULL, 0)) { in uv_cpu_info()
204 if (sysctlbyname("hw.ncpu", &numcpus, &size, NULL, 0)) in uv_cpu_info()
210 if (sysctlbyname("machdep.tsc_freq", &cpuspeed, &size, NULL, 0)) in uv_cpu_info()
218 if (sysctlbyname("kern.cp_time", cp_times, &size, NULL, 0)) in uv_cpu_info()
H A Ddarwin.c201 if (sysctlbyname("machdep.cpu.brand_string", &model, &size, NULL, 0) && in uv_cpu_info()
202 sysctlbyname("hw.model", &model, &size, NULL, 0)) { in uv_cpu_info()
208 sysctlbyname("hw.cpufrequency", &cpuspeed, &size, NULL, 0); in uv_cpu_info()
/third_party/node/deps/uv/src/unix/
H A Dfreebsd.c93 if (sysctlbyname("vm.stats.vm.v_free_count", &freecount, &size, NULL, 0)) in uv_get_free_memory()
206 if (sysctlbyname("hw.clockrate", &cpuspeed, &size, NULL, 0)) in uv_cpu_info()
211 if (sysctlbyname(model_key, &model, &size, NULL, 0)) in uv_cpu_info()
215 if (sysctlbyname("hw.ncpu", &numcpus, &size, NULL, 0)) in uv_cpu_info()
228 if (sysctlbyname(maxcpus_key, &maxcpus, &size, NULL, 0)) { in uv_cpu_info()
241 if (sysctlbyname(cptimes_key, cp_times, &size, NULL, 0)) { in uv_cpu_info()
H A Dnetbsd.c193 if (sysctlbyname("machdep.cpu_brand", &model, &size, NULL, 0) && in uv_cpu_info()
194 sysctlbyname("hw.model", &model, &size, NULL, 0)) { in uv_cpu_info()
199 if (sysctlbyname("hw.ncpu", &numcpus, &size, NULL, 0)) in uv_cpu_info()
205 if (sysctlbyname("machdep.tsc_freq", &cpuspeed, &size, NULL, 0)) in uv_cpu_info()
213 if (sysctlbyname("kern.cp_time", cp_times, &size, NULL, 0)) in uv_cpu_info()
H A Ddarwin.c341 if (sysctlbyname("machdep.cpu.brand_string", &model, &size, NULL, 0) && in uv_cpu_info()
342 sysctlbyname("hw.model", &model, &size, NULL, 0)) { in uv_cpu_info()
/third_party/node/deps/v8/src/base/platform/
H A Dplatform-darwin.cc81 int rc = sysctlbyname("kern.tcsm_available", &val, &valSize, NULL, 0); in AdjustSchedulingParams()
88 int rc = sysctlbyname("kern.tcsm_enable", NULL, NULL, &val, sizeof(val)); in AdjustSchedulingParams()
/third_party/node/deps/v8/src/base/
H A Dsys-info.cc77 sysctlbyname("vm.stats.vm.v_page_count", &pages, &size, nullptr, 0); in AmountOfPhysicalMemory()
78 sysctlbyname("vm.stats.vm.v_page_size", &page_size, &size, nullptr, 0); in AmountOfPhysicalMemory()
/third_party/node/deps/zlib/
H A Dcpu_features.c131 // See https://developer.apple.com/documentation/kernel/1387446-sysctlbyname/determining_instruction_set_characteristics in _cpu_check_features()
134 arm_cpu_enable_crc32 = sysctlbyname("hw.optional.armv8_crc32", &val, &len, 0, 0) == 0 in _cpu_check_features()
138 arm_cpu_enable_pmull = sysctlbyname("hw.optional.arm.FEAT_PMULL", &val, &len, 0, 0) == 0 in _cpu_check_features()
/third_party/mesa3d/src/mesa/x86/
H A Dcommon_x86.c136 ret = sysctlbyname("hw.instruction_sse", &enabled, &len, NULL, 0); in _mesa_check_os_sse_support()
144 ret = sysctlbyname("machdep.sse", &enabled, &len, (void *)NULL, 0); in _mesa_check_os_sse_support()
/third_party/node/deps/openssl/openssl/crypto/
H A Dppccap.c201 if (sysctlbyname("hw.optional.64bitops", &val, &len, NULL, 0) == 0) { in OPENSSL_cpuid_setup()
207 if (sysctlbyname("hw.optional.altivec", &val, &len, NULL, 0) == 0) { in OPENSSL_cpuid_setup()
H A Darmcap.c183 if (sysctlbyname("hw.optional.armv8_2_sha512", &sha512, &len, NULL, 0) == 0 && sha512 == 1) in OPENSSL_cpuid_setup()
/third_party/openssl/crypto/
H A Dppccap.c201 if (sysctlbyname("hw.optional.64bitops", &val, &len, NULL, 0) == 0) { in OPENSSL_cpuid_setup()
207 if (sysctlbyname("hw.optional.altivec", &val, &len, NULL, 0) == 0) { in OPENSSL_cpuid_setup()
H A Darmcap.c183 if (sysctlbyname("hw.optional.armv8_2_sha512", &sha512, &len, NULL, 0) == 0 && sha512 == 1) in OPENSSL_cpuid_setup()
/third_party/mesa3d/src/gallium/auxiliary/hud/
H A Dhud_cpu.c129 if (sysctlbyname("kern.cp_time", cp_time, &len, NULL, 0) == -1) in get_cpu_stats()
148 if (sysctlbyname("kern.cp_times", NULL, &len, NULL, 0) == -1) in get_cpu_stats()
156 if (sysctlbyname("kern.cp_times", cp_times, &len, NULL, 0) == -1) in get_cpu_stats()
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/
H A Dunscaledcycleclock.cc95 sysctlbyname("kern.timecounter.tc.timebase.frequency", &timebase_frequency,
/third_party/libfuse/lib/
H A Dmount_bsd.c144 if (sysctlbyname("vfs.fuse.init_backgrounded", &ibg, &len, NULL, 0)) in init_backgrounded()
/third_party/libuv/test/
H A Dtest-udp-ipv6.c57 if (sysctlbyname("net.inet6.ip6.v6only", &v6only, &size, NULL, 0)) in can_ipv6_ipv4_dual()
/third_party/node/src/large_pages/
H A Dnode_large_page.cc287 return sysctlbyname("vm.pmap.pg_ps_enabled", in IsSuperPagesEnabled()
/third_party/lzma/C/
H A DCpuArch.c717 int res = sysctlbyname(name, &buf, &bufSize, NULL, 0);
811 return sysctlbyname(name, buf, bufSize, NULL, 0);
/third_party/pulseaudio/src/pulse/
H A Dutil.c471 ret = sysctlbyname("hw.cpufrequency", &freq, &size, NULL, 0); in pa_thread_make_realtime()
/third_party/benchmark/src/
H A Dsysinfo.cc169 if (sysctlbyname(name.c_str(), nullptr, &cur_buff_size, nullptr, 0) == -1) in GetSysctlImp()
173 if (sysctlbyname(name.c_str(), buff.data(), &buff.size, nullptr, 0) == 0) in GetSysctlImp()
/third_party/mesa3d/src/util/
H A Du_cpu_detect.c155 sysctlbyname("hw.cpu_features", &hwcap, &len, NULL, 0); in check_os_altivec_support()
/third_party/libdrm/
H A Dxf86drmMode.c929 ret = sysctlbyname(oid, sbusid, &len, NULL, 0); in drmCheckModesettingSupported()
939 ret = sysctlbyname(oid, &modesetting, &len, NULL, 0); in drmCheckModesettingSupported()
/third_party/mbedtls/library/
H A Dsha512.c142 int ret = sysctlbyname("hw.optional.armv8_2_sha512", &value, &value_len, in mbedtls_a64_crypto_sha512_determine_support()

Completed in 17 milliseconds

12