bin/163602: pmcstat(8) doesn't search symbols under /boot/modules
Jan Beich
jbeich at tormail.net
Sun Dec 25 01:50:11 UTC 2011
>Number: 163602
>Category: bin
>Synopsis: pmcstat(8) doesn't search symbols under /boot/modules
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Dec 25 01:50:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Jan Beich
>Release: FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
>Description:
pmcstat(8) should search under /boot/modules by default as that is the
place kernel modules are installed by ports/ framework. It could be
implemented similar to kldload(8) as a semicolon-separated list of paths
to search with default being kern.module_path sysctl.
>How-To-Repeat:
$ sudo pmcstat -S instructions -O /tmp/all.pmc
^C
$ pmcstat -R /tmp/all.pmc -G all.graph
pmcstat: WARNING: Cannot determine the type of "/boot/kernel/nvidia.ko".
pmcstat: WARNING: Cannot determine the type of "/boot/kernel/uvhid.ko".
pmcstat: WARNING: Cannot determine the type of "unknown".
pmcstat: WARNING: Cannot determine the type of "/usr/local/bin/sudo".
[...]
CONVERSION STATISTICS:
#exec/elf 9
#samples/total 10915
#samples/unknown-function 566
#callchain/dubious-frames 62
$ grep '_nv.*rm' all.graph | sort -rk1 | head
Exit 1
>Fix:
A known workaround:
$ cd /boot/kernel
$ ln -s ../modules/*.ko* .
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list