]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libpmcstat: Try /boot/modules if module not found
authorRyan Moeller <freqlabs@FreeBSD.org>
Thu, 12 Mar 2020 23:04:40 +0000 (23:04 +0000)
committerRyan Moeller <freqlabs@FreeBSD.org>
Thu, 12 Mar 2020 23:04:40 +0000 (23:04 +0000)
commit797711a84f0b6c3466afaaf32ae387cb70d95c14
treea2e49ed9f313a8266e333c7c0cde226109b341c8
parent7a119578a40a3f958f996b24c8acd25e5f6cd140
libpmcstat: Try /boot/modules if module not found

Modules from ports/pkg are commonly installed to /boot/modules rather than to
the same directory the kernel resides in.  Look there if a module is not found
next to the kernel.

Submitted by: mmacy
Reported by: Nick Principe <nap@iXsystems.com>
Approved by: mmacy (mentor)
MFC after: 2 weeks
Sponsored by: iXsystems, Inc.
lib/libpmcstat/libpmcstat_image.c
usr.sbin/pmcstat/pmcstat.8