/external/webrtc/talk/media/base/ |
D | cpuid_unittest.cc | 38 << cricket::CpuInfo::TestCpuFlag(cricket::CpuInfo::kCpuHasARM); in TEST() 40 << cricket::CpuInfo::TestCpuFlag(cricket::CpuInfo::kCpuHasNEON); in TEST() 42 << cricket::CpuInfo::TestCpuFlag(cricket::CpuInfo::kCpuHasX86); in TEST() 44 << cricket::CpuInfo::TestCpuFlag(cricket::CpuInfo::kCpuHasSSE2); in TEST() 46 << cricket::CpuInfo::TestCpuFlag(cricket::CpuInfo::kCpuHasSSSE3); in TEST() 48 << cricket::CpuInfo::TestCpuFlag(cricket::CpuInfo::kCpuHasSSE41); in TEST() 50 << cricket::CpuInfo::TestCpuFlag(cricket::CpuInfo::kCpuHasSSE42); in TEST() 52 << cricket::CpuInfo::TestCpuFlag(cricket::CpuInfo::kCpuHasAVX); in TEST() 53 bool has_arm = cricket::CpuInfo::TestCpuFlag(cricket::CpuInfo::kCpuHasARM); in TEST() 54 bool has_x86 = cricket::CpuInfo::TestCpuFlag(cricket::CpuInfo::kCpuHasX86); in TEST() [all …]
|
/external/autotest/client/site_tests/kernel_CheckArmErrata/ |
D | kernel_CheckArmErrata.py | 25 Parse the contents of /proc/cpuinfo 29 :param cpuinfo_str: The contents of /proc/cpuinfo as a string. 31 secondary key is info from cpuinfo about that processor. 33 >>> cpuinfo = kernel_CheckArmErrata._parse_cpu_info( 55 >>> cpuinfo == { 75 cpuinfo = {} 96 cpuinfo[processor] = { "processor": processor } 103 cpuinfo[processor][key] = val 105 return cpuinfo 139 def _check_one_cortex_a12(self, cpuinfo): argument [all …]
|
/external/libopus/celt/x86/ |
D | x86cpu.c | 47 static _inline void cpuid(unsigned int CPUInfo[4], unsigned int InfoType) in cpuid() 49 __cpuid((int*)CPUInfo, InfoType); in cpuid() 58 static void cpuid(unsigned int CPUInfo[4], unsigned int InfoType) in cpuid() 67 "=a" (CPUInfo[0]), in cpuid() 68 "=r" (CPUInfo[1]), in cpuid() 69 "=c" (CPUInfo[2]), in cpuid() 70 "=d" (CPUInfo[3]) : in cpuid() 76 "=a" (CPUInfo[0]), in cpuid() 77 "=b" (CPUInfo[1]), in cpuid() 78 "=c" (CPUInfo[2]), in cpuid() [all …]
|
/external/boringssl/src/crypto/ |
D | cpu-arm-linux.h | 29 // The cpuinfo parser lives in a header file so it may be accessible from 98 // extract_cpuinfo_field extracts a /proc/cpuinfo field named |field| from 121 static int cpuinfo_field_equals(const STRING_PIECE *cpuinfo, const char *field, in cpuinfo_field_equals() argument 124 return extract_cpuinfo_field(&extracted, cpuinfo, field) && in cpuinfo_field_equals() 141 // from |cpuinfo|. 143 const STRING_PIECE *cpuinfo) { in crypto_get_arm_hwcap_from_cpuinfo() argument 144 if (cpuinfo_field_equals(cpuinfo, "CPU architecture", "8")) { in crypto_get_arm_hwcap_from_cpuinfo() 154 if (extract_cpuinfo_field(&features, cpuinfo, "Features") && in crypto_get_arm_hwcap_from_cpuinfo() 162 // value from |cpuinfo|. 164 const STRING_PIECE *cpuinfo) { in crypto_get_arm_hwcap2_from_cpuinfo() argument [all …]
|
D | cpu-arm-linux.c | 152 if (!read_file(&cpuinfo_data, &cpuinfo_len, "/proc/cpuinfo")) { in OPENSSL_cpuid_setup() 155 STRING_PIECE cpuinfo; in OPENSSL_cpuid_setup() local 156 cpuinfo.data = cpuinfo_data; in OPENSSL_cpuid_setup() 157 cpuinfo.len = cpuinfo_len; in OPENSSL_cpuid_setup() 161 // on some versions of Android, so further fall back to /proc/cpuinfo. in OPENSSL_cpuid_setup() 174 hwcap = crypto_get_arm_hwcap_from_cpuinfo(&cpuinfo); in OPENSSL_cpuid_setup() 178 g_has_broken_neon = crypto_cpuinfo_has_broken_neon(&cpuinfo); in OPENSSL_cpuid_setup() 188 // /proc/cpuinfo. See https://crbug.com/596156. in OPENSSL_cpuid_setup() 194 hwcap2 = crypto_get_arm_hwcap2_from_cpuinfo(&cpuinfo); in OPENSSL_cpuid_setup()
|
D | cpu-arm-linux_test.cc | 22 TEST(ARMLinuxTest, CPUInfo) { in TEST() argument 24 const char *cpuinfo; in TEST() member 226 SCOPED_TRACE(t.cpuinfo); in TEST() 227 STRING_PIECE sp = {t.cpuinfo, strlen(t.cpuinfo)}; in TEST()
|
/external/google-benchmark/src/ |
D | sysinfo.cc | 252 std::vector<CPUInfo::CacheInfo> GetCacheSizesFromKVFS() { in GetCacheSizesFromKVFS() 253 std::vector<CPUInfo::CacheInfo> res; in GetCacheSizesFromKVFS() 257 CPUInfo::CacheInfo info; in GetCacheSizesFromKVFS() 290 std::vector<CPUInfo::CacheInfo> GetCacheSizesMacOSX() { in GetCacheSizesMacOSX() 291 std::vector<CPUInfo::CacheInfo> res; in GetCacheSizesMacOSX() 307 CPUInfo::CacheInfo info; in GetCacheSizesMacOSX() 317 std::vector<CPUInfo::CacheInfo> GetCacheSizesWindows() { in GetCacheSizesWindows() 318 std::vector<CPUInfo::CacheInfo> res; in GetCacheSizesWindows() 340 CPUInfo::CacheInfo C; in GetCacheSizesWindows() 366 std::vector<CPUInfo::CacheInfo> GetCacheSizesQNX() { in GetCacheSizesQNX() [all …]
|
/external/libcxx/utils/google-benchmark/src/ |
D | sysinfo.cc | 246 std::vector<CPUInfo::CacheInfo> GetCacheSizesFromKVFS() { in GetCacheSizesFromKVFS() 247 std::vector<CPUInfo::CacheInfo> res; in GetCacheSizesFromKVFS() 251 CPUInfo::CacheInfo info; in GetCacheSizesFromKVFS() 284 std::vector<CPUInfo::CacheInfo> GetCacheSizesMacOSX() { in GetCacheSizesMacOSX() 285 std::vector<CPUInfo::CacheInfo> res; in GetCacheSizesMacOSX() 301 CPUInfo::CacheInfo info; in GetCacheSizesMacOSX() 311 std::vector<CPUInfo::CacheInfo> GetCacheSizesWindows() { in GetCacheSizesWindows() 312 std::vector<CPUInfo::CacheInfo> res; in GetCacheSizesWindows() 334 CPUInfo::CacheInfo C; in GetCacheSizesWindows() 361 std::vector<CPUInfo::CacheInfo> GetCacheSizes() { in GetCacheSizes() [all …]
|
/external/caliper/caliper/src/main/java/com/google/caliper/runner/ |
D | EnvironmentGetter.java | 73 Multimap<String, String> cpuInfo = propertiesFromLinuxFile("/proc/cpuinfo"); in getLinuxEnvironment() local 74 propertyMap.put("host.cpus", Integer.toString(cpuInfo.get("processor").size())); in getLinuxEnvironment() 76 propertyMap.put("host.cpu.cores", describe(cpuInfo, s)); in getLinuxEnvironment() 77 propertyMap.put("host.cpu.names", describe(cpuInfo, "model name")); in getLinuxEnvironment() 78 propertyMap.put("host.cpu.cachesize", describe(cpuInfo, "cache size")); in getLinuxEnvironment() 86 private static String describe(Multimap<String, String> cpuInfo, String s) { in describe() argument 87 Collection<String> strings = cpuInfo.get(s); in describe()
|
/external/v8/src/base/ |
D | cpu.cc | 17 #include <sys/syspage.h> // cpuinfo 180 // Extract the information exposed by the kernel via /proc/cpuinfo. 181 class CPUInfo final { 183 CPUInfo() : datalen_(0) { 184 // Get the size of the cpuinfo file by reading it until the end. This is 187 static const char PATHNAME[] = "/proc/cpuinfo"; 201 // Read the contents of the cpuinfo file. 219 ~CPUInfo() { 224 // the content of the cpuinfo file and return it as a heap-allocated 345 // valid Ids in CPUInfo[0] and the CPU identification string in in CPU() [all …]
|
/external/tensorflow/tensorflow/core/platform/profile_utils/ |
D | cpu_utils.cc | 75 // Read the contents of /proc/cpuinfo. in GetCycleCounterFrequencyImpl() 76 std::ifstream cpuinfo("/proc/cpuinfo"); in GetCycleCounterFrequencyImpl() 77 if (!cpuinfo) { in GetCycleCounterFrequencyImpl() 78 LOG(WARNING) << "Failed to open /proc/cpuinfo"; in GetCycleCounterFrequencyImpl() 82 while (std::getline(cpuinfo, line)) { in GetCycleCounterFrequencyImpl() 98 LOG(WARNING) << "Failed to find bogomips in /proc/cpuinfo; cannot determine " in GetCycleCounterFrequencyImpl()
|
/external/libchrome/base/ |
D | cpu.cc | 99 // This function finds the value from /proc/cpuinfo under the key "model in CpuInfoBrand() 102 // earler versions and is shown only once at the top of /proc/cpuinfo in CpuInfoBrand() 108 ReadFileToString(FilePath("/proc/cpuinfo"), &contents); in CpuInfoBrand() 140 // valid Ids in CPUInfo[0] and the CPU identification string in in Initialize() 143 // in a human readable form. The human readable order is CPUInfo[1] | in Initialize() 144 // CPUInfo[3] | CPUInfo[2]. CPUInfo[2] and CPUInfo[3] are swapped in Initialize()
|
/external/grpc-grpc/src/cpp/server/load_reporter/ |
D | get_cpu_stats_macos.cc | 32 host_cpu_load_info_data_t cpuinfo; in GetCpuStatsImpl() local 35 (host_info_t)&cpuinfo, &count) == KERN_SUCCESS) { in GetCpuStatsImpl() 36 for (int i = 0; i < CPU_STATE_MAX; i++) total += cpuinfo.cpu_ticks[i]; in GetCpuStatsImpl() 37 busy = total - cpuinfo.cpu_ticks[CPU_STATE_IDLE]; in GetCpuStatsImpl()
|
/external/libpng/contrib/powerpc-vsx/ |
D | linux.c | 15 * pseudo-file /proc/cpuinfo. 18 * however use <stdio.h> and it assumes that /proc/cpuinfo is never localized. 41 f = fopen("/proc/cpuinfo", "r"); in png_have_vsx() 54 png_warning(png_ptr, "/proc/cpuinfo open failed"); in png_have_vsx()
|
/external/ltp/lib/ |
D | tst_virt.c | 31 FILE *cpuinfo; in is_kvm() local 37 cpuinfo = SAFE_FOPEN(NULL, "/proc/cpuinfo", "r"); in is_kvm() 39 while (fgets(line, sizeof(line), cpuinfo) != NULL) { in is_kvm() 46 SAFE_FCLOSE(NULL, cpuinfo); in is_kvm()
|
/external/libpng/contrib/mips-msa/ |
D | linux.c | 17 * pseudo-file /proc/cpuinfo. 20 * however use <stdio.h> and it assumes that /proc/cpuinfo is never localized. 30 FILE *f = fopen("/proc/cpuinfo", "rb"); in png_have_msa() 61 png_warning(png_ptr, "/proc/cpuinfo open failed"); in png_have_msa()
|
/external/libopus/celt/arm/ |
D | armcpu.c | 99 FILE *cpuinfo; in opus_cpu_capabilities() local 103 cpuinfo = fopen("/proc/cpuinfo", "r"); in opus_cpu_capabilities() 105 if(cpuinfo != NULL) in opus_cpu_capabilities() 111 while(fgets(buf, 512, cpuinfo) != NULL) in opus_cpu_capabilities() 145 fclose(cpuinfo); in opus_cpu_capabilities()
|
/external/lzma/C/ |
D | CpuArch.c | 108 int CPUInfo[4]; in MyCPUID() 109 __cpuid(CPUInfo, function); in MyCPUID() 110 *a = CPUInfo[0]; in MyCPUID() 111 *b = CPUInfo[1]; in MyCPUID() 112 *c = CPUInfo[2]; in MyCPUID() 113 *d = CPUInfo[3]; in MyCPUID()
|
/external/flac/libFLAC/ |
D | cpu.c | 267 int cpuinfo[4]; in FLAC__cpu_info_x86() local 269 __cpuid(cpuinfo, ext); in FLAC__cpu_info_x86() 270 if((unsigned)cpuinfo[0] >= level) { in FLAC__cpu_info_x86() 272 __cpuidex(cpuinfo, ext, 0); /* for AVX2 detection */ in FLAC__cpu_info_x86() 274 __cpuid(cpuinfo, ext); /* some old compilers don't support __cpuidex */ in FLAC__cpu_info_x86() 277 *eax = cpuinfo[0]; *ebx = cpuinfo[1]; *ecx = cpuinfo[2]; *edx = cpuinfo[3]; in FLAC__cpu_info_x86()
|
/external/compiler-rt/test/scudo/ |
D | CMakeLists.txt | 16 EXEC_PROGRAM(cat ARGS "/proc/cpuinfo" OUTPUT_VARIABLE CPUINFO) 17 STRING(REGEX REPLACE "^.*(sse4_2).*$" "\\1" SSE_THERE ${CPUINFO})
|
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/ |
D | cpuinfo.c | 13 #include "cpuinfo.h" 17 #define CPUINFO_FILE "/proc/cpuinfo" 24 struct cpuinfo *cpus; 28 /* get cpu_baseinfo from /proc/cpuinfo */ 55 /* open file /proc/cpuinfo */ in get_cpu_baseinfo() 59 /* get cpuinfo */ in get_cpu_baseinfo() 220 /* get cpuinfo */ in get_sched_domains() 264 warn("get base infomation of cpus from /proc/cpuinfo " in getcpuinfo()
|
/external/ltp/testcases/kernel/power_management/ |
D | pm_include.sh | 89 siblings=`grep siblings /proc/cpuinfo | uniq | cut -f2 -d':'` 90 cpu_cores=`grep "cpu cores" /proc/cpuinfo | uniq | cut -f2 -d':'` 133 siblings=`grep siblings /proc/cpuinfo | uniq | cut -f2 -d':'` 134 cpu_cores=`grep "cpu cores" /proc/cpuinfo | uniq | cut -f2 -d':'` 144 siblings=`grep siblings /proc/cpuinfo | uniq | cut -f2 -d':'` 145 cpu_cores=`grep "cpu cores" /proc/cpuinfo | uniq \
|
/external/libpng/contrib/arm-neon/ |
D | linux.c | 17 * pseudo-file /proc/cpuinfo. 20 * however use <stdio.h> and it assumes that /proc/cpuinfo is never localized. 27 FILE *f = fopen("/proc/cpuinfo", "rb"); in png_have_neon() 157 png_warning(png_ptr, "/proc/cpuinfo open failed"); in png_have_neon()
|
/external/ltp/testcases/kernel/power_management/lib/ |
D | pm_sched_mc.py | 41 cpuinfo = open('/proc/cpuinfo', 'r') 43 for line in cpuinfo: 46 cpuinfo.close() 84 file_cpuinfo = open("/proc/cpuinfo", 'r') 105 file_cpuinfo = open("/proc/cpuinfo", 'r') 136 file_cpuinfo = open("/proc/cpuinfo", 'r') 586 Read /proc/cpuinfo and check if system is Quad core 589 cpuinfo = open('/proc/cpuinfo', 'r') 590 for line in cpuinfo: 594 cpuinfo.close()
|
/external/tensorflow/tensorflow/tools/test/ |
D | system_info_lib.py | 28 # Note: cpuinfo and psutil are not installed for you in the TensorFlow 30 import cpuinfo 78 cpu_info = test_log_pb2.CPUInfo() 95 info = cpuinfo.get_cpu_info()
|