diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2006-05-20 18:29:24 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2006-05-20 18:29:24 +0000 |
commit | 7dfb1e2b5b1a173df0b67a35bd40e3fb643c3e04 (patch) | |
tree | 64cff1066b67dc7eee2ad36116163589ff423d63 /sys/ddb | |
parent | 9cca34c495ae9597c80892ca37b45ae1fa2feb8d (diff) |
add show all pools command listing all pools as vmstat -m does; miod@ ok
Diffstat (limited to 'sys/ddb')
-rw-r--r-- | sys/ddb/db_command.c | 3 | ||||
-rw-r--r-- | sys/ddb/db_interface.h | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c index 16b10cd9a04..d5cd1813af2 100644 --- a/sys/ddb/db_command.c +++ b/sys/ddb/db_command.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_command.c,v 1.41 2006/03/13 06:23:20 jsg Exp $ */ +/* $OpenBSD: db_command.c,v 1.42 2006/05/20 18:29:23 mickey Exp $ */ /* $NetBSD: db_command.c,v 1.20 1996/03/30 22:30:05 christos Exp $ */ /* @@ -378,6 +378,7 @@ db_uvmexp_print_cmd(db_expr_t addr, int have_addr, db_expr_t count, char *modif) struct db_command db_show_all_cmds[] = { { "procs", db_show_all_procs, 0, NULL }, { "callout", db_show_callout, 0, NULL }, + { "pools", db_show_all_pools, 0, NULL }, { NULL, NULL, 0, NULL } }; diff --git a/sys/ddb/db_interface.h b/sys/ddb/db_interface.h index 5460b2cc12c..b0e49d2e6ab 100644 --- a/sys/ddb/db_interface.h +++ b/sys/ddb/db_interface.h @@ -1,4 +1,4 @@ -/* $OpenBSD: db_interface.h,v 1.6 2006/05/16 03:18:29 mickey Exp $ */ +/* $OpenBSD: db_interface.h,v 1.7 2006/05/20 18:29:23 mickey Exp $ */ /* $NetBSD: db_interface.h,v 1.1 1996/02/05 01:57:03 christos Exp $ */ /* @@ -45,6 +45,9 @@ void db_show_all_procs(db_expr_t, int, db_expr_t, char *); /* kern/kern_timeout.c */ void db_show_callout(db_expr_t, int, db_expr_t, char *); +/* kern/subr_pool.c */ +void db_show_all_pools(db_expr_t, int, db_expr_t, char *); + /* arch/<arch>/<arch>/db_interface.c */ void db_machine_init(void); |