summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_turnstile.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2008-09-15 22:45:14 +0000
committersam <sam@FreeBSD.org>2008-09-15 22:45:14 +0000
commit05a7094fc1d2a54b7d63fa43d1371840293d2e39 (patch)
tree6a6cd52918de6f264f6071e5f55fc410c7f1633d /sys/kern/subr_turnstile.c
parentc0edaf988ab997509a5c7a738c5fb5c5305cc014 (diff)
downloadFreeBSD-src-05a7094fc1d2a54b7d63fa43d1371840293d2e39.zip
FreeBSD-src-05a7094fc1d2a54b7d63fa43d1371840293d2e39.tar.gz
Make ddb command registration dynamic so modules can extend
the command set (only so long as the module is present): o add db_command_register and db_command_unregister to add and remove commands, respectively o replace linker sets with SYSINIT's (and SYSUINIT's) that register commands o expose 3 list heads: db_cmd_table, db_show_table, and db_show_all_table for registering top-level commands, show operands, and show all operands, respectively While here also: o sort command lists o add DB_ALIAS, DB_SHOW_ALIAS, and DB_SHOW_ALL_ALIAS to add aliases for existing commands o add "show all trace" as an alias for "show alltrace" o add "show all locks" as an alias for "show alllocks" Submitted by: Guillaume Ballet <gballet@gmail.com> (original version) Reviewed by: jhb MFC after: 1 month
Diffstat (limited to 'sys/kern/subr_turnstile.c')
-rw-r--r--sys/kern/subr_turnstile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/subr_turnstile.c b/sys/kern/subr_turnstile.c
index 6d96aa3..31c8cfc 100644
--- a/sys/kern/subr_turnstile.c
+++ b/sys/kern/subr_turnstile.c
@@ -1150,7 +1150,7 @@ DB_SHOW_COMMAND(lockchain, db_show_lockchain)
print_lockchain(td, "");
}
-DB_SHOW_COMMAND(allchains, db_show_allchains)
+DB_SHOW_ALL_COMMAND(chains, db_show_allchains)
{
struct thread *td;
struct proc *p;
@@ -1168,6 +1168,7 @@ DB_SHOW_COMMAND(allchains, db_show_allchains)
}
}
}
+DB_SHOW_ALIAS(allchains, db_show_allchains)
/*
* Show all the threads a particular thread is waiting on based on
OpenPOWER on IntegriCloud