Why my DTrace script does not work after installing a new kernel without reboot
Andreas Longwitz
longwitz at incore.de
Wed Oct 31 18:10:19 UTC 2018
In the meantime I found the answer to my question.
> Does your patch change the layout of the timeout structure? If so, the
> problem is that dtrace(1) is using the CTF from kern.bootfile, but that
> doesn't match the layout of the structures used by the running kernel.
dtrace() gets the CTF of the kernel and kernel modules from the
pathbames returned by kldstat(2). In my case they all start with
'/boot/kernel/' because the kernel was loaded from that place. This can
be veryfied with 'kldstat -v'. The output does not change after buildung
a new kernel and the kernel itself does nit use the variable
kern.bootfile.
--
Andreas Longwitz
More information about the freebsd-dtrace
mailing list