On Oct 26, 2007, at 8:44 AM, Adam Leventhal wrote:

> It's especially odd that they've chosen to support the -h option,  
> but not the
> -G option -- I'm not to what purpose one could put the generated  
> header file.
> Perhaps the Apple folks could comment?

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.

Static probes work very nicely on Mac OS X (thank you!) A number of   
our frameworks ship with "Is Enabled" static probes in Leopard.

SCP

>
>
> Adam
>
> On Fri, Oct 26, 2007 at 10:27:25AM -0500, Robert Lor wrote:
>> Anyone know why -G flag is not supported in the Dtrace port in  
>> Leopard? This makes the dtrace cmd in Leopard incompatible with  
>> that on Solaris, and it's already causing problem with PostgreSQL.
>>
>> -Robert
>
>> Date: Fri, 26 Oct 2007 07:30:10 +0000 (GMT)
>> From: Lee Packham <[EMAIL PROTECTED]>
>> Subject: [BUGS] BUG #3699: Fails to compile DTrace Support
>> To: [EMAIL PROTECTED]
>> X-Mailing-List: pgsql-bugs
>>
>>
>> The following bug has been logged online:
>>
>> Bug reference:      3699
>> Logged by:          Lee Packham
>> Email address:      [EMAIL PROTECTED]
>> PostgreSQL version: 8.2.5
>> Operating system:   OSX Leopard
>> Description:        Fails to compile DTrace Support
>> Details:
>>
>> I have built a patch to enable a working DTrace on OSX with  
>> Postgres 8.2.5.
>> Basically the problem is that the dtrace command on OSX doesn't  
>> have the -G
>> parameter - so you have to use the newer -h method to produce a  
>> header file.
>>
>>
>> I have put the patch on my blog.
>>
>> http://leenux.org.uk/dtrace-patches/dtrace-with-postgres-on-osx
>>
>> Hope this is of use to you guys.
>>
>> Cheers,
>>
>> Lee Packham
>>
>> ---------------------------(end of  
>> broadcast)---------------------------
>> TIP 4: Have you searched our list archives?
>>
>>               http://archives.postgresql.org
>
>> _______________________________________________
>> dtrace-discuss mailing list
>> dtrace-discuss@opensolaris.org
>
>
> -- 
> Adam Leventhal, FishWorks                        http://blogs.sun.com/ahl
> _______________________________________________
> dtrace-discuss mailing list
> dtrace-discuss@opensolaris.org

Steve Peters
[EMAIL PROTECTED]

_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to