Lines Matching defs:cpuinfo
39 * the "Features" field in /proc/cpuinfo.
42 * of /proc/cpuinfo to deal with newer hardware.
152 /* Read the content of /proc/cpuinfo into a user-provided buffer.
187 * the content of /proc/cpuinfo and return it as a heap-allocated
529 /* Compute the ELF HWCAP flags from the content of /proc/cpuinfo.
535 get_elf_hwcap_from_proc_cpuinfo(const char* cpuinfo, int cpuinfo_len) {
538 char* cpuArch = extract_cpuinfo_field(cpuinfo, cpuinfo_len, "CPU architecture");
553 char* cpuFeatures = extract_cpuinfo_field(cpuinfo, cpuinfo_len, "Features");
629 char* cpuinfo = NULL;
638 cpuinfo_len = get_file_size("/proc/cpuinfo");
643 cpuinfo = malloc(cpuinfo_len);
644 if (cpuinfo == NULL) {
645 D("cpuinfo buffer could not be allocated");
648 cpuinfo_len = read_file("/proc/cpuinfo", cpuinfo, cpuinfo_len);
650 cpuinfo_len >= 0 ? cpuinfo_len : 0, cpuinfo);
653 free(cpuinfo);
675 char* cpuArch = extract_cpuinfo_field(cpuinfo, cpuinfo_len, "CPU architecture");
703 char* cpuProc = extract_cpuinfo_field(cpuinfo, cpuinfo_len,
737 // parse proc/cpuinfo instead.
738 D("Parsing /proc/cpuinfo to extract ELF hwcaps!\n");
739 hwcaps = get_elf_hwcap_from_proc_cpuinfo(cpuinfo, cpuinfo_len);
802 // The CPUID value is broken up in several entries in /proc/cpuinfo.
816 D("Parsing /proc/cpuinfo to recover CPUID\n");
821 char* value = extract_cpuinfo_field(cpuinfo,
873 char* hardware = extract_cpuinfo_field(cpuinfo,
912 free(cpuinfo);
1013 * /proc/cpuinfo). Always try to use the full designation when