aboutsummaryrefslogtreecommitdiff
path: root/lib/libmemstat/memstat.h
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2005-08-06 13:54:03 +0000
committerRobert Watson <rwatson@FreeBSD.org>2005-08-06 13:54:03 +0000
commitba23fa9bd8ca73840dab82f6c9225a9b0bed3598 (patch)
tree885f8f5cd1f7551ea42d39da8b233242b20cdc4c /lib/libmemstat/memstat.h
parent587c3309fbffdf55486f46d5119703c05e091df5 (diff)
downloadsrc-ba23fa9bd8ca73840dab82f6c9225a9b0bed3598.tar.gz
src-ba23fa9bd8ca73840dab82f6c9225a9b0bed3598.zip
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).
Notes
Notes: svn path=/head/; revision=148789
Diffstat (limited to 'lib/libmemstat/memstat.h')
-rw-r--r--lib/libmemstat/memstat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libmemstat/memstat.h b/lib/libmemstat/memstat.h
index 561f6eedbdde..904e77ef88af 100644
--- a/lib/libmemstat/memstat.h
+++ b/lib/libmemstat/memstat.h
@@ -119,6 +119,7 @@ int memstat_sysctl_uma(struct memory_type_list *list, int flags);
* Functions to retrieve data from a kernel core (or /dev/kmem).
*/
int memstat_kvm_all(struct memory_type_list *list, void *kvm_handle);
+int memstat_kvm_malloc(struct memory_type_list *list, void *kvm_handle);
int memstat_kvm_uma(struct memory_type_list *list, void *kvm_handle);
/*