| From | Sent On | Attachments |
|---|---|---|
| Robert Lor | Oct 26, 2007 8:27 am | |
| Adam Leventhal | Oct 26, 2007 8:44 am | |
| Steve Peters | Oct 26, 2007 10:08 am | |
| Adam Leventhal | Oct 26, 2007 10:37 am | |
| Jarod Jenson | Oct 26, 2007 11:57 am | |
| Robert Lor | Oct 26, 2007 1:37 pm | |
| Adam Leventhal | Oct 26, 2007 2:25 pm | |
| Robert Lor | Oct 26, 2007 2:51 pm | |
| Adam Leventhal | Oct 26, 2007 3:27 pm | |
| Adam Leventhal | Oct 27, 2007 9:39 am | |
| James McIlree | Oct 29, 2007 1:42 pm | |
| Adam Leventhal | Oct 29, 2007 4:48 pm | |
| James McIlree | Oct 29, 2007 5:44 pm | |
| Adam Leventhal | Oct 30, 2007 6:16 pm | |
| Steve Peters | Oct 31, 2007 9:17 am | |
| Adam Leventhal | Oct 31, 2007 9:21 am | |
| Robert Lor | Nov 2, 2007 1:36 pm | |
| James McIlree | Nov 5, 2007 11:50 am | |
| Robert Lor | Nov 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





