From owner-freebsd-bugs@FreeBSD.ORG Sat Apr 18 03:00:48 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 9425A445 for ; Sat, 18 Apr 2015 03:00:48 +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 7B52768D for ; Sat, 18 Apr 2015 03:00:48 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t3I30m6L062214 for ; Sat, 18 Apr 2015 03:00:48 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: Sat, 18 Apr 2015 03:00:48 +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: 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: Sat, 18 Apr 2015 03:00:48 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198148 --- Comment #5 from ganbold@gmail.com --- It looks like when program isn't compiled with debug symbols pmcstat won't resolve. Please try following with nginx: 1. Before compiling and installing nginx from ports run make clean. 1. Then run make config to choose DEBUG option additionally. 2. Run make 3. Depending from shell do similar way: env DONTSTRIP=1 make install or: setenv DONTSTRIP 1 && make install 4. Restart nginx Now start test with httperf to make load on nginx. Then run for instance: pmcstat -P INSTR_RETIRED_ANY -O /var/tmp/sample -t After while stop it and run: pmcstat -R /var/tmp/sample -G /var/tmp/sample.callgraph to generate callgraph or: pmcstat -R /var/tmp/sample -F /var/tmp/sample.calltree if you want calltree. I was successfully able to get callgraph and also calltree with resolved nginx symbols. ... 01.04% [350] ngx_vslprintf @ /usr/local/sbin/nginx 73.43% [257] ngx_sprintf 48.25% [124] ngx_http_time 100.0% [124] ngx_http_header_filter 100.0% [124] ngx_http_chunked_header_filter 100.0% [124] ngx_http_range_header_filter 100.0% [124] ngx_http_gzip_header_filter 100.0% [124] ngx_http_ssi_header_filter 100.0% [124] ngx_http_charset_header_filter 100.0% [124] ngx_http_userid_filter 100.0% [124] ngx_http_headers_filter 100.0% [124] ngx_http_not_modified_header_filter 100.0% [124] ngx_http_send_header 100.0% [124] ngx_http_static_handler 100.0% [124] ngx_http_core_content_phase 100.0% [124] ngx_http_core_run_phases 19.84% [51] ngx_http_header_filter 100.0% [51] ngx_http_chunked_header_filter 100.0% [51] ngx_http_range_header_filter 100.0% [51] ngx_http_gzip_header_filter 100.0% [51] ngx_http_ssi_header_filter 100.0% [51] ngx_http_charset_header_filter 100.0% [51] ngx_http_userid_filter 100.0% [51] ngx_http_headers_filter 100.0% [51] ngx_http_not_modified_header_filter 100.0% [51] ngx_http_send_header 100.0% [51] ngx_http_static_handler 100.0% [51] ngx_http_core_content_phase 100.0% [51] ngx_http_core_run_phases 100.0% [51] ngx_http_handler 17.12% [44] ngx_http_set_etag 100.0% [44] ngx_http_static_handler 100.0% [44] ngx_http_core_content_phase 100.0% [44] ngx_http_core_run_phases 100.0% [44] ngx_http_handler 100.0% [44] ngx_http_internal_redirect 100.0% [44] ngx_http_index_handler 100.0% [44] ngx_http_core_content_phase 100.0% [44] ngx_http_core_run_phases 100.0% [44] ngx_http_handler 100.0% [44] ngx_http_process_request 100.0% [44] ngx_http_process_request_headers 100.0% [44] ngx_http_process_request_line ... -- You are receiving this mail because: You are the assignee for the bug.