Page MenuHomeFreeBSD

kldxref: do not error out if specified path is not directory, for -d mode
ClosedPublic

Authored by kib on May 20 2021, 7:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 28, 1:20 AM
Unknown Object (File)
Thu, Sep 18, 1:19 AM
Unknown Object (File)
Wed, Sep 17, 2:38 AM
Unknown Object (File)
Aug 30 2025, 9:45 PM
Unknown Object (File)
Aug 24 2025, 11:28 PM
Unknown Object (File)
Aug 20 2025, 2:16 AM
Unknown Object (File)
Aug 15 2025, 10:15 PM
Unknown Object (File)
Aug 3 2025, 4:11 AM
Subscribers
None

Details

Summary

kldxref(8) is the only tool that can dump FreeBSD kernel module metadata, with the -d option. But the command line requirements for that are inconvenient, since parser requires that argv[1] is a directory containing whole set of modules to generate xref file.

For -d, allow argv[0] to be the file, now it is possible to do e.g.
$ kldxref -d /boot/kernel/ufs.ko
to see only ufs.ko metadata.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib requested review of this revision.May 20 2021, 7:17 PM
kib created this revision.
This revision is now accepted and ready to land.May 20 2021, 7:24 PM