Home | History | Annotate | Download | only in cpustats

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