From owner-cvs-all@FreeBSD.ORG Mon Sep 15 22:45:38 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C3611065813; Mon, 15 Sep 2008 22:45:38 +0000 (UTC) (envelope-from sam@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id EBB508FC08; Mon, 15 Sep 2008 22:45:37 +0000 (UTC) (envelope-from sam@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id m8FMjb2S031368; Mon, 15 Sep 2008 22:45:37 GMT (envelope-from sam@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id m8FMjba2031362; Mon, 15 Sep 2008 22:45:37 GMT (envelope-from sam@repoman.freebsd.org) Message-Id: <200809152245.m8FMjba2031362@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to sam@repoman.freebsd.org using -f From: Sam Leffler Date: Mon, 15 Sep 2008 22:45:14 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/ddb db_command.c ddb.h src/sys/dev/aic7xxx aic79xx_osm.c src/sys/gnu/fs/xfs/FreeBSD/support kdb.c src/sys/kern subr_pcpu.c subr_rman.c subr_sleepqueue.c subr_turnstile.c subr_witness.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Sep 2008 22:45:38 -0000 sam 2008-09-15 22:45:14 UTC FreeBSD src repository Modified files: sys/ddb db_command.c ddb.h sys/dev/aic7xxx aic79xx_osm.c sys/gnu/fs/xfs/FreeBSD/support kdb.c sys/kern subr_pcpu.c subr_rman.c subr_sleepqueue.c subr_turnstile.c subr_witness.c Log: SVN rev 183054 on 2008-09-15 22:45:14Z by sam 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 (original version) Reviewed by: jhb MFC after: 1 month Revision Changes Path 1.79 +86 -53 src/sys/ddb/db_command.c 1.48 +89 -45 src/sys/ddb/ddb.h 1.33 +1 -1 src/sys/dev/aic7xxx/aic79xx_osm.c 1.4 +1 -1 src/sys/gnu/fs/xfs/FreeBSD/support/kdb.c 1.11 +2 -1 src/sys/kern/subr_pcpu.c 1.59 +2 -1 src/sys/kern/subr_rman.c 1.58 +1 -1 src/sys/kern/subr_sleepqueue.c 1.175 +2 -1 src/sys/kern/subr_turnstile.c 1.256 +2 -1 src/sys/kern/subr_witness.c