Sample Header Ad - 728x90

Dtrace script newproc.d stopped working after upgrade, because of missing proc:::exec-success probe

1 vote
2 answers
746 views
I'm trying to run: $ sudo /usr/bin/newproc.d which suppose to snoop new processes as they are executed, but it fails with the error: > dtrace: failed to compile script /usr/bin/newproc.d: line 22: probe description proc:::exec-success does not match any probes This is on OS X 10.11.2 and as far as I remember, this was working before the upgrade. It seems new OS X doesn't have anymore proc:::exec-success probe as I've checked by: $ sudo dtrace -l | grep proc:::exec-success Failing code of that script (note: this was provided by the system, I haven't changed it): proc:::exec-success { print_pid[pid] = 1; /* This pid emerged from an exec, make a note of that. */ } Is that probe was removed or renamed to different probe? Maybe I could activate it somehow? Otherwise what I can use instead?
Asked by kenorb (12995 rep)
Mar 18, 2016, 09:48 PM
Last activity: Jun 16, 2016, 03:59 PM