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)
Thu, Sep 24, 2:28 AM
Unknown Object (File)
Tue, Sep 1, 4:48 PM
Unknown Object (File)
Aug 26 2026, 4:32 PM
Unknown Object (File)
Aug 19 2026, 4:12 AM
Unknown Object (File)
Aug 14 2026, 7:55 AM
Unknown Object (File)
Aug 14 2026, 12:45 AM
Unknown Object (File)
Aug 11 2026, 8:32 PM
Unknown Object (File)
Aug 11 2026, 4:41 PM
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