NETSTAT(1): Disable malloc stats

This commit is contained in:
Sebastian Huber 2015-01-29 08:40:56 +01:00
parent cbffc0b0e2
commit 74c5b0ff73

View File

@ -158,6 +158,7 @@ mbpr(void *kvmd, u_long mbaddr)
cluster_sleeps = memstat_get_sleeps(mtp);
cluster_size = memstat_get_size(mtp);
#ifndef __rtems__
mtp = memstat_mtl_find(mtlp, ALLOCATOR_MALLOC, MBUF_TAG_MEM_NAME);
if (mtp == NULL) {
warnx("memstat_mtl_find: malloc type %s not found",
@ -166,6 +167,10 @@ mbpr(void *kvmd, u_long mbaddr)
}
tag_count = memstat_get_count(mtp);
tag_bytes = memstat_get_bytes(mtp);
#else /* __rtems__ */
tag_count = 0;
tag_bytes = 0;
#endif /* __rtems__ */
mtp = memstat_mtl_find(mtlp, ALLOCATOR_UMA, MBUF_JUMBOP_MEM_NAME);
if (mtp == NULL) {