1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-04 09:09:56 +00:00

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:
Robert Watson 2005-07-15 23:39:21 +00:00
parent 2019094a35
commit d144359bde
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=148071

View File

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