Lines Matching refs:new_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);
317 static void print_cpu_stats(char *label, struct cpu_info *new_cpu, struct cpu_info *old_cpu, in print_cpu_stats() argument
322 total_delta_time = get_cpu_total_time(new_cpu) - get_cpu_total_time(old_cpu); in print_cpu_stats()
325 new_cpu->utime - old_cpu->utime, in print_cpu_stats()
326 new_cpu->ntime - old_cpu->ntime, in print_cpu_stats()
327 new_cpu->stime - old_cpu->stime, in print_cpu_stats()
328 new_cpu->itime - old_cpu->itime, in print_cpu_stats()
329 new_cpu->iowtime - old_cpu->iowtime, in print_cpu_stats()
330 new_cpu->irqtime - old_cpu->irqtime, in print_cpu_stats()
331 new_cpu->sirqtime - old_cpu->sirqtime, in print_cpu_stats()
334 print_freq_stats(new_cpu, old_cpu); in print_cpu_stats()
338 new_cpu->utime - old_cpu->utime, in print_cpu_stats()
339 new_cpu->ntime - old_cpu->ntime, in print_cpu_stats()
340 new_cpu->stime - old_cpu->stime, in print_cpu_stats()
341 new_cpu->itime - old_cpu->itime, in print_cpu_stats()
342 new_cpu->iowtime - old_cpu->iowtime, in print_cpu_stats()
343 new_cpu->irqtime - old_cpu->irqtime, in print_cpu_stats()
344 new_cpu->sirqtime - old_cpu->sirqtime); in print_cpu_stats()
345 print_freq_stats(new_cpu, old_cpu); in print_cpu_stats()
353 static void print_freq_stats(struct cpu_info *new_cpu, struct cpu_info *old_cpu) { in print_freq_stats() argument
357 if (new_cpu->freq_count > 0) { in print_freq_stats()
361 for (i = 0; i < new_cpu->freq_count; i++) { in print_freq_stats()
362 delta_time = new_cpu->freqs[i].time - old_cpu->freqs[i].time; in print_freq_stats()
364 printf("%ukHz %ld", new_cpu->freqs[i].freq, delta_time); in print_freq_stats()
365 if (i + 1 != new_cpu->freq_count) { in print_freq_stats()
373 for (i = 0; i < new_cpu->freq_count; i++) { in print_freq_stats()
374 printf(",%u,%ld", new_cpu->freqs[i].freq, in print_freq_stats()
375 new_cpu->freqs[i].time - old_cpu->freqs[i].time); in print_freq_stats()