]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libpmcstat: Try /boot/modules if module not found
authorfreqlabs <freqlabs@FreeBSD.org>
Thu, 12 Mar 2020 23:04:40 +0000 (23:04 +0000)
committerfreqlabs <freqlabs@FreeBSD.org>
Thu, 12 Mar 2020 23:04:40 +0000 (23:04 +0000)
commit0df7e2b1641b9182d6b1b448fc0faae56bb63498
treea2e49ed9f313a8266e333c7c0cde226109b341c8
parent1dcd8d47022f73c34c6c1103f8bcdc7958250be0
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