Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Dec 2011 15:40:09 -1000
From:      Jan Beich <jbeich@tormail.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/163602: pmcstat(8) doesn't search symbols under /boot/modules
Message-ID:  <1Red4a-0004CK-Ue@internal.tormail.net>
Resent-Message-ID: <201112250150.pBP1oA2q003885@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help


>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1Red4a-0004CK-Ue>