Lines Matching defs:counts
60 uint64_t counts[SYS_NSYSENT];
69 static enum sort_order { UNSORTED, NAMES, COUNTS } sort_order = NAMES;
117 if (sysctlnametomib("kern.syscalls.counts", counts_mib,
206 for (i = 0; i < (int)__arraycount(s.counts); i++) {
210 v = s.counts[i] - s1.counts[i];
216 v = s.counts[i] - s1.counts[i];
238 if (sort_order == COUNTS) {
249 mvprintw(l, c, FMT, "STATS", "counts");
256 for (ii = 0; ii < (int)__arraycount(s.counts); ii++) {
281 memcpy(s1.counts, s.counts, sizeof s1.counts);
344 sort_order = COUNTS;
380 if (memcmp(args, "counts", len) == 0)
395 error("Usage: show [counts|times|ratio]");
407 size = sizeof stats->counts;
409 if (sysctl(counts_mib, counts_mib_len, &stats->counts,
411 error("can't get syscall counts: %s\n",
413 memset(&stats->counts, 0, sizeof stats->counts);