Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Sep 2011 14:09:38 -0600
From:      Charlie Martin <crmartin@sgi.com>
To:        Garrett Cooper <yanegomi@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: kldload dtraceall exec format error
Message-ID:  <4E5FE682.9020205@sgi.com>
In-Reply-To: <CAGH67wTCAx8PumSBzzXiwY3jSObtfz861HOXozKJJD9CJjYR1Q@mail.gmail.com>
References:  <4E5FB956.1020206@sgi.com> <CAGH67wTCAx8PumSBzzXiwY3jSObtfz861HOXozKJJD9CJjYR1Q@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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<crmartin@sgi.com>  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 <mailto:CRMartin@sgi.com>
Website: www.sgi.com <http://www.sgi.com>;




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E5FE682.9020205>