Hi Mike,
You probably want to set both the ''bufpolicy'' (to
''fill'' or ''ring'') and the
''bufsize'' variables. That may or may not solve your specific
problem, but
without more data it''s hard to say.
Adam
On Mon, Sep 18, 2006 at 12:16:40PM -0700, Michael Bergknoff
wrote:> I have a simple script to watch fmd open and ioctl syscalls. It works
> fine on the running system. When I try to use it with anonymous tracing
> using dtrace -As <script> and then rebooting, dtrace -ae only shows
me a
> very small number of the expected events. Any ideas on why?
>
> Thanks,
> Mike
>
> #!/usr/sbin/dtrace -s
>
> syscall::open*:entry
> / execname == "fmd" /
> {
> self->f = arg0;
> }
>
> syscall::open*:return
> / self->f /
> {
> printf("open of %s returns %d\n", copyinstr(self->f),
arg1);
> self->f = 0;
> }
>
> syscall::ioctl:entry
> / execname == "fmd" /
> {
> self->ioc = arg1;
> }
>
> syscall::ioctl:return
> / self->ioc /
> {
> printf("ioctl 0x%x returns %d errno %d\n", self->ioc,
arg1, errno);
> self->ioc = 0;
> }
> _______________________________________________
> dtrace-discuss mailing list
> dtrace-discuss at opensolaris.org
--
Adam Leventhal, Solaris Kernel Development http://blogs.sun.com/ahl