Hi Yu,
When you say you wrote a DTrace provider for the kernel do you mean that
you added some sdt-derived probes or did you actually write a new kernel
driver that uses the DTrace provider interfaces (note that the latter is
not for the faint of heart)?
The parameters to DTRACE_PROBE*() can be found by looking in <sys/sdt.h>
or looking at other examples using those macros.
Adam
On Fri, Sep 23, 2005 at 03:28:17PM -0700, Yu Xiangning
wrote:> Hi all,
>
> I wrote a DTrace privider for kernel, it creats a new probe like this:
> bash-3.00# dtrace -P testmod -l
> ID PROVIDER MODULE FUNCTION NAME
> 6 testmod ip_rput test1
>
> Then I want to put a static probe inside ip_rput(), my question is, what is
> the parameter to DTRACE_PROBE() ?
>
> Thank you!
>
> - yu
> _______________________________________________
> dtrace-discuss mailing list
> dtrace-discuss at opensolaris.org
--
Adam Leventhal, Solaris Kernel Development http://blogs.sun.com/ahl