KLDs missing CTF information (patch attached)

Navdeep Parhar nparhar at gmail.com
Tue Apr 7 12:16:34 PDT 2009


It appears that the KLD build process is missing a ctfmerge at the end, and
this results in KLDs with incomplete CTF information.

Here is a patch that fixes this.  I verified it on amd64 with various KLDs.

Before:
# ctfdump /boot/kernel/if_cxgb.ko | wc -l
 2269
# ctfdump /boot/kernel/zfs.ko | wc -l
430

After:
# ctfdump /boot/kernel/if_cxgb.ko | wc -l
6568
# ctfdump /boot/kernel/zfs.ko | wc -l
15032

It is wasteful to have CTF information in both the .ko and the .ko.symbols file
but this is what the kernel does too.

Regards,
Navdeep
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ctf-kld.patch
Type: application/octet-stream
Size: 602 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20090407/00546bf8/ctf-kld.obj


More information about the freebsd-hackers mailing list