From owner-freebsd-bugs@FreeBSD.ORG Tue Apr 14 02:25:02 2015 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A0393BE9 for ; Tue, 14 Apr 2015 02:25:02 +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 837ADE7A for ; Tue, 14 Apr 2015 02:25:02 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t3E2P2S6028134 for ; Tue, 14 Apr 2015 02:25:02 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 198148] [hwpmc] pmcstat -G doesn't resolve symbols from userland processes Date: Tue, 14 Apr 2015 02:25:02 +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: ganbold@gmail.com 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: Tue, 14 Apr 2015 02:25:02 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198148 ganbold@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ganbold@gmail.com --- Comment #3 from ganbold@gmail.com --- I'm running some content filtering software written in Go and did some load on it. I tried pmcstat. As Hiren, I see userland symbols in callgraph like: ... 50.69% [359402] scanblock @ /usr/home/tsgan/go/bin/shuultuur 00.04% [140] net.(*netFD).decref 00.01% [23] os.Lstat 00.00% [13] runtime.netpollinit 00.00% [10] runtime.goexit -- 08.61% [61068] runtime.MSpan_Sweep @ /usr/home/tsgan/go/bin/shuultuur 02.33% [16554] hash/crc32.update @ /usr/home/tsgan/go/bin/shuultuur 00.03% [5] hash/crc32.Update 00.01% [1] reflect.cvtFloatInt 00.01% [1] net/textproto.(*dotReader).Read 00.01% [1] reflect.(*rtype).Implements -- 01.34% [9528] compress/flate.(*decompressor).huffSym @ /usr/home/tsgan/go/bin/shuultuur 01.20% [8515] runtime.readvarint @ /usr/home/tsgan/go/bin/shuultuur 01.43% [122] runtime.step 00.05% [4] runtime.goparkunlock 00.01% [1] net/http.(*persistConn).wroteRequest 00.01% [1] net/http.(*persistConn).markBroken -- 01.10% [7832] code.google.com/p/go.net/html.(*Tokenizer).readByte @ /usr/home/tsgan/go/bin/shuultuur 00.63% [49] code.google.com/p/go.net/html.(*Tokenizer).Next 00.31% [24] code.google.com/p/go.net/html.(*Tokenizer).readScript 00.27% [21] code.google.com/p/go.net/html.(*Tokenizer).readTagAttrVal 00.09% [7] code.google.com/p/go.net/html.(*Tokenizer).skipWhiteSpace -- 01.09% [7697] compress/flate.(*decompressor).huffmanBlock @ /usr/home/tsgan/go/bin/shuultuur 00.01% [1] compress/flate.(*decompressor).huffmanBlock 01.01% [7184] strings.Map @ /usr/home/tsgan/go/bin/shuultuur 00.93% [6613] bitbucket.org/hooray-976/shuultuur/tools/search.(*stringFinder).next @ /usr/home/tsgan/go/bin/shuultuur 00.92% [6488] runtime.step @ /usr/home/tsgan/go/bin/shuultuur 00.62% [40] runtime.pcvalue 00.42% [27] runtime.goparkunlock 00.08% [5] github.com/elazarl/goproxy.func.018 00.03% [2] net/http.(*Server).ListenAndServeTLS -- ... I run FreeBSD current in VMware Fusion: root@bsd:/var/tmp # uname -an FreeBSD bsd 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r269824: Mon Aug 11 20:18:52 UTC 2014 root@grind.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 Maybe it depends from your use case? -- You are receiving this mail because: You are the assignee for the bug.