Lines Matching refs:new_cpu
86 static struct cpu_info old_cpu[10], new_cpu[10]; //1 total, 8 cores, 1 null variable
512 for (k = 1; new_cpu[k].total; k++) { in print_header()
519 total = (new_cpu[k].total) - (old_cpu[k].total); in print_header()
522 show_percent((new_cpu[k].utime - old_cpu[k].utime), total)); in print_header()
524 show_percent((new_cpu[k].stime - old_cpu[k].stime), total)); in print_header()
526 show_percent(new_cpu[k].ntime - old_cpu[k].ntime, total)); in print_header()
528 show_percent(new_cpu[k].itime - old_cpu[k].itime, total)); in print_header()
530 show_percent((new_cpu[k].iowtime - old_cpu[k].iowtime), total)); in print_header()
532 show_percent(new_cpu[k].irqtime - old_cpu[k].irqtime, total)); in print_header()
534 show_percent(new_cpu[k].sirqtime - old_cpu[k].sirqtime, total)); in print_header()
583 total_delta_time = new_cpu[0].total - old_cpu[0].total; in print_procs()
751 len = sscanf(line, toybuf, &new_cpu[i].utime, &new_cpu[i].ntime, in read_cpu_stat()
752 &new_cpu[i].stime, &new_cpu[i].itime, &new_cpu[i].iowtime, in read_cpu_stat()
753 &new_cpu[i].irqtime, &new_cpu[i].sirqtime, &new_cpu[i].steal); in read_cpu_stat()
755 new_cpu[i].total = new_cpu[i].utime + new_cpu[i].ntime + new_cpu[i].stime in read_cpu_stat()
756 + new_cpu[i].itime + new_cpu[i].iowtime + new_cpu[i].irqtime in read_cpu_stat()
757 + new_cpu[i].sirqtime + new_cpu[i].steal; in read_cpu_stat()
782 memcpy(old_cpu, new_cpu, sizeof(old_cpu)); in top_main()