diff options
Diffstat (limited to 'sys/ddb')
-rw-r--r-- | sys/ddb/db_command.c | 12 | ||||
-rw-r--r-- | sys/ddb/db_command.h | 3 |
2 files changed, 13 insertions, 2 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c index c6ca04ff0a9..8e4b9239b38 100644 --- a/sys/ddb/db_command.c +++ b/sys/ddb/db_command.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_command.c,v 1.54 2009/07/15 19:05:14 miod Exp $ */ +/* $OpenBSD: db_command.c,v 1.55 2009/08/08 15:04:43 beck Exp $ */ /* $NetBSD: db_command.c,v 1.20 1996/03/30 22:30:05 christos Exp $ */ /* @@ -439,6 +439,15 @@ db_uvmexp_print_cmd(db_expr_t addr, int have_addr, db_expr_t count, char *modif) uvmexp_print(db_printf); } +void bcstats_print(int (*)(const char *, ...)); + +/*ARGSUSED*/ +void +db_bcstats_print_cmd(db_expr_t addr, int have_addr, db_expr_t count, char *modif) +{ + bcstats_print(db_printf); +} + /* * 'show' commands */ @@ -456,6 +465,7 @@ struct db_command db_show_all_cmds[] = { struct db_command db_show_cmds[] = { { "all", NULL, 0, db_show_all_cmds }, + { "bcstats", db_bcstats_print_cmd, 0, NULL }, { "breaks", db_listbreak_cmd, 0, NULL }, { "buf", db_buf_print_cmd, 0, NULL }, { "extents", db_extent_print_cmd, 0, NULL }, diff --git a/sys/ddb/db_command.h b/sys/ddb/db_command.h index 867a05d703c..a2d7bde4c92 100644 --- a/sys/ddb/db_command.h +++ b/sys/ddb/db_command.h @@ -1,4 +1,4 @@ -/* $OpenBSD: db_command.h,v 1.24 2009/06/17 01:30:30 thib Exp $ */ +/* $OpenBSD: db_command.h,v 1.25 2009/08/08 15:04:43 beck Exp $ */ /* $NetBSD: db_command.h,v 1.8 1996/02/05 01:56:55 christos Exp $ */ /* @@ -65,6 +65,7 @@ void db_boot_poweroff_cmd(db_expr_t, int, db_expr_t, char *); void db_stack_trace_cmd(db_expr_t, int, db_expr_t, char *); void db_dmesg_cmd(db_expr_t, int, db_expr_t, char *); void db_show_panic_cmd(db_expr_t, int, db_expr_t, char *); +void db_bcstats_print_cmd(db_expr_t, int, db_expr_t, char *); extern db_addr_t db_dot, db_last_addr, db_prev, db_next; |