Re: DTrace SDT probes in kernel module — how to?
Cy Schubert
Cy.Schubert at cschubert.com
Thu Jun 6 18:40:23 UTC 2019
On June 6, 2019 10:43:12 AM PDT, Lev Serebryakov <lev at 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?
You'll need to include sdt.h. You can see what is done and what I've added to ipfilter, which manages to indirectly include sdt.h through other headers.
Juxtaposed to this discussion, I'm hoping to implement USDT into mountd and a few other places before next BSDCan. amd64 works. i386 is borked.
--
Pardon the typos and autocorrect, small keyboard in use.
Cheers,
Cy Schubert <Cy.Schubert at cschubert.com>
FreeBSD UNIX: <cy at FreeBSD.org> Web: http://www.FreeBSD.org
The need of the many outweighs the greed of the few.
More information about the freebsd-hackers
mailing list