DTrace SDT probes in kernel module — how to?

Mark Johnston markj at freebsd.org
Thu Jun 6 17:49:36 UTC 2019


On Thu, Jun 06, 2019 at 08:43:12PM +0300, Lev Serebryakov wrote:
> Hello Freebsd-hackers,
> 
>    What should I do to add SDT probes into kernel module. I've tried to add simple
> 
> DTRACE_PROBE1(module__name, type, value);
> 
>   to source code. No errors, no probes after module load. I've added WITH_CTF=1 to make
>  command line. Warnings from ctfmerge, no probes after module load.
> 
>   What is proper way to add SDT probes to module and how should I build it?

Are you missing a #include "opt_kdtrace.h"?


More information about the freebsd-hackers mailing list