On Sat, Aug 04, 2007 at 12:48:19AM -0700, liujun wrote:> I want to watch my kernel module''s status and collect the
informations of it.
> Can Dtrace allow to make own kernel provider?
> For userland''s own provider, Dtrace need pid as
Param.What''s for Kernel mode?
It''s easy to examine the behavior of kernel modules. Using the fbt
provider
you can see any function entry or return. If you want to add your own probes,
you can use SDT, but that isn''t usually necessary unless
you''re exposing
some higher level abstractions.
Take a look in the Solaris Dynamic Tracing Guide for the chapters on fbt
and sdt.
Adam
--
Adam Leventhal, Solaris Kernel Development http://blogs.sun.com/ahl