no KLD symbols in dtrace?

Chuck Tuffli ctuffli at gmail.com
Fri Apr 22 15:56:07 UTC 2011


On Fri, Apr 22, 2011 at 8:44 AM, Andriy Gapon <avg at freebsd.org> wrote:
> on 22/04/2011 18:24 Alexander Kabaev said the following:
>> 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.

The ctfdump looks correct and
    dtrace -ln "fbt::ocs_*:"
shows the kld's function names

>> 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.

OK

> Also, dtrace process needs to access the module file for address-to-name translation.

Hmm ... I'm building this module out of tree. Where does dtrace look
for modules?

---chuck


More information about the freebsd-hackers mailing list