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:Adam Leventhal (ah@eng.sun.com)
Date:Oct 26, 2007 2:25:58 pm
List:org.opensolaris.dtrace-discuss

On Fri, Oct 26, 2007 at 03:38:03PM -0500, Robert Lor wrote:

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.

It should be sufficient to just remove the 'dtrace -G ...' step.

Adam