Discussion Over Apple's Modification Of Sun's DTrace - MacRumors
Skip to Content

Discussion Over Apple's Modification Of Sun's DTrace

One of the most anticipated features of Mac OS X Leopard amongst the technical community was the port of Sun's DTrace utility for application and system profiling. DTrace is a powerful, low-level dynamic tracing framework that allows system administrators and developers to trace applications for tuning or troubleshooting purposes.

Recently, Adam Leventhal, one of DTrace's initial developers, discovered that Apple's implementation creates a way for a program to exclude itself from being traced. Namely, he was unsuccessful at tracing iTunes, and found that Apple had added a method of disabling probing on certain applications defined with the directive P_LNOATTACH.

Wow. So Apple is explicitly preventing DTrace from examining or recording data for processes which don't permit tracing. This is antithetical to the notion of systemic tracing, antithetical to the goals of DTrace, and antithetical to the spirit of open source. I'm sure this was inserted under pressure from ISVs, but that makes the pill no easier to swallow.

Since the initial publication of the blog entry last week, the story has begun to pop up around the mac web.

The practice is not entirely new to Apple. A commenter on Adam Leventhal's blog noted that Apple used the same directive to prevent GDB tracing on iTunes. Additionally, the implementation of this directive appears to be limited to iTunes (for the moment?), so many are speculating that the move is to protect Apple's FairPlay DRM.

To present an alternate view, Apple has extended Java, Ruby, Python, and Perl to include DTrace support, and Apple has built a GUI front-end called Instruments. Also the issue may eventually become moot with Apple's stated desire to move towards DRM-free music (though DRM video remains common).

Related Forum: Mac Apps

Popular Stories

Four iPhone 18 Pro Colors Mock Feature

iPhone 18 Pro Launching Later This Year With These 10 New Features

Tuesday May 26, 2026 6:32 am PDT by
While the iPhone 18 Pro and iPhone 18 Pro Max are not launching until September, there are already plenty of rumors about the devices. It was initially reported that the iPhone 18 Pro models would have fully under-screen Face ID, with only a front camera visible in the top-left corner of the screen. However, the latest rumors indicate that only one Face ID component will be moved under the...
iphone 17 pro black feature

iPhone 18 Pro's Camera Upgrade Will Cost Apple 50% More

Friday May 29, 2026 3:44 am PDT by
The iPhone 18 Pro and iPhone 18 Pro Max's all-new variable aperture lens will cost Apple 50% more than the camera unit used in current models, according to supply chain analyst Ming-Chi Kuo. Variable aperture has been one of the most persistent iPhone camera rumors of the past few years. Kuo first flagged the feature in late 2024, and it has since been corroborated by multiple reports and...
Rivian Explains Why CarPlay Debate Will Become Completely Obsolete Feature

Rivian Explains Why CarPlay Debate Will Become 'Completely Obsolete'

Thursday May 28, 2026 9:48 am PDT by
On the latest episode of The Verge's Decoder podcast, Rivian's software chief Wassym Bensaid explained why the EV maker still refuses to offer Apple CarPlay. In short, Bensaid said Rivian does not want CarPlay to fully take over the software experience. "The challenge with screen mirroring solutions is that they take over every single pixel in the car," he said. Instead, Rivian prefers ...