diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2005-08-06 13:54:03 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2005-08-06 13:54:03 +0000 |
commit | ba23fa9bd8ca73840dab82f6c9225a9b0bed3598 (patch) | |
tree | 885f8f5cd1f7551ea42d39da8b233242b20cdc4c /lib/libmemstat/memstat.h | |
parent | 587c3309fbffdf55486f46d5119703c05e091df5 (diff) |
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.h | 1 |
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); /* |