Examples from www.dtracebook.com

hiren panchasara hiren.panchasara at gmail.com
Tue Dec 10 23:43:18 UTC 2013


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?

cheers,
Hiren


More information about the freebsd-dtrace mailing list