Date: Thu, 6 Jun 2019 11:45:38 -0600 From: Alan Somers <asomers@freebsd.org> To: Lev Serebryakov <lev@freebsd.org> Cc: "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org> Subject: =?UTF-8?Q?Re=3A_DTrace_SDT_probes_in_kernel_module_=E2=80=94_how_to=3F?= Message-ID: <CAOtMX2gqN5EfFuNd12=VwFCe9PWksh32JpReXPi5%2Br5u976CVQ@mail.gmail.com> 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 6, 2019 at 11:43 AM Lev Serebryakov <lev@freebsd.org> 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? > > -- > Best regards, > Lev mailto:lev@FreeBSD.org How are you building the module? Typing "make" in sys/modules/whatever doesn't build the dtrace probes. Presumably that could be fixed, but I've never tried. However, if you do a full "make buildkernel" then you will get dtrace probes. -Alan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2gqN5EfFuNd12=VwFCe9PWksh32JpReXPi5%2Br5u976CVQ>