Teach libmemstat(3) about UMA(9) failure statistics.

Requested by:	victor cruceru <victor dot cruceru at gmail dot com>
MFC after:	1 week
This commit is contained in:
rwatson 2005-07-15 23:39:21 +00:00
parent 87bbce9e08
commit 425ca78cc4

View File

@ -201,6 +201,7 @@ memstat_sysctl_uma(struct memory_type_list *list, int flags)
mtp->mt_numallocs = uthp->uth_allocs;
mtp->mt_numfrees = uthp->uth_frees;
mtp->mt_failures = uthp->uth_fails;
for (j = 0; j < maxcpus; j++) {
upsp = (struct uma_percpu_stat *)p;