Determining the path to the kernel modules loaded
Now that FreeBSD 7.0 and 6.3 are well on their way through release engineering, it's time to prepare to add things for DTrace that have only been in p4 until now.
First up is a change to kldstat(2) to return the path to the kernel module loaded.
On FreeBSD this is needed because we don't have an object file system like Solaris does.
DTrace, or more specifically, libdtrace, needs to get access to the kernel module file because it contains the CTF data.
A problem with doing this is that the path reported was the one relate to the user's root file system and the file system mount points at the time the module was loaded.
First up is a change to kldstat(2) to return the path to the kernel module loaded.
On FreeBSD this is needed because we don't have an object file system like Solaris does.
DTrace, or more specifically, libdtrace, needs to get access to the kernel module file because it contains the CTF data.
A problem with doing this is that the path reported was the one relate to the user's root file system and the file system mount points at the time the module was loaded.

