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

> On Thu, Apr 21, 2011 at 7:16 PM, Alexander Kabaev <kab...@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

Attachment: signature.asc
Description: PGP signature

Reply via email to