19 messages in org.opensolaris.dtrace-discuss[dtrace-discuss] Missing -G flag in O...
FromSent OnAttachments
Robert LorOct 26, 2007 8:27 am 
Adam LeventhalOct 26, 2007 8:44 am 
Steve PetersOct 26, 2007 10:08 am 
Adam LeventhalOct 26, 2007 10:37 am 
Jarod JensonOct 26, 2007 11:57 am 
Robert LorOct 26, 2007 1:37 pm 
Adam LeventhalOct 26, 2007 2:25 pm 
Robert LorOct 26, 2007 2:51 pm 
Adam LeventhalOct 26, 2007 3:27 pm 
Adam LeventhalOct 27, 2007 9:39 am 
James McIlreeOct 29, 2007 1:42 pm 
Adam LeventhalOct 29, 2007 4:48 pm 
James McIlreeOct 29, 2007 5:44 pm 
Adam LeventhalOct 30, 2007 6:16 pm 
Steve PetersOct 31, 2007 9:17 am 
Adam LeventhalOct 31, 2007 9:21 am 
Robert LorNov 2, 2007 1:36 pm 
James McIlreeNov 5, 2007 11:50 am 
Robert LorNov 5, 2007 2:36 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[dtrace-discuss] Missing -G flag in OSX Dtrace portActions...
From:James McIlree (jmci@apple.com)
Date:Nov 5, 2007 11:50:49 am
List:org.opensolaris.dtrace-discuss

On Nov 2, 2007, at 1:36 PM, Robert Lor wrote:

James,

From: James McIlree <jmcilree at apple.com>

OS X doesn't support the older DTRACE_PROBE style macros, only the newer (and much safer!) typechecked generated header files.

The DTRACE_PROBE macros are still being exposed in sdt.h. I tried using them without running "dtrace -G", and the app built successfully except none of the probes were available. Is there any chance that this approach can be made to work, if not now, in the future?

Robert,

The sdt.h DTRACE_PROBE macros are vestigial, they'll go away any minute now.

I can't think of a way to make them work without the generated -h files off the top of my head, but it is software, and all things are possible :-).

That said, the earliest possible date we could fix this is a ways off, and the DTRACE_PROBE macros were obsoleted for good reason. I think it would be possible to do a fairly simple mechanical translation of DTRACE_PROBE style to the new generated header style, and that might get you going quicker.

James M