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. --- vm/vm_page.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vm/vm_page.h') diff --git a/vm/vm_page.h b/vm/vm_page.h index 2a0ad2c2..d9af188c 100644 --- a/vm/vm_page.h +++ b/vm/vm_page.h @@ -532,4 +532,9 @@ boolean_t vm_page_evict(boolean_t *should_wait); */ void vm_page_refill_inactive(void); +/* + * Print vmstat information + */ +void db_show_vmstat(void); + #endif /* _VM_VM_PAGE_H_ */ -- cgit v1.2.3