Lines Matching refs:PRIME
351 ratio = (double)elaps[PRIME]/(double)etime; in dofile()
352 if(elaps[PRIME] > elaps[NONPRIME]) { in dofile()
353 pcmt.pcm_pc[PRIME] = 1; in dofile()
356 pcmt.pcm_pc[PRIME] = 0; in dofile()
362 pcmt.pcm_cpu[PRIME] = dtmp * ratio; in dofile()
364 (dtmp - pcmt.pcm_cpu[PRIME]); in dofile()
367 pcmt.pcm_real[PRIME] = dtmp * ratio; in dofile()
369 (dtmp - pcmt.pcm_real[PRIME]); in dofile()
372 pcmt.pcm_kcore[PRIME] = dtmp * ratio; in dofile()
374 (dtmp - pcmt.pcm_kcore[PRIME]); in dofile()
376 pcmt.pcm_io[PRIME] = (double)ltmp * ratio; in dofile()
378 ((double)ltmp - pcmt.pcm_io[PRIME]); in dofile()
380 pcmt.pcm_rw[PRIME] = (double)ltmp * ratio; in dofile()
382 ((double)ltmp - pcmt.pcm_rw[PRIME]); in dofile()
399 ratio = (double)elaps[PRIME]/(double)etime; in dofile()
400 if(elaps[PRIME] > elaps[NONPRIME]) { in dofile()
401 pcmt.pcm_pc[PRIME] = 1; in dofile()
404 pcmt.pcm_pc[PRIME] = 0; in dofile()
410 pcmt.pcm_cpu[PRIME] = dtmp * ratio; in dofile()
412 (dtmp - pcmt.pcm_cpu[PRIME]); in dofile()
415 pcmt.pcm_real[PRIME] = dtmp * ratio; in dofile()
417 (dtmp - pcmt.pcm_real[PRIME]); in dofile()
420 pcmt.pcm_kcore[PRIME] = dtmp * ratio; in dofile()
422 (dtmp - pcmt.pcm_kcore[PRIME]); in dofile()
424 pcmt.pcm_io[PRIME] = (double)ltmp * ratio; in dofile()
426 ((double)ltmp - pcmt.pcm_io[PRIME]); in dofile()
428 pcmt.pcm_rw[PRIME] = (double)ltmp * ratio; in dofile()
430 ((double)ltmp - pcmt.pcm_rw[PRIME]); in dofile()
529 if (i != j && pcm[i].pcm_comm[0] && (pcm[i].pcm_pc[PRIME] + pcm[i].pcm_pc[NONPRIME]) <= 1) { in fixjunk()
549 p1->pcm_pc[PRIME] += p2->pcm_pc[PRIME]; in pcmadd()
551 p1->pcm_cpu[PRIME] += p2->pcm_cpu[PRIME]; in pcmadd()
553 p1->pcm_real[PRIME] += p2->pcm_real[PRIME]; in pcmadd()
555 p1->pcm_kcore[PRIME] += p2->pcm_kcore[PRIME]; in pcmadd()
557 p1->pcm_io[PRIME] += p2->pcm_io[PRIME]; in pcmadd()
559 p1->pcm_rw[PRIME] += p2->pcm_rw[PRIME]; in pcmadd()
590 pcm[k].pcm_pc[PRIME] = pcm[i].pcm_pc[PRIME]; in squeeze()
592 pcm[k].pcm_cpu[PRIME] = pcm[i].pcm_cpu[PRIME]; in squeeze()
594 pcm[k].pcm_real[PRIME] = pcm[i].pcm_real[PRIME]; in squeeze()
596 pcm[k].pcm_kcore[PRIME] = pcm[i].pcm_kcore[PRIME]; in squeeze()
598 pcm[k].pcm_io[PRIME] = pcm[i].pcm_io[PRIME]; in squeeze()
600 pcm[k].pcm_rw[PRIME] = pcm[i].pcm_rw[PRIME]; in squeeze()
621 if (p1->pcm_cpu[PRIME] + p1->pcm_cpu[NONPRIME] == p2->pcm_cpu[PRIME] + p2->pcm_cpu[NONPRIME]) in ccmp()
623 …return ((p2->pcm_cpu[PRIME] + p2->pcm_cpu[NONPRIME] > p1->pcm_cpu[PRIME] + p1->pcm_cpu[NONPRIME])?… in ccmp()
625 index = pflg ? PRIME : NONPRIME; in ccmp()
645 …if (p1->pcm_kcore[PRIME] + p1->pcm_kcore[NONPRIME] == p2->pcm_kcore[PRIME] + p2->pcm_kcore[NONPRIM… in kcmp()
647 …return ((p2->pcm_kcore[PRIME] + p2->pcm_kcore[NONPRIME] > p1->pcm_kcore[PRIME] + p1->pcm_kcore[NON… in kcmp()
649 index = pflg ? PRIME : NONPRIME; in kcmp()
669 if (p1->pcm_pc[PRIME] + p1->pcm_pc[NONPRIME] == p2->pcm_pc[PRIME] + p2->pcm_pc[NONPRIME]) in ncmp()
671 …return ((p2->pcm_pc[PRIME] + p2->pcm_pc[NONPRIME] > p1->pcm_pc[PRIME] + p1->pcm_pc[NONPRIME])? 1 :… in ncmp()
673 index = pflg ? PRIME : NONPRIME; in ncmp()
777 else if(pflg || oflg) prnt(p, pflg ? PRIME : NONPRIME); in print()
806 printf(fmtcnt, p->pcm_pc[PRIME]); in pprint()
809 printf(fmtcpu, p->pcm_cpu[PRIME]); in pprint()
811 printf(fmtreal, p->pcm_real[PRIME]); in pprint()
813 if(TOTAL(p->pcm_cpu) == 0) p->pcm_cpu[PRIME] = 1; in pprint()
815 if(TOTAL(p->pcm_pc) == 0) p->pcm_pc[PRIME] = 1; in pprint()
818 p->pcm_real[PRIME] = 1; in pprint()
833 if(TOTAL(p->pcm_cpu) == 0) p->pcm_cpu[PRIME] = 1; in totprnt()
835 if(TOTAL(p->pcm_pc) == 0) p->pcm_pc[PRIME] = 1; in totprnt()
838 p->pcm_real[PRIME] = 1; in totprnt()