Lines Matching refs:cip
167 struct cmdinfo *cip, ci, ci_total, ci_other, ci_junk;
195 cip = (struct cmdinfo *) data.data;
196 bcopy(cip, &ci, sizeof ci);
246 cip = (struct cmdinfo *) data.data;
247 bcopy(cip, &ci, sizeof ci);
260 check_junk(const struct cmdinfo *cip)
265 fprintf(stderr, "%s (%ju) -- ", cip->ci_comm, (uintmax_t)cip->ci_calls);
283 print_ci(const struct cmdinfo *cip, const struct cmdinfo *totalcip)
288 c = cip->ci_calls ? cip->ci_calls : 1;
289 t = (cip->ci_utime + cip->ci_stime) / 1000000;
296 printf("%8ju ", (uintmax_t)cip->ci_calls);
298 if (cip != totalcip)
299 printf(" %4.1f%% ", cip->ci_calls /
306 printf("%11.3fre ", cip->ci_etime / (1000000 * c));
308 printf("%11.3fre ", cip->ci_etime / (60.0 * 1000000));
310 if (cip != totalcip)
311 printf(" %4.1f%% ", cip->ci_etime /
319 printf("%11.3fcp ", t / (double) cip->ci_calls);
323 if (cip != totalcip)
325 (cip->ci_utime + cip->ci_stime) /
333 printf("%11.3fu ", cip->ci_utime / (1000000 * c));
335 printf("%11.2fu ", cip->ci_utime / (60.0 * 1000000));
337 if (cip != totalcip)
338 printf(" %4.1f%% ", cip->ci_utime /
344 printf("%11.3fs ", cip->ci_stime / (1000000 * c));
346 printf("%11.2fs ", cip->ci_stime / (60.0 * 1000000));
348 if (cip != totalcip)
349 printf(" %4.1f%% ", cip->ci_stime /
359 cip->ci_etime /
360 (cip->ci_utime + cip->ci_stime));
366 printf("%10.0fio ", cip->ci_io);
368 printf("%8.0favio ", cip->ci_io / c);
371 printf("%10.0fk*sec ", cip->ci_mem);
373 printf("%8.0fk ", cip->ci_mem / t);
375 printf(" %s\n", cip->ci_comm);