diff options
author | Ian Moffett <ian@osmora.org> | 2024-05-23 01:55:41 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-05-23 03:18:41 -0400 |
commit | 05eb9f648569d708e167272e04437466a2f0b594 (patch) | |
tree | 7649e305ff71dce593b7426fee0b676994aa080a /sys/vm/vm_stat.c | |
parent | e0b34937b1bd674c05d609331501f81740fbb87f (diff) |
kernel: vm: Keep track of vmobj count
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/vm/vm_stat.c')
-rw-r--r-- | sys/vm/vm_stat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/vm_stat.c b/sys/vm/vm_stat.c index 99ee9a9..6374699 100644 --- a/sys/vm/vm_stat.c +++ b/sys/vm/vm_stat.c @@ -29,6 +29,7 @@ #include <vm/physseg.h> #include <vm/vm.h> +#include <vm/obj.h> struct vm_memstat vm_memstat(void) @@ -36,5 +37,6 @@ vm_memstat(void) struct vm_memstat stat; stat.pmem_stat = vm_phys_memstat(); + stat.vmobj_cnt = vm_obj_count(); return stat; } |