Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Apr 2010 02:31:30 -0700
From:      Navdeep Parhar <nparhar@gmail.com>
To:        Alexander Leidinger <netchild@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Does "makeoptions WITH_CTF=yes" actually work?
Message-ID:  <y2vd04e16b71004140231u4b638141w17215bf037a9c94@mail.gmail.com>
In-Reply-To: <20100414105819.13143mf12ccgjy4g@webmail.leidinger.net>
References:  <g2md04e16b71004140133ubee176eboe6baaeb7ef0f0605@mail.gmail.com> <20100414105819.13143mf12ccgjy4g@webmail.leidinger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Apr 14, 2010 at 1:58 AM, Alexander Leidinger
<netchild@freebsd.org> wrote:
> Quoting Navdeep Parhar <nparhar@gmail.com> (from Wed, 14 Apr 2010 01:33:2=
9
> -0700):
>
>> I read the UPDATING entry that accompanied r206082 and added WITH_CTF=3D=
yes
>> to
>> my kernel config, hoping to get CTF information in the kernel and all
>> modules. =A0No luck.
>> It appears that NO_CTF remains set to 1 inspite of the undef NO_CTF in
>> various .mk files
>> and ctfconvert never runs.
>
> This is the output I get in my kernel build directory:
> ---snip---
> # make -V NO_CTF -V WITH_CTF
>
> yes

Can you also try a "makeoptions WITH_CTF=3Dyes" in your KERNCONF
and see if the results are as expected?  How was r206082 tested?  I'm
trying to figure out the differences, if any, between your build setup and
mine.

> ---snip---
>
>> I built the kernel with a "make -j16 buildkernel" in /usr/src.
>
> How do you determine if ctfconvert is run or not?

I got rid of the @ in front of all the CTF commands in all the .mk files.  =
I
could see that NO_CTF was 1 and so the ctfconvert after || wouldn't
run.

[ -z "${CTFCONVERT}" -o -n "${NO_CTF}" ] || ${CTFCONVERT} ${CTFFLAGS} ${.TA=
RGET}

[ -z "ctfconvert" -o -n "1" ] || ........

Do you see anything different if you remove all the @'s?

> If you expect to see
> ctfconvert lines in the build output: this will not be the case, no matte=
r
> if you enable it or not. With the current way of handling it, I'm not awa=
re
> of a way how to print the command when ctfconvert is really executed (we =
can
> maybe add an echo which prints out something, but the question is if this=
 is
> worth the effort).
>
> You can run objdump -f <objectfile> and have a look if the .SUNW_ctf sect=
ion
> is there to determine if CTF stuff was inserted or not.

I tried this:
# ctfdump /usr/obj/usr/src/sys/GENERIC/kernel
/usr/obj/usr/src/sys/GENERIC/kernel does not contain .SUNW_ctf data

Regards,
Navdeep

>
> Bye,
> Alexander.
>
> --
> http://www.Leidinger.net =A0Alexander @ Leidinger.net: PGP ID =3D B0063FE=
7
> http://www.FreeBSD.org =A0 =A0 netchild @ FreeBSD.org =A0: PGP ID =3D 720=
77137
> The Force is what holds everything together.
> It has its dark side, and it has its light side.
> It's sort of like cosmic duct tape.
>
>



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