diff options
author | John Baldwin <jhb@FreeBSD.org> | 2015-05-27 18:11:05 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2015-05-27 18:11:05 +0000 |
commit | 9450d093eacc6a58d124997fb60de631275447b1 (patch) | |
tree | 6c44962b66297a39a82c519c68b06d6281586ced /libutil | |
parent | 09c3fc64aeceba152705f8feeb0d4df0413ff5af (diff) | |
download | pw-darwin-9450d093eacc6a58d124997fb60de631275447b1.tar.gz pw-darwin-9450d093eacc6a58d124997fb60de631275447b1.tar.zst pw-darwin-9450d093eacc6a58d124997fb60de631275447b1.zip |
Export a list of VM objects in the system via a sysctl. The list can be
examined via 'vmstat -o'. It can be used to determine which files are
using physical pages of memory and how much each is using.
Differential Revision: https://reviews.freebsd.org/D2277
Reviewed by: alc, kib
MFC after: 2 weeks
Sponsored by: Norse Corp, Inc. (forward porting to HEAD/10)
Diffstat (limited to 'libutil')
-rw-r--r-- | libutil/libutil.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libutil/libutil.h b/libutil/libutil.h index b8b9836..b20ffa2 100644 --- a/libutil/libutil.h +++ b/libutil/libutil.h @@ -102,6 +102,8 @@ struct kinfo_file * kinfo_getfile(pid_t _pid, int *_cntp); struct kinfo_vmentry * kinfo_getvmmap(pid_t _pid, int *_cntp); +struct kinfo_vmobject * + kinfo_getvmobject(int *_cntp); struct kinfo_proc * kinfo_getallproc(int *_cntp); struct kinfo_proc * |