[dtrace-discuss] What''s wrong with this script

CHao-Hong Guo
Wed, 17 Aug 2005 17:19:29 -0000

hi, guys,

I write a simple script as follow,


#!/usr/sbin/dtrace -Fs


syscall::ioctl:entry
/execname == "test.exe"/
{
self->trace = 1;
printf("fd: %d", arg0);
}

fbt:::
/self->trace/
{
}

syscall::ioctl:return
/execname == "test.exe"/
{
self->trace = 0;
}


When I run this script on my laptop (NEC Versa1000, snv_19),
the sytem is frozen.

could you tell me what ''s wrong with this script?

thanks,
Minskey