Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Oct 2013 16:32:19 -0700
From:      John-Mark Gurney <jmg@funkthat.com>
To:        freebsd-dtrace@FreeBSD.org
Subject:   dtrace -c doesn't work?
Message-ID:  <20131015233219.GZ56872@funkthat.com>

next in thread | raw e-mail | index | archive | help
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."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131015233219.GZ56872>