On Thu, Sep 1, 2011 at 12:27 PM, Charlie Martin <[email protected]> wrote: > > > On 2011-09-01 11:23, Garrett Cooper wrote: >> >> On Thu, Sep 1, 2011 at 9:56 AM, Charlie Martin<[email protected]> 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 >> > 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. Thanks. >
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 _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[email protected]"

