Examples from www.dtracebook.com
David Wolfskill
david at catwhisker.org
Tue Dec 10 23:47:16 UTC 2013
On Tue, Dec 10, 2013 at 03:43:16PM -0800, hiren panchasara wrote:
> http://www.dtracebook.com/index.php/Introduction_to_DTrace:read-syscall.d
>
> $ sudo dtrace -n 'syscall::read:entry /execname != "dtrace"/ {
> @reads[execname, fds[arg0].fi_pathname] = count(); }'
> dtrace: invalid probe specifier syscall::read:entry /execname !=
> "dtrace"/ { @reads[execname, fds[arg0].fi_pathname] = count(); }: in
> action list: fds has not yet been declared or assigned
>
> This is on FreeBSD -head.
>
>
> $ sudo dtrace -l | grep " read entry"
> 49341 syscall freebsd32 read entry
> 50413 syscall freebsd read entry
>
> What am I missing? What does "invalid probe specifier " mean here?
> ....
Exactly what the message says: "fds has not yet been declared or
assigned". We don't presently have the fds array -- see p. 131 of the
book.
Peace,
david
--
David H. Wolfskill david at catwhisker.org
Taliban: Evil cowards with guns afraid of truth from a 14-year old girl.
See http://www.catwhisker.org/~david/publickey.gpg for my public key.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 964 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-dtrace/attachments/20131210/9886ef22/attachment.sig>
More information about the freebsd-dtrace
mailing list