From owner-freebsd-bugs@FreeBSD.ORG Sun Dec 25 01:50:11 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 467161065672 for ; Sun, 25 Dec 2011 01:50:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 074CC8FC0C for ; Sun, 25 Dec 2011 01:50:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id pBP1oAtU003886 for ; Sun, 25 Dec 2011 01:50:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id pBP1oA2q003885; Sun, 25 Dec 2011 01:50:10 GMT (envelope-from gnats) Resent-Date: Sun, 25 Dec 2011 01:50:10 GMT Resent-Message-Id: <201112250150.pBP1oA2q003885@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jan Beich Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 73B88106564A for ; Sun, 25 Dec 2011 01:41:09 +0000 (UTC) (envelope-from jbeich@tormail.net) Received: from server2.hudsonvalleyhost.com (server2.hudsonvalleyhost.com [66.7.195.77]) by mx1.freebsd.org (Postfix) with ESMTP id 0918D8FC08 for ; Sun, 25 Dec 2011 01:41:08 +0000 (UTC) Received: from rainbowwarrior.torservers.net ([77.247.181.164]:24618 helo=internal.tormail.net) by server2.hudsonvalleyhost.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.69) (envelope-from ) id 1Red5H-00028G-R0 for FreeBSD-gnats-submit@freebsd.org; Sat, 24 Dec 2011 20:41:08 -0500 Received: from jbeich by internal.tormail.net with local (Exim 4.63) (envelope-from ) id 1Red4a-0004CK-Ue for FreeBSD-gnats-submit@freebsd.org; Sun, 25 Dec 2011 01:40:27 +0000 Message-Id: <1Red4a-0004CK-Ue@internal.tormail.net> Date: Sat, 24 Dec 2011 15:40:09 -1000 From: Jan Beich To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: bin/163602: pmcstat(8) doesn't search symbols under /boot/modules X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Dec 2011 01:50:11 -0000 >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: