Lines Matching defs:cpu_info
43 struct cpu_info {
51 static struct cpu_info old_total_cpu, new_total_cpu, *old_cpus, *new_cpus;
57 static long unsigned get_cpu_total_time(struct cpu_info *cpu);
60 static void print_cpu_stats(char *label, struct cpu_info *new_cpu, struct cpu_info *old_cpu,
62 static void print_freq_stats(struct cpu_info *new_cpu, struct cpu_info *old_cpu);
70 struct cpu_info *tmp_cpus, tmp_total_cpu;
108 old_cpus = malloc(sizeof(struct cpu_info) * cpu_count);
109 if (!old_cpus) die("Could not allocate struct cpu_info\n");
110 new_cpus = malloc(sizeof(struct cpu_info) * cpu_count);
111 if (!new_cpus) die("Could not allocate struct cpu_info\n");
284 static long unsigned get_cpu_total_time(struct cpu_info *cpu) {
310 static void print_cpu_stats(char *label, struct cpu_info *new_cpu, struct cpu_info *old_cpu,
346 static void print_freq_stats(struct cpu_info *new_cpu, struct cpu_info *old_cpu) {