Home
last modified time | relevance | path

Searched refs:sysctlbyname (Results 1 – 25 of 57) sorted by relevance

123

/external/cpuinfo/src/mach/
Dtopology.c17 if (sysctlbyname("hw.physicalcpu_max", &cores, &sizeof_cores, NULL, 0) != 0) { in cpuinfo_mach_detect_topology()
26 if (sysctlbyname("hw.logicalcpu_max", &threads, &sizeof_threads, NULL, 0) != 0) { in cpuinfo_mach_detect_topology()
36 if (sysctlbyname("hw.packages", &packages, &sizeof_packages, NULL, 0) != 0) { in cpuinfo_mach_detect_topology()
53 if (sysctlbyname("hw.cacheconfig", NULL, &cacheconfig_size, NULL, 0) != 0) { in cpuinfo_mach_detect_topology()
57 if (sysctlbyname("hw.cacheconfig", cacheconfig, &cacheconfig_size, NULL, 0) != 0) { in cpuinfo_mach_detect_topology()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/gpr/
Dcpu_iphone.cc31 sysctlbyname("hw.ncpu", &ncpu, &len, NULL, 0); in gpr_cpu_num_cores()
/external/compiler-rt/test/builtins/timing/
Dtiming.h19 int err2 = sysctlbyname( "hw.cpufrequency", &freq, &freqSize, NULL, 0L ); in intervalInCycles()
/external/llvm-project/compiler-rt/test/builtins/timing/
Dtiming.h19 int err2 = sysctlbyname( "hw.cpufrequency", &freq, &freqSize, NULL, 0L ); in intervalInCycles()
/external/webrtc/sdk/objc/native/src/audio/
Dhelpers.mm82 sysctlbyname("hw.machine", NULL, &size, NULL, 0);
85 sysctlbyname("hw.machine", machine.get(), &size, NULL, 0);
/external/mesa3d/src/mesa/x86/
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()
/external/mesa3d/src/gallium/auxiliary/hud/
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()
/external/cpuinfo/src/arm/mach/
Dinit.c75 if (sysctlbyname(type_specifier, NULL, &size, NULL, 0) != 0) { in get_sys_info_by_name()
78 sysctlbyname(type_specifier, &result, &size, NULL, 0); in get_sys_info_by_name()
133 if (sysctlbyname("hw.machine", NULL, &size, NULL, 0) != 0) { in decode_package_name()
139 if (sysctlbyname("hw.machine", machine_name, &size, NULL, 0) != 0) { in decode_package_name()
/external/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix/
Dsysctl.cpp31 int rv = sysctlbyname("kern.ostype", buf, &len, NULL, 0); in test_sysctlbyname()
/external/llvm-project/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_mac_test.cpp76 int res = sysctlbyname("kern.osrelease", buf, &len, nullptr, 0); in TEST()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/base/internal/
Dunscaledcycleclock.cc95 sysctlbyname("kern.timecounter.tc.timebase.frequency", &timebase_frequency,
/external/libtextclassifier/abseil-cpp/absl/base/internal/
Dunscaledcycleclock.cc95 sysctlbyname("kern.timecounter.tc.timebase.frequency", &timebase_frequency,
/external/abseil-cpp/absl/base/internal/
Dunscaledcycleclock.cc95 sysctlbyname("kern.timecounter.tc.timebase.frequency", &timebase_frequency,
/external/openscreen/third_party/abseil/src/absl/base/internal/
Dunscaledcycleclock.cc95 sysctlbyname("kern.timecounter.tc.timebase.frequency", &timebase_frequency,
/external/webrtc/third_party/abseil-cpp/absl/base/internal/
Dunscaledcycleclock.cc95 sysctlbyname("kern.timecounter.tc.timebase.frequency", &timebase_frequency,
/external/angle/third_party/abseil-cpp/absl/base/internal/
Dunscaledcycleclock.cc95 sysctlbyname("kern.timecounter.tc.timebase.frequency", &timebase_frequency,
/external/tensorflow/tensorflow/core/platform/profile_utils/
Dcpu_utils.cc126 sysctlbyname("hw.cpufrequency_max", &freq_hz, &freq_size, NULL, 0); in GetCycleCounterFrequencyImpl()
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_netbsd.cpp312 DEFINE__REAL(int, sysctlbyname, const char *a, void *b, size_t *c, in internal_sysctlbyname()
314 return _REAL(sysctlbyname, sname, oldp, (size_t *)oldlenp, newp, in internal_sysctlbyname()
/external/pthreadpool/src/
Dgcd.c49 if (sysctlbyname("hw.logicalcpu_max", &threads, &sizeof_threads, NULL, 0) != 0) { in pthreadpool_create()
/external/libfuse/lib/
Dmount_bsd.c144 if (sysctlbyname("vfs.fuse.init_backgrounded", &ibg, &len, NULL, 0)) in init_backgrounded()
/external/llvm-project/llvm/utils/benchmark/src/
Dsysinfo.cc160 if (sysctlbyname(Name.c_str(), nullptr, &CurBuffSize, nullptr, 0) == -1) in GetSysctlImp()
164 if (sysctlbyname(Name.c_str(), buff.data(), &buff.Size, nullptr, 0) == 0) in GetSysctlImp()
/external/google-breakpad/src/client/ios/
DBreakpadController.mm80 if (sysctlbyname(kHwMachineSysctlName, NULL, &size, NULL, 0) || size == 0)
83 if (sysctlbyname(kHwMachineSysctlName, machine.get(), &size, NULL, 0) == 0)
/external/libcxx/utils/google-benchmark/src/
Dsysinfo.cc162 if (sysctlbyname(Name.c_str(), nullptr, &CurBuffSize, nullptr, 0) == -1) in GetSysctlImp()
166 if (sysctlbyname(Name.c_str(), buff.data(), &buff.Size, nullptr, 0) == 0) in GetSysctlImp()
/external/llvm-project/libcxx/utils/google-benchmark/src/
Dsysinfo.cc162 if (sysctlbyname(Name.c_str(), nullptr, &CurBuffSize, nullptr, 0) == -1) in GetSysctlImp()
166 if (sysctlbyname(Name.c_str(), buff.data(), &buff.Size, nullptr, 0) == 0) in GetSysctlImp()
/external/llvm-project/lldb/source/Host/macosx/objcxx/
DHostInfoMacOSX.mm237 if (::sysctlbyname("hw.cputype", &cputype, &len, NULL, 0) == 0) {
239 if (::sysctlbyname("hw.cpusubtype", &cpusubtype, &len, NULL, 0) != 0)
243 ::sysctlbyname("hw.cpu64bit_capable", &is_64_bit_capable, &len, NULL, 0);

123