diff options
author | rwatson <rwatson@FreeBSD.org> | 2005-08-06 13:54:03 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2005-08-06 13:54:03 +0000 |
commit | d65e7588d3510a9ad0d93d4b0fa93b5e4c434dd5 (patch) | |
tree | 885f8f5cd1f7551ea42d39da8b233242b20cdc4c /lib/libmemstat/memstat_all.c | |
parent | f2028e439d4f832b126345ea8bf8c110d43cd946 (diff) | |
download | FreeBSD-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.c | 2 |
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); |