Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Mar 2010 08:12:29 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        Alexander Leidinger <Alexander@leidinger.net>
Cc:        freebsd-stable@freebsd.org, "Robert N. M. Watson" <rwatson@freebsd.org>
Subject:   Re: is dtrace usable?
Message-ID:  <201003100812.29749.jhb@freebsd.org>
In-Reply-To: <20100310113422.95932h10tv1qh2o0@webmail.leidinger.net>
References:  <E1Nnv0H-00020A-9M@kabab.cs.huji.ac.il> <B83FA8F6-F29A-4C6F-8FCF-CBF48B27A18B@freebsd.org> <20100310113422.95932h10tv1qh2o0@webmail.leidinger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 10 March 2010 5:34:22 am Alexander Leidinger wrote:
> Quoting "Robert N. M. Watson" <rwatson@freebsd.org> (from Tue, 9 Mar  
> 2010 16:39:09 +0000):
> 
> >
> > On Mar 9, 2010, at 2:16 PM, Alexander Leidinger wrote:
> >
> >>> From this you can see that sys.mk is included and parsed before 
'Makefile',
> >>> so the WITH_CTF=yes is not set until after sys.mk has been parsed.
> >>
> >> I think we need to find a different solution for this. The need to  
> >> specify WITH_CTF at the command line is very error prone. :(
> >
> > You are neither the first person to have made this observation, nor  
> > the first person to have failed to propose a solution in the form of  
> > a patch :-).
> 
> It is not a problem to provide a patch, the problem is something else.
> 
> Is it correct that the result of the ctfmerge/cftconvert stuff is not  
> covered by the CDDL?
> 
> If yes, why not use it by default if the programs are available (I've  
> read the comment for the NO_CTF part, but IMO we have a chicken&egg  
> situation here, dtrace will not become popular if it is not easy to  
> use it)? This default can be made only for the kernel (by making a  
> copy of the definition of CTFCONVERT into bsd.prog.mk and bsd.lib.mk,  
> or by undefining it there), or for kernel+userland (removing the  
> !WITH_CTF -> NO_CTF part from sys.mk).

Unfortunately the ctf stuff breaks static binaries.  I think that if that were 
fixed we would simply enable it by default and be done.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003100812.29749.jhb>