jack
2007-Jan-25 05:13 UTC
[dtrace-discuss] How to use Dtrace to fire a probe when I write/modify a file?
Hi, I tried many way to fire a probe whenver a file has been write or modify (IO Write) on Solaris, the problem with most of them is that I''m getting too many system write calls that are firing the probes, is there a clean way to fire the probe only when the user is writing to a file, and avoid system writes. Thanks. This message posted from opensolaris.org
Dan Mick
2007-Jan-25 05:17 UTC
[dtrace-discuss] How to use Dtrace to fire a probe when I write/modify a file?
jack wrote:> Hi, > > I tried many way to fire a probe whenver a file has been write or modify (IO Write) on Solaris, the problem with most of them is that I''m getting too many system write calls that are firing the probes, > > is there a clean way to fire the probe only when the user is writing to a file, and avoid system writes. > > Thanks.Well, you can qualify it by process id(s) or user id(s)...