[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-hackers
Subject: Re: no KLD symbols in dtrace?
From: Chuck Tuffli <ctuffli () gmail ! com>
Date: 2011-04-22 16:51:50
Message-ID: BANLkTi=7yVoH0Kp8omrtNfHeQgzEAKbufw () mail ! gmail ! com
[Download RAW message or body]
On Fri, Apr 22, 2011 at 9:41 AM, Andriy Gapon <avg@freebsd.org> wrote:
> on 22/04/2011 18:56 Chuck Tuffli said the following:
>> On Fri, Apr 22, 2011 at 8:44 AM, Andriy Gapon <avg@freebsd.org> wrote:
>>> Also, dtrace process needs to access the module file for address-to-name translation.
>>
>> Hmm ... I'm building this module out of tree. Where does dtrace look
>> for modules?
>
> I think that exactly at the place from which a module is loaded.
> You can double-check with kldstat -v, e.g.:
> 2 1 0xffffffff80c6c000 217f20 zfs.ko (/boot/kernel/zfs.ko)
Ah-ha! I was loading the module with a relative path (i.e. kldload
./ocs.ko), but when I switched this to use the full path (i.e. kldload
/home/ctuffli/ocs.ko) everything worked.
2 33759 bus_release_resource:entry
ocs.ko`ocs_release_bus+0x2e
ocs.ko`ocs_pci_detach+0x31
kernel`device_detach+0x84
kernel`driver_module_handler+0x37c
kernel`module_unload+0x49
kernel`linker_file_unload+0x178
kernel`kern_kldunload+0x117
kernel`syscallenter+0x23d
kernel`syscall+0x4b
kernel`0xffffffff808c5572
Thanks for the patch and all your help!
---chuck
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic