[self note:@”Mac OS X, Solaris dtrace”];

opensnoop didn’t really cut it, so here we go:

syscall::open*:entry
{
printf(”%s %s”, execname, copyinstr(arg0));
}
syscall::stat*:entry
{
printf(”%s %s”, execname, copyinstr(arg0));
}

Leave a Reply

You must be logged in to post a comment.