diff options
author | Ryan Moeller <freqlabs@FreeBSD.org> | 2020-03-12 23:04:40 +0000 |
---|---|---|
committer | Ryan Moeller <freqlabs@FreeBSD.org> | 2020-03-12 23:04:40 +0000 |
commit | 797711a84f0b6c3466afaaf32ae387cb70d95c14 (patch) | |
tree | a2e49ed9f313a8266e333c7c0cde226109b341c8 /usr.sbin/pmcstat | |
parent | 7a119578a40a3f958f996b24c8acd25e5f6cd140 (diff) | |
download | src-797711a84f0b6c3466afaaf32ae387cb70d95c14.tar.gz src-797711a84f0b6c3466afaaf32ae387cb70d95c14.zip |
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.
Notes
Notes:
svn path=/head/; revision=358923
Diffstat (limited to 'usr.sbin/pmcstat')
-rw-r--r-- | usr.sbin/pmcstat/pmcstat.8 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/pmcstat/pmcstat.8 b/usr.sbin/pmcstat/pmcstat.8 index dfd323dcf585..1291347f8060 100644 --- a/usr.sbin/pmcstat/pmcstat.8 +++ b/usr.sbin/pmcstat/pmcstat.8 @@ -309,6 +309,8 @@ should look for the kernel and its modules. The default is to use the path of the running kernel obtained from the .Va kern.bootfile sysctl. +Modules will also be searched for in /boot/modules if not found in +.Ar kerneldir . .It Fl l Ar secs Set system-wide performance measurement duration for .Ar secs |