Dynamic ddb commands
John Baldwin
jhb at freebsd.org
Mon Feb 2 06:56:35 PST 2009
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
More information about the freebsd-hackers
mailing list