Hans,
This is a bug in the OS X dtrace:
rdar://problem/7037927 Dtrace finishes execution of binary before
creating probes when using -c option
There is a workaround of sorts, which is adding the following flags:
-xevaltime=exec -Z
That tells dtrace to
I am cross-posting back to dtrace-discuss, since the Apple folks listen...
I'm not sure what your hello world program is doing. I tried the same thing
with compiled C code.
The problem I ran into with hello world, and with the date example, is
the program is executing and completing before
Interesting. My expectation was that it would work like gdb i.e. that the
app would not run until gdb was in full control. For me, -c implies that
behavior.
I tried putting in a sleep for 10 seconds; still nothing:
$ sudo dtrace -n 'pid$target:::entry { trace(arg0); }' -c ./out
On Tue, Dec