summaryrefslogtreecommitdiff
path: root/ddb
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2021-08-21 00:15:00 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2021-08-21 00:22:26 +0200
commitec06b6d64b99bf39dd7728787efc352db3c7cabc (patch)
treed15fef7a6a49f51e39eae6c6d3a555c461833fc5 /ddb
parent4a704a0ad95973249544f3f95e30e328e701a871 (diff)
db: Add show vmstat command
with an output similar to the userland vmstat command * vm/vm_page.c (db_show_vmstat): New function. * vm/vm_page.h (db_show_vmstat): New prototype. * ddb/db_command.c (db_show_cmds): Add vmstat command.
Diffstat (limited to 'ddb')
-rw-r--r--ddb/db_command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ddb/db_command.c b/ddb/db_command.c
index c9538c6a..1d4052cd 100644
--- a/ddb/db_command.c
+++ b/ddb/db_command.c
@@ -62,6 +62,7 @@
#include <ipc/ipc_port.h> /* 4proto */
#include <vm/vm_print.h>
+#include <vm/vm_page.h>
#include <ipc/ipc_print.h>
#include <ipc/mach_port.h>
#include <kern/lock.h>
@@ -330,6 +331,7 @@ struct db_command db_show_cmds[] = {
{ "msg", ipc_msg_print, 0, 0 },
{ "ipc_port", db_show_port_id, 0, 0 },
{ "slabinfo", db_show_slab_info, 0, 0 },
+ { "vmstat", db_show_vmstat, 0, 0 },
{ (char *)0, }
};