[dtrace-discuss] Re: Re: Re: Re: Re: How to monitor any access to
a specific file using drace
Michael Schuster
Michael.Schuster at Sun.COM
Thu Jan 25 01:14:11 PST 2007
David Chen wrote:
> Hi Mike,
> Yes I'm using Solaris 10, do you know any other string function to do a
> "partial match"? I know stardand C library has "strstr" function, is
> there a way for dtrace script to call a C function?
you can use system() to call a *program*, but not, AFAIK, in a predicate.
system() doesn't return a value, so that's be problematic in a predicate
anyway ;-)
Michael
--
Michael Schuster
Sun Microsystems, Inc.
More information about the dtrace-discuss
mailing list