Searched refs:cpu_info (Results 1 – 6 of 6) sorted by relevance
/system/extras/cpustats/ |
D | cpustats.c | 44 struct cpu_info { struct 52 static struct cpu_info old_total_cpu, new_total_cpu, *old_cpus, *new_cpus; argument 58 static long unsigned get_cpu_total_time(struct cpu_info *cpu); 61 static void print_cpu_stats(char *label, struct cpu_info *new_cpu, struct cpu_info *old_cpu, 63 static void print_freq_stats(struct cpu_info *new_cpu, struct cpu_info *old_cpu); 71 struct cpu_info *tmp_cpus, tmp_total_cpu; in main() 110 old_cpus = malloc(sizeof(struct cpu_info) * cpu_count); in main() 112 new_cpus = malloc(sizeof(struct cpu_info) * cpu_count); in main() 294 static long unsigned get_cpu_total_time(struct cpu_info *cpu) { in get_cpu_total_time() 320 static void print_cpu_stats(char *label, struct cpu_info *new_cpu, struct cpu_info *old_cpu, in print_cpu_stats() [all …]
|
/system/extras/simpleperf/ |
D | ETMRecorder.cpp | 138 ETMPerCpu &cpu_info = etm_info_[cpu]; in ReadEtmInfo() local 140 ReadValueInEtmDir(name + "/trcidr/trcidr0", &cpu_info.trcidr0) && in ReadEtmInfo() 141 ReadValueInEtmDir(name + "/trcidr/trcidr1", &cpu_info.trcidr1) && in ReadEtmInfo() 142 ReadValueInEtmDir(name + "/trcidr/trcidr2", &cpu_info.trcidr2) && in ReadEtmInfo() 143 ReadValueInEtmDir(name + "/trcidr/trcidr4", &cpu_info.trcidr4) && in ReadEtmInfo() 144 ReadValueInEtmDir(name + "/trcidr/trcidr8", &cpu_info.trcidr8) && in ReadEtmInfo() 145 ReadValueInEtmDir(name + "/mgmt/trcauthstatus", &cpu_info.trcauthstatus); in ReadEtmInfo()
|
D | environment_test.cpp | 41 std::string cpu_info = "CPU revision : 10\n\n" in TEST() local 44 GetHardwareFromCpuInfo(cpu_info)); in TEST()
|
D | environment.h | 133 std::string GetHardwareFromCpuInfo(const std::string& cpu_info);
|
D | cmd_record_test.cpp | 300 std::string cpu_info; in HasHardwareCounter() local 301 if (android::base::ReadFileToString("/proc/cpuinfo", &cpu_info)) { in HasHardwareCounter() 302 std::string hardware = GetHardwareFromCpuInfo(cpu_info); in HasHardwareCounter()
|
D | environment.cpp | 901 std::string GetHardwareFromCpuInfo(const std::string& cpu_info) { in GetHardwareFromCpuInfo() argument 902 for (auto& line : android::base::Split(cpu_info, "\n")) { in GetHardwareFromCpuInfo()
|