Date: Thu, 6 Jun 2019 13:49:31 -0400 From: Mark Johnston <markj@freebsd.org> To: Lev Serebryakov <lev@freebsd.org> Cc: freebsd-hackers@freebsd.org Subject: Re: DTrace SDT probes in =?utf-8?Q?kernel_?= =?utf-8?Q?module_=E2=80=94?= how to? Message-ID: <20190606174931.GB3015@raichu> In-Reply-To: <234087607.20190606204312@serebryakov.spb.ru> References: <234087607.20190606204312@serebryakov.spb.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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"?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190606174931.GB3015>