From 050b8bd1a6760e3984b56e6e86f69833e278a2f5 Mon Sep 17 00:00:00 2001 From: jhb Date: Thu, 1 Oct 2015 17:09:20 +0000 Subject: MFC 283624,283630: 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. --- lib/libutil/libutil.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/libutil/libutil.h') diff --git a/lib/libutil/libutil.h b/lib/libutil/libutil.h index b8b9836..b20ffa2 100644 --- a/lib/libutil/libutil.h +++ b/lib/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.1