From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 1 16:57: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 2E892106564A for ; Thu, 1 Sep 2011 16:57:07 +0000 (UTC) (envelope-from crmartin@sgi.com) Received: from relay.sgi.com (relay2.sgi.com [192.48.179.30]) by mx1.freebsd.org (Postfix) with ESMTP id 0EFB18FC12 for ; Thu, 1 Sep 2011 16:57:06 +0000 (UTC) Received: from xmail.sgi.com (pv-excas3-dc21-nlb.corp.sgi.com [137.38.102.207]) by relay2.corp.sgi.com (Postfix) with ESMTP id 42B4C304062 for ; Thu, 1 Sep 2011 09:57:06 -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 11:57:05 -0500 Message-ID: <4E5FB956.1020206@sgi.com> Date: Thu, 1 Sep 2011 10:56:54 -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: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.3.0.220] Subject: 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 16:57:07 -0000 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. -- 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