vm, kernel, top: report memory usage of vm, kernel

This commit is contained in:
Ben Gras
2012-09-18 22:19:22 +02:00
parent aa82e375c6
commit fe6e291f59
9 changed files with 69 additions and 15 deletions

View File

@@ -40,6 +40,8 @@ typedef struct kinfo {
int nr_tasks; /* number of kernel tasks */
char release[6]; /* kernel release number */
char version[6]; /* kernel version number */
int vm_allocated_bytes; /* allocated by kernel to load vm */
int kernel_allocated_bytes; /* used by kernel */
} kinfo_t;
#endif