summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_malloc.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2012-07-02 16:14:52 +0000
committerjhb <jhb@FreeBSD.org>2012-07-02 16:14:52 +0000
commitab100847da69f686ec8fd609174a87c5fcd48a7f (patch)
tree7a1283c64a578eb8d564f6de8848e6a66c5891d5 /sys/kern/kern_malloc.c
parent1903f68f13384640bd9d1f121ab7d94f0ef8c527 (diff)
downloadFreeBSD-src-ab100847da69f686ec8fd609174a87c5fcd48a7f.zip
FreeBSD-src-ab100847da69f686ec8fd609174a87c5fcd48a7f.tar.gz
Honor db_pager_quit in 'show uma' and 'show malloc'.
MFC after: 1 month
Diffstat (limited to 'sys/kern/kern_malloc.c')
-rw-r--r--sys/kern/kern_malloc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index c1b6f56..18428c0 100644
--- a/sys/kern/kern_malloc.c
+++ b/sys/kern/kern_malloc.c
@@ -1000,6 +1000,8 @@ DB_SHOW_COMMAND(malloc, db_show_malloc)
db_printf("%18s %12ju %12juK %12ju\n",
mtp->ks_shortdesc, allocs - frees,
(alloced - freed + 1023) / 1024, allocs);
+ if (db_pager_quit)
+ break;
}
}
@@ -1029,6 +1031,8 @@ DB_SHOW_COMMAND(multizone_matches, db_show_multizone_matches)
if (mtip->mti_zone != subzone)
continue;
db_printf("%s\n", mtp->ks_shortdesc);
+ if (db_pager_quit)
+ break;
}
}
#endif /* MALLOC_DEBUG_MAXZONES > 1 */
OpenPOWER on IntegriCloud