DTrace boken in FreeBSD 10.3 Stable

Andreas Longwitz longwitz at incore.de
Wed May 10 16:14:25 UTC 2017


Thanks for answer,

> These error messages suggest that the kernel was built without CTF
> data.  Did you build and install the kernel yourself?  If so, I'd
> recommend rerunning make buildkernel with "WITH_CTF=1" added to the
> commandline.

I did a complete clean (empty /usr/obj) buildworld and buildkernel. I
think WITH_CTF=1 is default in 10.3, the log of my buildkernel gives
   echo $(grep WITH_CTF=\"1\"  buildkernel.log | wc -l ) --> 8.

I agree, the problem is correlated with CTF, but only for some functions
of the MODULES freebsd and freebsd32.

A snippet from the output of "dtrace -l" looks like this:

39180    syscall         freebsd32             getdtablesize return
39181    syscall         freebsd32                       dup2 entry
39182    syscall         freebsd32                      dup2 return
39183    syscall         freebsd32                        #91 entry
39184    syscall         freebsd32                       #91 return
39185    syscall         freebsd32            freebsd32_fcntl entry
39186    syscall         freebsd32           freebsd32_fcntl return
39187    syscall         freebsd32           freebsd32_select entry
39188    syscall         freebsd32          freebsd32_select return
39189    syscall         freebsd32                        #94 entry
39190    syscall         freebsd32                       #94 return
39191    syscall         freebsd32                      fsync entry
39192    syscall         freebsd32                     fsync return

The function names are missing only for MODULE freebsd or freebsd32:

  dtrace -l | grep '#' | wc -l                   -- > 350
  dtrace -l | grep '#' | grep freebsd32 | wc -l  -->  196
  dtrace -l | grep '#' | grep 'freebsd ' | wc -l -->  154

The kernel message 'fbt_getargdesc' appears on use of 'dtrace -vl'.


-- 
Dr. Andreas Longwitz



More information about the freebsd-dtrace mailing list