Lines Matching refs:old_cpu
65 static void print_cpu_stats(char* label, struct cpu_info* new_cpu, struct cpu_info* old_cpu,
67 static void print_freq_stats(struct cpu_info* new_cpu, struct cpu_info* old_cpu);
322 static void print_cpu_stats(char* label, struct cpu_info* new_cpu, struct cpu_info* old_cpu, in print_cpu_stats() argument
327 total_delta_time = get_cpu_total_time(new_cpu) - get_cpu_total_time(old_cpu); in print_cpu_stats()
330 label, new_cpu->utime - old_cpu->utime, new_cpu->ntime - old_cpu->ntime, in print_cpu_stats()
331 new_cpu->stime - old_cpu->stime, new_cpu->itime - old_cpu->itime, in print_cpu_stats()
332 new_cpu->iowtime - old_cpu->iowtime, new_cpu->irqtime - old_cpu->irqtime, in print_cpu_stats()
333 new_cpu->sirqtime - old_cpu->sirqtime, total_delta_time); in print_cpu_stats()
335 print_freq_stats(new_cpu, old_cpu); in print_cpu_stats()
338 printf("%s,%ld,%ld,%ld,%ld,%ld,%ld,%ld", label, new_cpu->utime - old_cpu->utime, in print_cpu_stats()
339 new_cpu->ntime - old_cpu->ntime, new_cpu->stime - old_cpu->stime, in print_cpu_stats()
340 new_cpu->itime - old_cpu->itime, new_cpu->iowtime - old_cpu->iowtime, in print_cpu_stats()
341 new_cpu->irqtime - old_cpu->irqtime, new_cpu->sirqtime - old_cpu->sirqtime); in print_cpu_stats()
342 print_freq_stats(new_cpu, old_cpu); in print_cpu_stats()
350 static void print_freq_stats(struct cpu_info* new_cpu, struct cpu_info* old_cpu) { in print_freq_stats() argument
359 delta_time = new_cpu->freqs[i].time - old_cpu->freqs[i].time; in print_freq_stats()
372 new_cpu->freqs[i].time - old_cpu->freqs[i].time); in print_freq_stats()