From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 1 17:23:35 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 49F39106566C for ; Thu, 1 Sep 2011 17:23:35 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0B6048FC14 for ; Thu, 1 Sep 2011 17:23:34 +0000 (UTC) Received: by qyk9 with SMTP id 9so1442135qyk.13 for ; Thu, 01 Sep 2011 10:23:34 -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=cSCbiHnFHBoqORtJUDWv+3gjN0oJDQeJgpaEway1gYI=; b=NoisNVgUcs0LxJPraAZnN67VB28wwkg7u6Gj4IZfCYG+GolOoRfrWKdmUoTaSljhBB fw8R3iPiLuLJWBy2S+fMlJpHfV08O12UVtGCcytKRtvcFSLJy1hDO8kfdyV3pn0kMqwE PSHIewjt53sa/zUaq7W2aDj/YnAwBKxlaVdFU= MIME-Version: 1.0 Received: by 10.224.180.136 with SMTP id bu8mr79968qab.142.1314897814294; Thu, 01 Sep 2011 10:23:34 -0700 (PDT) Received: by 10.224.37.83 with HTTP; Thu, 1 Sep 2011 10:23:34 -0700 (PDT) In-Reply-To: <4E5FB956.1020206@sgi.com> References: <4E5FB956.1020206@sgi.com> Date: Thu, 1 Sep 2011 10:23:34 -0700 Message-ID: From: Garrett Cooper To: Charlie Martin Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 17:23:35 -0000 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. =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 to > 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 compiled= 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 > > From 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