Lines Matching refs:c1
406 struct cmdinfo c1, c2; in cmp_usrsys() local
409 memcpy(&c1, d1->data, sizeof(c1)); in cmp_usrsys()
412 t1 = c1.ci_utime + c1.ci_stime; in cmp_usrsys()
418 return (cmp_comm(c1.ci_comm, c2.ci_comm)); in cmp_usrsys()
427 struct cmdinfo c1, c2; in cmp_avgusrsys() local
430 memcpy(&c1, d1->data, sizeof(c1)); in cmp_avgusrsys()
433 t1 = c1.ci_utime + c1.ci_stime; in cmp_avgusrsys()
434 t1 /= (double) (c1.ci_calls ? c1.ci_calls : 1); in cmp_avgusrsys()
442 return (cmp_comm(c1.ci_comm, c2.ci_comm)); in cmp_avgusrsys()
451 struct cmdinfo c1, c2; in cmp_dkio() local
453 memcpy(&c1, d1->data, sizeof(c1)); in cmp_dkio()
456 if (c1.ci_io < c2.ci_io) in cmp_dkio()
458 else if (c1.ci_io == c2.ci_io) in cmp_dkio()
459 return (cmp_comm(c1.ci_comm, c2.ci_comm)); in cmp_dkio()
468 struct cmdinfo c1, c2; in cmp_avgdkio() local
471 memcpy(&c1, d1->data, sizeof(c1)); in cmp_avgdkio()
474 n1 = (double) c1.ci_io / (double) (c1.ci_calls ? c1.ci_calls : 1); in cmp_avgdkio()
480 return (cmp_comm(c1.ci_comm, c2.ci_comm)); in cmp_avgdkio()
489 struct cmdinfo c1, c2; in cmp_cpumem() local
491 memcpy(&c1, d1->data, sizeof(c1)); in cmp_cpumem()
494 if (c1.ci_mem < c2.ci_mem) in cmp_cpumem()
496 else if (c1.ci_mem == c2.ci_mem) in cmp_cpumem()
497 return (cmp_comm(c1.ci_comm, c2.ci_comm)); in cmp_cpumem()
506 struct cmdinfo c1, c2; in cmp_avgcpumem() local
510 memcpy(&c1, d1->data, sizeof(c1)); in cmp_avgcpumem()
513 t1 = c1.ci_utime + c1.ci_stime; in cmp_avgcpumem()
516 n1 = (double) c1.ci_mem / (double) (t1 ? t1 : 1); in cmp_avgcpumem()
522 return (cmp_comm(c1.ci_comm, c2.ci_comm)); in cmp_avgcpumem()
531 struct cmdinfo c1, c2; in cmp_calls() local
533 memcpy(&c1, d1->data, sizeof(c1)); in cmp_calls()
536 if (c1.ci_calls < c2.ci_calls) in cmp_calls()
538 else if (c1.ci_calls == c2.ci_calls) in cmp_calls()
539 return (cmp_comm(c1.ci_comm, c2.ci_comm)); in cmp_calls()