Lines Matching refs:c2

389 	struct cmdinfo c1, c2;  in cmp_usrsys()  local
393 memcpy(&c2, d2->data, sizeof(c2)); in cmp_usrsys()
396 t2 = c2.ci_utime + c2.ci_stime; in cmp_usrsys()
401 return (cmp_comm(c1.ci_comm, c2.ci_comm)); in cmp_usrsys()
410 struct cmdinfo c1, c2; in cmp_avgusrsys() local
414 memcpy(&c2, d2->data, sizeof(c2)); in cmp_avgusrsys()
419 t2 = c2.ci_utime + c2.ci_stime; in cmp_avgusrsys()
420 t2 /= (double) (c2.ci_calls ? c2.ci_calls : 1); in cmp_avgusrsys()
425 return (cmp_comm(c1.ci_comm, c2.ci_comm)); in cmp_avgusrsys()
434 struct cmdinfo c1, c2; in cmp_dkio() local
437 memcpy(&c2, d2->data, sizeof(c2)); in cmp_dkio()
439 if (c1.ci_io < c2.ci_io) in cmp_dkio()
441 else if (c1.ci_io == c2.ci_io) in cmp_dkio()
442 return (cmp_comm(c1.ci_comm, c2.ci_comm)); in cmp_dkio()
451 struct cmdinfo c1, c2; in cmp_avgdkio() local
455 memcpy(&c2, d2->data, sizeof(c2)); in cmp_avgdkio()
458 n2 = c2.ci_io / (double) (c2.ci_calls ? c2.ci_calls : 1); in cmp_avgdkio()
463 return (cmp_comm(c1.ci_comm, c2.ci_comm)); in cmp_avgdkio()
472 struct cmdinfo c1, c2; in cmp_cpumem() local
475 memcpy(&c2, d2->data, sizeof(c2)); in cmp_cpumem()
477 if (c1.ci_mem < c2.ci_mem) in cmp_cpumem()
479 else if (c1.ci_mem == c2.ci_mem) in cmp_cpumem()
480 return (cmp_comm(c1.ci_comm, c2.ci_comm)); in cmp_cpumem()
489 struct cmdinfo c1, c2; in cmp_avgcpumem() local
494 memcpy(&c2, d2->data, sizeof(c2)); in cmp_avgcpumem()
497 t2 = c2.ci_utime + c2.ci_stime; in cmp_avgcpumem()
500 n2 = c2.ci_mem / (t2 ? t2 : 1); in cmp_avgcpumem()
505 return (cmp_comm(c1.ci_comm, c2.ci_comm)); in cmp_avgcpumem()
514 struct cmdinfo c1, c2; in cmp_calls() local
517 memcpy(&c2, d2->data, sizeof(c2)); in cmp_calls()
519 if (c1.ci_calls < c2.ci_calls) in cmp_calls()
521 else if (c1.ci_calls == c2.ci_calls) in cmp_calls()
522 return (cmp_comm(c1.ci_comm, c2.ci_comm)); in cmp_calls()