From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 22 15:56:07 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 A4A56106564A for ; Fri, 22 Apr 2011 15:56:07 +0000 (UTC) (envelope-from ctuffli@gmail.com) Received: from mail-px0-f172.google.com (mail-px0-f172.google.com [209.85.212.172]) by mx1.freebsd.org (Postfix) with ESMTP id 718DD8FC1A for ; Fri, 22 Apr 2011 15:56:07 +0000 (UTC) Received: by pxi6 with SMTP id 6so1656114pxi.17 for ; Fri, 22 Apr 2011 08:56:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=HZt0fo+AFVh9C/+9ba4YLCXHarlW3LBba1Po+1C898w=; b=jx+eQ5qXWLdn4OJmDpF1nfs+0c+eYKBk0z9h3lU2LLz+zPi4G3WFKX52/C713rd2YH cspotHgMMIx4QxEsPb6hUnJF/RlEwAg8W8+0s1rN9w4u8kr2m03syytTy73loscw6obS hD9znkyErbv1kN82sNFs3k47We7hRW4Kmjfxg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=wq7Fo64cNMKvIb0C4n2RRgIrSt7QPdE28pAlVtPGnJJgn1P/3fYBhF+tsEfuYgvNtF cvmjK4CJfzjWsYRj770l+NTzSrFIh6ai14EIN4WJzST4XAtMs7KsgiJdmXXqVCPZNl9a UBpSZnmwOP2T0RdW5gXGpTHiFWn+zQK2yDHcQ= MIME-Version: 1.0 Received: by 10.68.27.65 with SMTP id r1mr1773735pbg.289.1303487766858; Fri, 22 Apr 2011 08:56:06 -0700 (PDT) Received: by 10.68.49.72 with HTTP; Fri, 22 Apr 2011 08:56:06 -0700 (PDT) In-Reply-To: <4DB1A25F.8040700@FreeBSD.org> References: <20110421221611.7f52ca98@kan.dnsalias.net> <20110422112444.0e423a80@kan.dnsalias.net> <4DB1A25F.8040700@FreeBSD.org> Date: Fri, 22 Apr 2011 08:56:06 -0700 Message-ID: From: Chuck Tuffli To: Andriy Gapon Content-Type: text/plain; charset=ISO-8859-1 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:56:07 -0000 On Fri, Apr 22, 2011 at 8:44 AM, Andriy Gapon wrote: > on 22/04/2011 18:24 Alexander Kabaev said the following: >> 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. The ctfdump looks correct and dtrace -ln "fbt::ocs_*:" shows the kld's function names >> 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. OK > Also, dtrace process needs to access the module file for address-to-name translation. Hmm ... I'm building this module out of tree. Where does dtrace look for modules? ---chuck