summaryrefslogtreecommitdiffstats
path: root/lib/libmemstat/memstat_all.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2005-08-06 13:54:03 +0000
committerrwatson <rwatson@FreeBSD.org>2005-08-06 13:54:03 +0000
commitd65e7588d3510a9ad0d93d4b0fa93b5e4c434dd5 (patch)
tree885f8f5cd1f7551ea42d39da8b233242b20cdc4c /lib/libmemstat/memstat_all.c
parentf2028e439d4f832b126345ea8bf8c110d43cd946 (diff)
downloadFreeBSD-src-d65e7588d3510a9ad0d93d4b0fa93b5e4c434dd5.zip
FreeBSD-src-d65e7588d3510a9ad0d93d4b0fa93b5e4c434dd5.tar.gz
Teach libmemstat(3) how to extract malloc(9) statistics using kvm(3),
so that libmemstat can be used to view full memory statistics from kernel core dumps and /dev/mem. This is provided via a new query function, memstat_kvm_malloc(), which is also automatically invoked by memstat_kvm_all(). A kvm handle must be passed in. This will allow malloc(9)-specific code to be removed from vmstat(8).
Diffstat (limited to 'lib/libmemstat/memstat_all.c')
-rw-r--r--lib/libmemstat/memstat_all.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/libmemstat/memstat_all.c b/lib/libmemstat/memstat_all.c
index b363ab9..bd74b8a 100644
--- a/lib/libmemstat/memstat_all.c
+++ b/lib/libmemstat/memstat_all.c
@@ -50,10 +50,8 @@ int
memstat_kvm_all(struct memory_type_list *mtlp, void *kvm_handle)
{
-#if NOTYET
if (memstat_kvm_malloc(mtlp, kvm_handle) < 0)
return (-1);
-#endif
if (memstat_kvm_uma(mtlp, kvm_handle) < 0)
return (-1);
return (0);
OpenPOWER on IntegriCloud