From owner-freebsd-hackers@FreeBSD.ORG Mon Feb 2 14:56:35 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87D041065742 for ; Mon, 2 Feb 2009 14:56:35 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 5953B8FC12 for ; Mon, 2 Feb 2009 14:56:35 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (pool-98-109-39-197.nwrknj.fios.verizon.net [98.109.39.197]) by cyrus.watson.org (Postfix) with ESMTPSA id 048E046B39; Mon, 2 Feb 2009 09:56:34 -0500 (EST) Received: from localhost (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.14.3/8.14.3) with ESMTP id n12EuHRt040398; Mon, 2 Feb 2009 09:56:28 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Mon, 2 Feb 2009 08:46:32 -0500 User-Agent: KMail/1.9.7 References: <1233337318.13748.101.camel@amaretto> <1233339897.13748.106.camel@amaretto> In-Reply-To: <1233339897.13748.106.camel@amaretto> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902020846.33072.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Mon, 02 Feb 2009 09:56:29 -0500 (EST) X-Virus-Scanned: ClamAV 0.94.2/8940/Mon Feb 2 07:31:54 2009 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Matthew Fleming Subject: Re: Dynamic ddb commands X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Feb 2009 14:56:35 -0000 On Friday 30 January 2009 1:24:57 pm Matthew Fleming wrote: > Just an addenda: > > > I see that BSD 7.1 has dynamic commands using sysinits and sysuninit's to call a new > > db_[un]register_cmd. > > I was looking at HEAD, not RELENG_7_1. The remainder of my questions as > to why this mechanism are the same, though. In general it is far easier to just add sysinit's than to hack directly on the kernel linker. There are very few ddb commands, so one extra pointer or two per command is not a lot of space. -- John Baldwin