Lines Matching refs:new_total_cpu
52 static struct cpu_info old_total_cpu, new_total_cpu, *old_cpus, *new_cpus; variable
130 old_total_cpu.freq_count = new_total_cpu.freq_count = new_cpus[0].freq_count; in main()
131 new_total_cpu.freqs = malloc(sizeof(struct freq_info) * new_total_cpu.freq_count); in main()
132 if (!new_total_cpu.freqs) die("Could not allocate struct freq_info\n"); in main()
143 old_total_cpu = new_total_cpu; in main()
144 new_total_cpu = tmp_total_cpu; in main()
157 free(new_total_cpu.freqs); in main()
245 &new_total_cpu.utime, &new_total_cpu.ntime, &new_total_cpu.stime, &new_total_cpu.itime, in read_stats()
246 &new_total_cpu.iowtime, &new_total_cpu.irqtime, &new_total_cpu.sirqtime); in read_stats()
248 for (i = 0; i < new_total_cpu.freq_count; i++) { in read_stats()
249 new_total_cpu.freqs[i].time = 0; in read_stats()
283 new_total_cpu.freqs[i].freq = new_cpus[cpu].freqs[i].freq; in read_freq_stats()
284 new_total_cpu.freqs[i].time += new_cpus[cpu].freqs[i].time; in read_freq_stats()
309 print_cpu_stats("Total", &new_total_cpu, &old_total_cpu, 1); in print_stats()