From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 1 20:09:54 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 6C820106568B for ; Thu, 1 Sep 2011 20:09:54 +0000 (UTC) (envelope-from crmartin@sgi.com) Received: from relay.sgi.com (relay1.sgi.com [192.48.179.29]) by mx1.freebsd.org (Postfix) with ESMTP id 4954B8FC1C for ; Thu, 1 Sep 2011 20:09:54 +0000 (UTC) Received: from xmail.sgi.com (pv-excas3-dc21-nlb.corp.sgi.com [137.38.102.207]) by relay1.corp.sgi.com (Postfix) with ESMTP id A73DC8F8065; Thu, 1 Sep 2011 13:09:53 -0700 (PDT) Received: from [10.3.0.220] (10.3.0.220) by xmail.sgi.com (137.38.102.30) with Microsoft SMTP Server (TLS) id 14.1.289.1; Thu, 1 Sep 2011 15:09:49 -0500 Message-ID: <4E5FE682.9020205@sgi.com> Date: Thu, 1 Sep 2011 14:09:38 -0600 From: Charlie Martin User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.20) Gecko/20110805 Lightning/1.0b2 Thunderbird/3.1.12 MIME-Version: 1.0 To: Garrett Cooper References: <4E5FB956.1020206@sgi.com> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.3.0.220] Cc: 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: Thu, 01 Sep 2011 20:09:54 -0000 okay, dmesg begins to give a clue. Here's a question: if this FreeBSD 8 is being built on a FreeBSD 7 machine, would that account for it? On 2011-09-01 11:23, Garrett Cooper wrote: > On Thu, Sep 1, 2011 at 9:56 AM, Charlie Martin wrote: >> Okay, I'll grant this is probably a horrid noob question, but then on the >> Free kernel I'm a horrid noob so I guess it makes sense. This 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 to >> enable DTrace. The file amd64/conf/GENERIC with which the kernel was >> compiled has the required lines >> >> options KDTRACE_FRAME # Ensure frames are compiled in >> options KDTRACE_HOOKS # Kernel DTrace hooks >> options DDB_CTF # for DTrace >> >> but when I try kldload dtraceall I get >> >> kldload: can't load dtraceall: Exec format error >> >> From Google I get that this probably means some mismatch in compiles, but >> I'm unclear what to look for. Also, 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 > -- Charles R. (Charlie) Martin Senior Software Engineer SGI logo 1900 Pike Road Longmont, CO 80501 Phone: 303-532-0209 E-Mail: CRMartin@sgi.com Website: www.sgi.com