Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Sep 2011 20:04:35 -0500
From:      Brandon Gooch <jamesbrandongooch@gmail.com>
To:        Charlie Martin <crmartin@sgi.com>
Cc:        Garrett Cooper <yanegomi@gmail.com>, freebsd-hackers@freebsd.org
Subject:   Re: kldload dtraceall exec format error
Message-ID:  <CALBk6yLNAj0grh0h1Lvoe7-Y24mEn%2Bq=o5TNqz74kkSiu6DMQg@mail.gmail.com>
In-Reply-To: <4E5FC073.5000101@sgi.com>
References:  <4E5FB956.1020206@sgi.com> <CAGH67wTCAx8PumSBzzXiwY3jSObtfz861HOXozKJJD9CJjYR1Q@mail.gmail.com> <4E5FC073.5000101@sgi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Sep 1, 2011 at 12:27 PM, Charlie Martin <crmartin@sgi.com> wrote:
>
>
> On 2011-09-01 11:23, Garrett Cooper wrote:
>>
>> On Thu, Sep 1, 2011 at 9:56 AM, Charlie Martin<crmartin@sgi.com> =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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALBk6yLNAj0grh0h1Lvoe7-Y24mEn%2Bq=o5TNqz74kkSiu6DMQg>