HOWTO in wiki: adding custom dtrace probes in the kernel

Marius Nünnerich marius at nuenneri.ch
Fri Nov 28 11:10:37 PST 2008


On Fri, Nov 28, 2008 at 5:21 PM, Alexander Leidinger
<Alexander at leidinger.net> wrote:
> Quoting Ivan Voras <ivoras at freebsd.org> (from Fri, 28 Nov 2008 15:59:23
> +0100):
>
>> Can you document a bit more the construction of the probe:
>>
>>  SDT_PROBE_DEFINE(foobar, source_file1, foo, entry);
>>  SDT_PROBE_ARGTYPE(foobar, source_file1, foo, entry, 0, "int");
>>  SDT_PROBE_ARGTYPE(foobar, source_file1, foo, entry, 1, "const char *");
>>  SDT_PROBE_DEFINE(foobar, source_file1, foo, return);
>>  SDT_PROBE_ARGTYPE(foobar, source_file1, foo, return, 0, "int");
>>
>> What is the meaning of "source_file1" and "foo"?
>
> In case you reloaded the wiki page and it does not contain a reference to
> GEOM, reload it again. I added GEOM as an example how the module name could
> be constructed.

What is the intention of adding function entry and return providers
with SDT? Isn't that what FBT is for?


More information about the freebsd-current mailing list