Lines Matching refs:stats
81 struct stats { struct
117 static struct stats * stats; variable
151 stats = malloc((max_size+1) * sizeof (struct stats)); in meminit()
152 if (freelists == NULL || stats == NULL) { in meminit()
158 memset(stats, 0, (max_size + 1) * sizeof (struct stats)); in meminit()
208 stats[max_size].gets++; in __memget_record()
209 stats[max_size].totalgets++; in __memget_record()
285 stats[new_size].blocks++; in __memget_record()
286 stats[new_size].freefrags += frags; in __memget_record()
342 stats[size].gets++; in __memget_record()
343 stats[size].totalgets++; in __memget_record()
344 stats[new_size].freefrags--; in __memget_record()
427 INSIST(stats[max_size].gets != 0U); in __memput_record()
428 stats[max_size].gets--; in __memput_record()
465 INSIST(stats[size].gets != 0U); in __memput_record()
466 stats[size].gets--; in __memput_record()
467 stats[new_size].freefrags++; in __memput_record()
504 const struct stats *s = &stats[i]; in memstats()
537 if (stats == NULL) in memactive()
540 if (stats[i].gets != 0U) in memactive()