no KLD symbols in dtrace?

Alexander Kabaev kabaev at gmail.com
Fri Apr 22 15:25:04 UTC 2011


On Fri, 22 Apr 2011 07:27:30 -0700
Chuck Tuffli <ctuffli at gmail.com> wrote:

> On Thu, Apr 21, 2011 at 7:16 PM, Alexander Kabaev <kabaev at gmail.com>
> wrote: ...
> > There is an omission on our .mk files which prevents CTF info to be
> > generated for kld modules, regardless of WITH_CTF flag. I had
> > discovered this at work just recently and have been using the
> > following patch for the time being:
> >
> > http://people.freebsd.org/~kan/kmod-dtrace.diff
> >
> > If you can confirm it works for you too, I'll get it committed.
> 
> I patched /usr/src/sys/conf/kmod.mk and rebuilt my kld. It looks like
> ctfmerge is called at the end of the build, but dtrace still shows
> just the address. Maybe I missed a step?
> 
> ---chuck

Do ctfdump -tf on your kld and verify that what it outputs actually
makes sense. Do kldload and see if fbt provider knows about your module
and functions. There is nothing else special that I can think off.

Maybe make sure that you compile your sources with -g in the first
place? DWARF debug info is what CTF generation utils use to figure out
types and function prototypes.

-- 
Alexander Kabaev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20110422/dffbe034/signature.pgp


More information about the freebsd-hackers mailing list