From owner-freebsd-stable@FreeBSD.ORG Tue Jan 13 00:20:20 2015 Return-Path: Delivered-To: freebsd-stable@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 BDD17F46 for ; Tue, 13 Jan 2015 00:20:20 +0000 (UTC) Received: from ipmail06.adl6.internode.on.net (ipmail06.adl6.internode.on.net [150.101.137.145]) by mx1.freebsd.org (Postfix) with ESMTP id 51A563D5 for ; Tue, 13 Jan 2015 00:20:19 +0000 (UTC) Received: from ppp14-2-33-47.lns21.adl2.internode.on.net (HELO midget.dons.net.au) ([14.2.33.47]) by ipmail06.adl6.internode.on.net with ESMTP; 13 Jan 2015 10:50:11 +1030 Received: from [10.0.2.26] ([10.0.2.26]) (authenticated bits=0) by midget.dons.net.au (8.15.1/8.14.9) with ESMTPSA id t0D0K1FV001473 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 13 Jan 2015 10:50:10 +1030 (CST) (envelope-from darius@dons.net.au) From: "O'Connor, Daniel" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Tue, 13 Jan 2015 10:50:00 +1030 Subject: DTrace and function names To: FreeBSD Stable Mailing List Message-Id: Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) X-Mailer: Apple Mail (2.1993) X-Spam-Score: -2.9 () ALL_TRUSTED,BAYES_00 X-Scanned-By: MIMEDefang 2.75 on 10.0.2.1 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jan 2015 00:20:20 -0000 Hi, I am trying to debug why astro/gpsd uses a lot of CPU so I thought I'd = try the 'hotuser' Dtrace toolkit script but the output looks like so.. [midget 9:24] ~ >sudo /usr/local/share/DTraceToolkit/hotuser -p 37690 Password: Sampling... Hit Ctrl-C to end. ^C FUNCTION COUNT PCNT libc.so.7`0x801631777 1 0.0% libc.so.7`strtol 1 0.0% libc.so.7`0x801631658 1 0.0% libc.so.7`0x801631625 1 0.0% libc.so.7`0x801631636 1 0.0% libc.so.7`0x801631566 1 0.0% libc.so.7`0x801631623 1 0.0% gpsd`0x405ba6 1 0.0% gpsd`0x404fd6 1 0.0% libc.so.7`0x801631797 10 0.0% libc.so.7`0x8016315f9 50 0.2% libc.so.7`0x80163165c 63 0.2% libc.so.7`0x80163179b 115 0.4% libc.so.7`0x8016315b9 119 0.4% libc.so.7`0x801631794 135 0.5% libc.so.7`0x801631791 170 0.6% libc.so.7`0x801631601 212 0.8% libc.so.7`0x80163165d 226 0.8% libc.so.7`0x801631757 233 0.8% libc.so.7`0x8016315bd 235 0.8% gpsd`0x4028bc 237 0.8% libc.so.7`0x801631736 238 0.9% libc.so.7`0x80163156a 239 0.9% libc.so.7`0x801631617 243 0.9% gpsd`0x4084ea 246 0.9% gpsd`0x408508 251 0.9% libc.so.7`0x8016317a0 251 0.9% libc.so.7`0x801631571 252 0.9% libc.so.7`0x801631749 252 0.9% libc.so.7`0x801631583 253 0.9% libc.so.7`0x8016315c7 256 0.9% libc.so.7`0x801631727 259 0.9% gpsd`0x4084fa 261 0.9% libc.so.7`0x8016315ed 264 0.9% libc.so.7`0x8016315a6 264 0.9% libc.so.7`0x801631775 264 0.9% libc.so.7`0x801631789 266 1.0% libc.so.7`0x801631564 267 1.0% libc.so.7`0x8016316e4 268 1.0% libc.so.7`0x8016316eb 271 1.0% libc.so.7`0x8016315d9 274 1.0% libc.so.7`0x801631771 276 1.0% libc.so.7`0x801631656 278 1.0% libc.so.7`0x8016315dd 287 1.0% libc.so.7`0x8016316e0 288 1.0% libc.so.7`0x801631615 292 1.0% libc.so.7`0x801631782 295 1.1% libc.so.7`0x801631611 306 1.1% libc.so.7`0x80163175c 336 1.2% libc.so.7`0x801631790 349 1.3% libc.so.7`0x8016315b3 485 1.7% libc.so.7`0x80163177e 529 1.9% libc.so.7`0x801631767 550 2.0% libc.so.7`clock_gettime 769 2.8% libc.so.7`0x801631764 796 2.9% libc.so.7`0x8016315d5 800 2.9% libc.so.7`0x80163164f 1029 3.7% libc.so.7`0x801631607 1106 4.0% libc.so.7`0x801631593 1335 4.8% libc.so.7`0x8016315a0 1634 5.9% libc.so.7`0x80163159a 1849 6.6% libc.so.7`0x80163160c 2132 7.6% gpsd`gpsd_report 2162 7.8% libc.so.7`0x80163179d 3052 10.9% So it shows _some_ function names from libc but mostly not.. Is there a = way to improve it? -- Daniel O'Connor "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C