Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Feb 2009 08:46:32 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-hackers@freebsd.org
Cc:        Matthew Fleming <matthew.fleming@isilon.com>
Subject:   Re: Dynamic ddb commands
Message-ID:  <200902020846.33072.jhb@freebsd.org>
In-Reply-To: <1233339897.13748.106.camel@amaretto>
References:  <1233337318.13748.101.camel@amaretto> <1233339897.13748.106.camel@amaretto>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902020846.33072.jhb>