Lines Matching refs:p2
539 tcmadd(struct tcms *p1, struct tcms *p2)
541 p1->tcm_pc += p2->tcm_pc;
542 p1->tcm_cpu = p1->tcm_cpu + p2->tcm_cpu;
543 p1->tcm_real = p1->tcm_real + p2->tcm_real;
544 p1->tcm_kcore = p1->tcm_kcore + p2->tcm_kcore;
545 p1->tcm_io += p2->tcm_io;
546 p1->tcm_rw += p2->tcm_rw;
550 pcmadd(struct pcms *p1, struct pcms *p2)
552 p1->pcm_pc[PRIME] += p2->pcm_pc[PRIME];
553 p1->pcm_pc[NONPRIME] += p2->pcm_pc[NONPRIME];
554 p1->pcm_cpu[PRIME] += p2->pcm_cpu[PRIME];
555 p1->pcm_cpu[NONPRIME] += p2->pcm_cpu[NONPRIME];
556 p1->pcm_real[PRIME] += p2->pcm_real[PRIME];
557 p1->pcm_real[NONPRIME] += p2->pcm_real[NONPRIME];
558 p1->pcm_kcore[PRIME] += p2->pcm_kcore[PRIME];
559 p1->pcm_kcore[NONPRIME] += p2->pcm_kcore[NONPRIME];
560 p1->pcm_io[PRIME] += p2->pcm_io[PRIME];
561 p1->pcm_io[NONPRIME] += p2->pcm_io[NONPRIME];
562 p1->pcm_rw[PRIME] += p2->pcm_rw[PRIME];
563 p1->pcm_rw[NONPRIME] += p2->pcm_rw[NONPRIME];
611 tccmp(struct tcms *p1, struct tcms *p2)
613 if (p1->tcm_cpu == p2->tcm_cpu)
615 return ((p2->tcm_cpu > p1->tcm_cpu)? 1 : -1);
619 ccmp(struct pcms *p1, struct pcms *p2)
624 if (p1->pcm_cpu[PRIME] + p1->pcm_cpu[NONPRIME] == p2->pcm_cpu[PRIME] + p2->pcm_cpu[NONPRIME])
626 return ((p2->pcm_cpu[PRIME] + p2->pcm_cpu[NONPRIME] > p1->pcm_cpu[PRIME] + p1->pcm_cpu[NONPRIME])? 1 : -1);
629 if (p1->pcm_cpu[index] == p2->pcm_cpu[index])
631 return ((p2->pcm_cpu[index] > p1->pcm_cpu[index])? 1 : -1);
635 tkcmp(struct tcms *p1, struct tcms *p2)
637 if (p1->tcm_kcore == p2->tcm_kcore)
639 return ((p2->tcm_kcore > p1->tcm_kcore)? 1 : -1);
643 kcmp(struct pcms *p1, struct pcms *p2)
648 if (p1->pcm_kcore[PRIME] + p1->pcm_kcore[NONPRIME] == p2->pcm_kcore[PRIME] + p2->pcm_kcore[NONPRIME])
650 return ((p2->pcm_kcore[PRIME] + p2->pcm_kcore[NONPRIME] > p1->pcm_kcore[PRIME] + p1->pcm_kcore[NONPRIME])? 1 : -1);
653 if (p1->pcm_kcore[index] == p2->pcm_kcore[index])
655 return ((p2->pcm_kcore[index] > p1->pcm_kcore[index])? 1 : -1);
659 tncmp(struct tcms *p1, struct tcms *p2)
661 if (p1->tcm_pc == p2->tcm_pc)
663 return ((p2->tcm_pc > p1->tcm_pc)? 1 : -1);
667 ncmp(struct pcms *p1, struct pcms *p2)
672 if (p1->pcm_pc[PRIME] + p1->pcm_pc[NONPRIME] == p2->pcm_pc[PRIME] + p2->pcm_pc[NONPRIME])
674 return ((p2->pcm_pc[PRIME] + p2->pcm_pc[NONPRIME] > p1->pcm_pc[PRIME] + p1->pcm_pc[NONPRIME])? 1 : -1);
677 if (p1->pcm_pc[index] == p2->pcm_pc[index])
679 return ((p2->pcm_pc[index] > p1->pcm_pc[index])? 1 : -1);