atom feed19 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 
Subject:[dtrace-discuss] Missing -G flag in OSX Dtrace port
From:Robert Lor (Robe@Sun.COM)
Date:Oct 26, 2007 1:37:40 pm
List:org.opensolaris.dtrace-discuss

Hi Steve,

From: Steve Peters <sc@mac.com>

The Mac OS X "dtrace -h" emits all the information required for successfully linking a USDT probe by the rest of the toolchain. On Mac

OS X "dtrace -G" is superfluous. For historical reasons "-G" was disabled early on in the bring up. We'll take a bug to re-introduce "-

G" as a no-op with a warning message.

See the section "BUILDING CODE CONTAINING USDT PROBES" in the Leopard

dtrace(1) man page.

In Postgres we follow the old way of implementing USDT.

1) add probes to src.c 2) cc -c src.c -o src.o 3) dtrace -G -s probes.d src.o ... 4) cc -o postgres src.o probes.o

This works fine on Solaris but it breaks on OSX since the -G flag doesn't exist
(adding it with no-op won't help). Can this still be done in OSX (replacing -G
with -h?) or does it only support the new way where the .h file has to be
produced first? If not, I'd say the two implementations have incompatible
behavior.

-Robert