From owner-freebsd-bugs@FreeBSD.ORG Fri May 8 20:34:45 2015 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 82F2A549 for ; Fri, 8 May 2015 20:34:45 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 522751DE2 for ; Fri, 8 May 2015 20:34:45 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t48KYjhG035371 for ; Fri, 8 May 2015 20:34:45 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 198147] [hwpmc] running pmcstat -t (top mode) whilst a process is running doesn't resolve the symbols correctly Date: Fri, 08 May 2015 20:34:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jhb@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 May 2015 20:34:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198147 John Baldwin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jhb@FreeBSD.org --- Comment #3 from John Baldwin --- I definitely see this here in my same test setup as the other bug. I've never gotten it resolve any user symbols in fact, but I've always been running pmcstat after starting the process: PMC: [branch-instruction-retired] Samples: 351879 (100.0%) , 350556 unresolved %SAMP IMAGE FUNCTION CALLERS 50.2 kernel _mtx_lock_spin_cooki __mtx_lock_spin_flags 9.4 kernel spinlock_exit _mtx_lock_spin_cookie:5.1 ... 5.4 hwpmc.ko pmclog_process_callc pmc_process_samples 5.4 kernel __mtx_lock_spin_flag pmclog_reserve 4.2 hwpmc.ko pmclog_reserve pmclog_process_callchain 3.3 kernel spinlock_enter _mtx_lock_spin_cookie:1.5 ... 3.0 hwpmc.ko pmc_process_samples pmc_hook_handler 2.7 kernel __mtx_unlock_spin_fl pmclog_release 2.6 hwpmc.ko soft_get_config pmc_process_samples 1.9 kernel critical_exit spinlock_exit 1.7 kernel atomic_subtract_barr pmc_process_samples 1.2 hwpmc.ko pmclog_release pmc_process_samples 1.1 kernel witness_lock pmclog_reserve 0.6 kernel witness_unlock __mtx_unlock_spin_flags 0.6 kernel critical_enter 0.6 kernel cpu_search_lowest 0.5 kernel witness_checkorder 0.5 hwpmc.ko iap_get_config (Nothing from threadspin, and it was built with -g) If I run threadspin directly instead of using -t `pgrep threadspin`, then it works: PMC: [branch-instruction-retired] Samples: 162009 (100.0%) , 0 unresolved %SAMP IMAGE FUNCTION CALLERS 99.7 threadspin worker 0x8744 -- You are receiving this mail because: You are the assignee for the bug.