Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Apr 2011 11:24:44 -0400
From:      Alexander Kabaev <kabaev@gmail.com>
To:        Chuck Tuffli <ctuffli@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: no KLD symbols in dtrace?
Message-ID:  <20110422112444.0e423a80@kan.dnsalias.net>
In-Reply-To: <BANLkTikrdkR%2BuwcBGMkCAsfEXwc%2BYtoF7w@mail.gmail.com>
References:  <BANLkTi=iDhVTsdZLrFy6JohSRBexAhWyJA@mail.gmail.com> <20110421221611.7f52ca98@kan.dnsalias.net> <BANLkTikrdkR%2BuwcBGMkCAsfEXwc%2BYtoF7w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/qKUQ40h8DyiC_6Wwb6Rh52b
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

On Fri, 22 Apr 2011 07:27:30 -0700
Chuck Tuffli <ctuffli@gmail.com> wrote:

> On Thu, Apr 21, 2011 at 7:16 PM, Alexander Kabaev <kabaev@gmail.com>
> wrote: ...
> > There is an omission on our .mk files which prevents CTF info to be
> > generated for kld modules, regardless of WITH_CTF flag. I had
> > discovered this at work just recently and have been using the
> > following patch for the time being:
> >
> > http://people.freebsd.org/~kan/kmod-dtrace.diff
> >
> > If you can confirm it works for you too, I'll get it committed.
>=20
> I patched /usr/src/sys/conf/kmod.mk and rebuilt my kld. It looks like
> ctfmerge is called at the end of the build, but dtrace still shows
> just the address. Maybe I missed a step?
>=20
> ---chuck

Do ctfdump -tf on your kld and verify that what it outputs actually
makes sense. Do kldload and see if fbt provider knows about your module
and functions. There is nothing else special that I can think off.

Maybe make sure that you compile your sources with -g in the first
place? DWARF debug info is what CTF generation utils use to figure out
types and function prototypes.

--=20
Alexander Kabaev

--Sig_/qKUQ40h8DyiC_6Wwb6Rh52b
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (FreeBSD)

iD8DBQFNsZ3MQ6z1jMm+XZYRAnWgAJ9j2/z6U7Dzk9h/38aizse20ENu5QCZAQrT
LH3Fgzgret4Y1wH6E2bpURA=
=S9C0
-----END PGP SIGNATURE-----

--Sig_/qKUQ40h8DyiC_6Wwb6Rh52b--



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