[dtrace-discuss] Re: dtrace in my kernel module, what''s the problem?

Matthias Pfützner - Data Center Ambassador - Strategy and Technology
2006-01-12T13:14:09Z

Thanks, Casper,

I might be stubbornly dump, but:

You (Casper.Dik at Sun.COM) write:
>
> >a.) Do I need to LINK (ld) something to the binaries?
>
> No.
>
> >b.) Can I create own new probes? (If so, how?)
>
> Yes, by using DTRACE_PROBEXXX

HOW?

By simply adding a probe (but where do I define that probe?)?

The DTRACE_PROBEX() has a PROBENAME as first argument. I do assume, that
probename must be defined SOMEWHERE? Or am I totally wrong on that?

> >Looking at the nvidia driver, it has something like 40000 probes based
on the
> >FBT provider, but the doc to the FBT provider is even more brief, than
the sdt
> >docs... (will say, the is NO docu on how to register my driver with the
fgt
> >provider...)
>
> The FBT probes are generated automatically for each function entry/exit
point.

So, any kernel driver will get these? Cool!

As you see, I''m still not that knowledgable about the dtrace stuff...
;-(

> Casper