Skip site navigation (1) Skip section navigation (2)

Re: [PATCHES] Generic Monitoring Framework with DTrace patch

From: Robert Lor <Robert(dot)Lor(at)Sun(dot)COM>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [PATCHES] Generic Monitoring Framework with DTrace patch
Date: 2006-07-22 03:25:48
Message-ID: 44C19ABC.70003@sun.com (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
Peter Eisentraut wrote:

>Robert Lor wrote:
>  
>
>>The user needs to have the flexibility to build a 32 bit PG binary
>>even when he run the 64 bit kernel. If I understand you correctly,
>>your suggestion will not allow a 32 bit binary to be built on a 64
>>bit OS.
>>    
>>
>
>I'm not sure about the context.  How do you control whether the 
>PostgreSQL binaries you are about to build end up 32 bit or 64 bit?  
>Presumably there is some default, and you switch it using CFLAGS or 
>LDFLAGS. 
>
To build 64 bit binary, I use the following flag depending on the 
compiler. Without -m64 or -xtarget=native64, it defaults to 32 bit.
CC='gcc -m64'
CC='/<path_to_sun_compiler>/cc -xtarget=native64'

> Then it would make sense to let dtrace be controled by 
>DTRACE_FLAGS or some such.  But what does dtrace do if no flag at all 
>is given?
>  
>
We want to be able to set DTRACEFLAGS to 32 or 64 (e.g. DTRACEFLAGS='64').

If DTRACEFLAGS is not set, can we provide a default value to 32? 
Otherwise, the compile will fail. It's also possible that the CC and 
DTRACEFLAGS are in conflict, and in that case the compile will also 
fail, which is probably okay.

Regards,
-Robert


In response to

pgsql-hackers by date

Next:From: Robert LorDate: 2006-07-22 03:36:35
Subject: Re: [PATCHES] Generic Monitoring Framework with DTrace patch
Previous:From: Robert LorDate: 2006-07-22 03:05:28
Subject: Re: Sun Donated a Sun Fire T2000 to the PostgreSQL

pgsql-patches by date

Next:From: Robert LorDate: 2006-07-22 03:36:35
Subject: Re: [PATCHES] Generic Monitoring Framework with DTrace patch
Previous:From: Peter EisentrautDate: 2006-07-21 23:39:20
Subject: Re: [PATCHES] Generic Monitoring Framework with DTrace patch

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group