
adam leventhal discovered that
apple broke dtrace while trying to prevent some applications from being traced.
The notion of true systemic tracing was a bit too egalitarian for their classist sensibilities so they added this glob of lard into dtrace_probe() -- the heart of DTrace:
#if defined(__APPLE__)
/*
* If the thread on which this probe has fired belongs to a process marked P_LNOATTACH
* then this enabling is not permitted to observe it. Move along, nothing to see here.
*/
if (ISSET(current_proc()->p_lflag, P_LNOATTACH)) {
continue;
}
#endif /* __APPLE__ */
[i was tempted to say
but at least they have dtrace, while linux developers are still scratching their heads and armpits but i won't. i just realized that they are now even at being differently clued.]
[update:
landon fuller's fix]