From ec06b6d64b99bf39dd7728787efc352db3c7cabc Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 21 Aug 2021 00:15:00 +0200 Subject: 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. --- ddb/db_command.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ddb/db_command.c') 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 /* 4proto */ #include +#include #include #include #include @@ -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, } }; -- cgit v1.2.3