dtrace failed to resolve struct thread

vasanth rao naik sabavat vasanth.raonaik at gmail.com
Thu Oct 18 20:24:35 UTC 2012


Thanks Ryan,

I checked out latest source code and compiled the kernel which has the
option you have mentioned.

I can now run dtrace -s schedgraph.d without any issues.

Thanks,
Vasanth

On Thu, Oct 18, 2012 at 1:49 PM, Ryan Stone <rysto32 at gmail.com> wrote:

> On Thu, Oct 18, 2012 at 12:32 PM, vasanth rao naik sabavat
> <vasanth.raonaik at gmail.com> wrote:
> > Hi,
> >
> > I have an issue with latest FreeBSD when enabling dtrace
> >
> > dtrace -s schedgraph.d
> > ./hotkernel
> > both return the following error.
> >
> > : "/usr/lib/dtrace/psinfo.d", line 88: failed to resolve type
> kernel`struct
> > thread * for identifier curthread: Unknown type name
> >
> > 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Wed Oct 17 12:04:00 PDT 2012
> >
> > I see that there was a problem report on FreeBSD which got closed as
> fixed.
> > What is the fix for this issue?
> >
> > http://www.freebsd.org/cgi/query-pr.cgi?pr=130998
>
> Did you buildkernel with WITH_CTF=1?  You can check this by running
> ctfdump on /boot/kernel/kernel and seeing if that produces output.  It
> will print the following error if you forgot to build with WITH_CTF=1:
>
> /boot/kernel/kernel does not contain .SUNW_ctf data
>



-- 
Thanks,
Vasanth


More information about the freebsd-hackers mailing list