From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 22 15:25:04 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C663A106568B for ; Fri, 22 Apr 2011 15:25:04 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 658268FC18 for ; Fri, 22 Apr 2011 15:25:04 +0000 (UTC) Received: by qwc9 with SMTP id 9so392424qwc.13 for ; Fri, 22 Apr 2011 08:25:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:from:to:cc:subject:message-id:in-reply-to :references:x-mailer:mime-version:content-type; bh=rCtV7BMVD4m8ehjWnadKn85j5sM2q2eRPjkzVO+GTY8=; b=qEmcglnm2MRq2OAvvz+hb3rNwSDURIk1J/gAF0OXgbYMU8Q4pnvoIsM+RPjMCQ9kT+ aimO2Q6cj3tV+a//KEVzWQlo+hw5Xc5gtTF0CClVm3AAnwUAwyAiGrUoFAE6y+BLYcR0 R4tYzosiJk/JAaINsG/h6P7+gMHxIgP+IW1Y0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type; b=XQHGShywWdfTaVoYwMqt6OCy4iORL5KAt/1s9AiiM8asGxG8qdAybojouKtj6z1ygp ndmYTv8xQL/Awvfuec0a6nVw/RPaOOiOK9YuUe52tZhhuY6D6qFh2NSlsrlgy7fozivz lzRJJbeMjFMrO2W6mfj+S/tQfflrLUykWkTdo= Received: by 10.224.184.11 with SMTP id ci11mr859199qab.195.1303485903452; Fri, 22 Apr 2011 08:25:03 -0700 (PDT) Received: from kan.dnsalias.net (c-24-63-226-98.hsd1.ma.comcast.net [24.63.226.98]) by mx.google.com with ESMTPS id s9sm2122268qco.12.2011.04.22.08.25.01 (version=SSLv3 cipher=OTHER); Fri, 22 Apr 2011 08:25:02 -0700 (PDT) Date: Fri, 22 Apr 2011 11:24:44 -0400 From: Alexander Kabaev To: Chuck Tuffli Message-ID: <20110422112444.0e423a80@kan.dnsalias.net> In-Reply-To: References: <20110421221611.7f52ca98@kan.dnsalias.net> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.1; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/qKUQ40h8DyiC_6Wwb6Rh52b"; protocol="application/pgp-signature" Cc: freebsd-hackers@freebsd.org Subject: Re: no KLD symbols in dtrace? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2011 15:25:04 -0000 --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 wrote: > On Thu, Apr 21, 2011 at 7:16 PM, Alexander Kabaev > 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--