Date: Wed, 20 Nov 2002 12:42:48 -0800 (PST) From: Logan Gabriel <gersh@tabby.sonn.com> To: current@FreeBSD.org Subject: /dev/ksyms device driver. Message-ID: <Pine.BSF.4.21.0211201238480.50279-101000@tabby.sonn.com>
index | next in thread | raw e-mail
[-- Attachment #1 --]
I have designed a ksyms driver for -current, it is attached to this mail.
I would like some feedback on the specific design of this driver and also
if other people in the FreeBSD camp would find it useful, several other
systems implement some like functionality and I see no reason why we
cannot.
One of the design goals was to be able to tell what symbols were provided
by what kernel modules. This was fairly easy to do by making each kernel
module have its own ELF symbol table, therein lies is the problem. Some
programs (readelf) dont mind multiple symbol tables, others (nm) do.
One solution I have come up with but have not designed follows:
Create a specific /dev/ksyms/xxx entry for each kernel module that
is loaded in addition to an 'all' entry. The 'all' entry would have some
different logic so that it only creates one symbol table based upon the
symbols from all modules. The entries in the directory would be updated
whenever modules were loaded or unloaded.
This solution seems to be the most robust one to me but it also means that
the driver would have to rely on devfs to function correctly.
Thoughts?
[-- Attachment #2 --]
B= ks6nڿδv:5Mf[յ-WMUXl$9?[ru{8E H.,SAUwGG_{{;88<:~ET y{^Rmod.BҲ"wkȥ9"躄!ħ݁qvwfV\dPH}2
{2ȣ.糿:D*Kve"
>%_:aHmr{
paCzXvpRTpޒ_cS- <lrBdE{@P$m兎Ep=$eL-tGò 0XX>,2d{zIW-OfH}tT`H8MЯEU"Пʕܗ@Q82U|+F~I /ļl|CU4d(c]4pڗǗ*dd(dtE@vH<(d$<Po@>Fv( .CQ%:Q4F
PGRC@`L+im e¿*%P<2R
/RO夽
DH=;G V"7BDV Z_Z4ByA\e}KRQ^=I;!CEc
j Lt*- C|LoXTu:eeFB0tٚAGztQH0JDԅH- \Azfd,]Kiܓ kY`1YCsolh+w3+0+49)i ~6;+]C\&oM\vgaVQE]/ ֎WƆ}iG!+/Rw~tX74(
,C^b܄cV4ȚA/fV6K
hF
N ǂ;,XӶ
MWH{HJa.i'<ǎf1eڅFZє[B]h#9%vkM*2-d^hWQ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