Home
last modified time | relevance | path

Searched refs:GetSysctl (Results 1 – 2 of 2) sorted by relevance

/netbsd-src/external/apache2/llvm/dist/llvm/utils/benchmark/src/
H A Dsysinfo.cc171 bool GetSysctl(std::string const& Name, std::string* Out) { in GetSysctl() function
181 bool GetSysctl(std::string const& Name, Tp* Out) { in GetSysctl() function
190 bool GetSysctl(std::string const& Name, std::array<Tp, N>* Out) { in GetSysctl() function
285 GetSysctl("hw.cacheconfig", &CacheCounts); in GetCacheSizesMacOSX()
298 if (!GetSysctl(C.name, &val)) continue; in GetCacheSizesMacOSX()
370 if (GetSysctl("hw.ncpu", &NumCPU)) return NumCPU; in GetNumCPUs()
517 if (GetSysctl(FreqStr, &hz)) return hz * 1000000; in GetCPUCyclesPerSecond()
519 if (GetSysctl(FreqStr, &hz)) return hz; in GetCPUCyclesPerSecond()
/netbsd-src/external/apache2/llvm/dist/libcxx/utils/google-benchmark/src/
H A Dsysinfo.cc173 bool GetSysctl(std::string const& Name, std::string* Out) { in GetSysctl() function
183 bool GetSysctl(std::string const& Name, Tp* Out) { in GetSysctl() function
192 bool GetSysctl(std::string const& Name, std::array<Tp, N>* Out) { in GetSysctl() function
287 GetSysctl("hw.cacheconfig", &CacheCounts); in GetCacheSizesMacOSX()
300 if (!GetSysctl(C.name, &val)) continue; in GetCacheSizesMacOSX()
403 if (GetSysctl("hw.ncpu", &NumCPU)) return NumCPU; in GetNumCPUs()
556 if (GetSysctl(FreqStr, &hz)) return hz * 1000000; in GetCPUCyclesPerSecond()
558 if (GetSysctl(FreqStr, &hz)) return hz; in GetCPUCyclesPerSecond()