diff options
| author | chs <chs@NetBSD.org> | 2000-11-24 07:25:50 +0000 |
|---|---|---|
| committer | chs <chs@NetBSD.org> | 2000-11-24 07:25:50 +0000 |
| commit | 55a751c9d5e4e0cc2dd885afd0e04ba4b875b23d (patch) | |
| tree | 4dd981478f1da88c29c17ecdd599cc83ca689c37 /sys/ddb/db_command.c | |
| parent | 0a54af033a7d396d53caa69096b626a7af24112b (diff) | |
add ddb commands "show uvmexp" and "show ncache".
the former used to be "call uvm_dump", the latter is new.
Diffstat (limited to 'sys/ddb/db_command.c')
| -rw-r--r-- | sys/ddb/db_command.c | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c index 171adb1fa17..60388a3b5a7 100644 --- a/sys/ddb/db_command.c +++ b/sys/ddb/db_command.c @@ -1,4 +1,4 @@ -/* $NetBSD: db_command.c,v 1.50 2000/07/08 17:10:22 sommerfeld Exp $ */ +/* $NetBSD: db_command.c,v 1.51 2000/11/24 07:25:51 chs Exp $ */ /* * Mach Operating System @@ -38,6 +38,7 @@ #include <sys/proc.h> #include <sys/vnode.h> #include <sys/pool.h> +#include <sys/namei.h> #include <machine/db_machdep.h> /* type definitions */ @@ -427,8 +428,29 @@ db_pool_print_cmd(addr, have_addr, count, modif) db_expr_t count; char * modif; { + pool_printit((struct pool *)addr, modif, db_printf); +} - pool_printit((struct pool *) addr, modif, db_printf); +/*ARGSUSED*/ +void +db_namecache_print_cmd(addr, have_addr, count, modif) + db_expr_t addr; + int have_addr; + db_expr_t count; + char * modif; +{ + namecache_print((struct vnode *)addr, db_printf); +} + +/*ARGSUSED*/ +void +db_uvmexp_print_cmd(addr, have_addr, count, modif) + db_expr_t addr; + int have_addr; + db_expr_t count; + char * modif; +{ + uvmexp_print(db_printf); } /* @@ -453,6 +475,8 @@ struct db_command db_show_cmds[] = { { "buf", db_buf_print_cmd, 0, NULL }, { "vnode", db_vnode_print_cmd, 0, NULL }, { "pool", db_pool_print_cmd, 0, NULL }, + { "ncache", db_namecache_print_cmd, 0, NULL }, + { "uvmexp", db_uvmexp_print_cmd, 0, NULL }, { "registers", db_show_regs, 0, NULL }, { "watches", db_listwatch_cmd, 0, NULL }, { NULL, NULL, 0, NULL } @@ -462,7 +486,6 @@ struct db_command db_command_table[] = { { "break", db_breakpoint_cmd, 0, NULL }, { "c", db_continue_cmd, 0, NULL }, { "call", db_fncall, CS_OWN, NULL }, - { "callout", db_show_callout, 0, NULL }, { "continue", db_continue_cmd, 0, NULL }, { "d", db_delete_cmd, 0, NULL }, { "delete", db_delete_cmd, 0, NULL }, @@ -681,7 +704,7 @@ db_sifting_cmd(addr, have_addr, count, omodif) } else mode = 0; - if (t==tIDENT) + if (t == tIDENT) db_sifting(db_tok_string, mode); else { db_printf("Bad argument (non-string)\n"); |
