dtrace -c doesn't work?
John-Mark Gurney
jmg at funkthat.com
Tue Oct 15 23:32:23 UTC 2013
Well, I've decided to try to learn dtrace to do some benchmarking, and
so I tried to use -c to measure what the command does... except it seems
to fail...
even the simple:
dtrace -n 'syscall:::entry { @num[execname] = count(); }' -c 'echo foo'
doesn't work... it gives me:
# dtrace -n 'syscall:::entry { @num[execname] = count(); }' -c 'echo foo'
foo
dtrace: failed to control pid 3766: process exited with status 0
ktrace shows it execing /bin/echo and it running fine, but for some
reason dtrace can't handle it...
P.S. Why are dtrace and dtraceall seperate?
--
John-Mark Gurney Voice: +1 415 225 5579
"All that I will do, has been done, All that I have, has not."
More information about the freebsd-dtrace
mailing list