"unstable" sdt probes

Andriy Gapon avg at FreeBSD.org
Sat Nov 2 10:21:33 UTC 2013


on 02/11/2013 06:12 Mark Johnston said the following:
> Sure, there are multiple probe sites for the sdt:::arc-miss probe, for
> example. For the ip provider, there are multiple probe sites for
> ip:::receive: at least one for IPv4, and at least one for IPv6.

Okay, I think that the following lines in sdt_create_probe should handle this:
        if (dtrace_probe_lookup(prov->id, mod, func, name) != DTRACE_IDNONE)
                return;

It's, of course, a little bit wasteful to have a few duplicate sdt_probe and
sdt_argtype structs, but should not be too terrible.

I wonder if there is some low level trick to collapse this duplicates into a
single object during linking.  Probably not...

-- 
Andriy Gapon


More information about the freebsd-dtrace mailing list