From 9450d093eacc6a58d124997fb60de631275447b1 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 27 May 2015 18:11:05 +0000 Subject: 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) --- libutil/libutil.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libutil') 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 * -- cgit v1.2.3-56-ge451