From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 2 01:04:37 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 60E701065670 for ; Fri, 2 Sep 2011 01:04:37 +0000 (UTC) (envelope-from jamesbrandongooch@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id ED86A8FC13 for ; Fri, 2 Sep 2011 01:04:36 +0000 (UTC) Received: by wyh15 with SMTP id 15so2417841wyh.13 for ; Thu, 01 Sep 2011 18:04:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=R+rc+0LCsbV/L8F/zrtLm3d+4QhQ+RlcnKWcBrt6eY4=; b=m2W+z7T3UOjXuu1l3kmosSMvYR3YGYw036qgewzGSkVLQ0rPLJewsGIdaAIFiBIsDg RzXTjMB8fN5euyX054OK40Lx5Y/cM5y2xe2TNcKHRDKvNvfWV+zyarnLC3fjiTJJhUiD 5eQIzZNUuEWsa3OVMouOHneiI/9AaO4038eew= MIME-Version: 1.0 Received: by 10.216.87.206 with SMTP id y56mr453627wee.6.1314925475232; Thu, 01 Sep 2011 18:04:35 -0700 (PDT) Received: by 10.216.74.5 with HTTP; Thu, 1 Sep 2011 18:04:35 -0700 (PDT) In-Reply-To: <4E5FC073.5000101@sgi.com> References: <4E5FB956.1020206@sgi.com> <4E5FC073.5000101@sgi.com> Date: Thu, 1 Sep 2011 20:04:35 -0500 Message-ID: From: Brandon Gooch To: Charlie Martin Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Garrett Cooper , freebsd-hackers@freebsd.org Subject: Re: kldload dtraceall exec format error 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, 02 Sep 2011 01:04:37 -0000 On Thu, Sep 1, 2011 at 12:27 PM, Charlie Martin wrote: > > > On 2011-09-01 11:23, Garrett Cooper wrote: >> >> On Thu, Sep 1, 2011 at 9:56 AM, Charlie Martin =A0wrot= e: >>> >>> Okay, I'll grant this is probably a horrid noob question, but then on t= he >>> Free kernel I'm a horrid noob so I guess it makes sense. =A0This is for >>> FreeBSD >>> >>> FreeBSD psmdev1 8.1-RELEASE-p2 FreeBSD 8.1-RELEASE-p2 >>> >>> per uname -a. >>> >>> We have a FreeBSD based product on the AMD64 architecture; I'm trying t= o >>> enable DTrace. =A0The file amd64/conf/GENERIC with which the kernel was >>> compiled has the required lines >>> >>> options =A0 =A0 KDTRACE_FRAME =A0 =A0 =A0 =A0# Ensure frames are compil= ed in >>> options =A0 =A0 KDTRACE_HOOKS =A0 =A0 =A0 =A0# Kernel DTrace hooks >>> options =A0 =A0 DDB_CTF =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 # for DTrace >>> >>> but when I try kldload dtraceall I get >>> >>> kldload: can't load dtraceall: Exec format error >>> >>> =A0From Google I get that this probably means some mismatch in compiles= , >>> but >>> I'm unclear what to look for. =A0Also, another big part of the product, >>> compiled from the same master Makefile, *does* have dtrace enabled >>> successfully. >>> >>> Hints, suggestions, and pointers to documentation gleefully accepted. >> >> What does dmesg say? >> Thanks, >> -Garrett >> > link_elf_obj: symbol lapic_cyclic_clock_func undefined > linker_load_file: Unsupported file type > KLD profile.ko: depends on cyclic - not available or version mismatch > linker_load_file: Unsupported file type > KLD dtraceall.ko: depends on profile - not available or version mismatch > linker_load_file: Unsupported file type > link_elf_obj: symbol lapic_cyclic_clock_func undefined > linker_load_file: Unsupported file type > KLD profile.ko: depends on cyclic - not available or version mismatch > linker_load_file: Unsupported file type > KLD dtraceall.ko: depends on profile - not available or version mismatch > linker_load_file: Unsupported file type > > Aha, dmesg. =A0Thanks. > I'm guessing you've read this: http://wiki.freebsd.org/DTrace Make certain you've configure your kernel correctly, and that you've rebuilt your kernel and modules... -Brandon